hello, I tried to use this code in the canary distro, but it doesn't work the code is very different, someone convert to canary distro?
look mana/hp on look
look mana/hp on look
// Show maxHitPoints on item
if (it.abilities->stats[STAT_MAXHITPOINTS]) {
if (begin) {
begin = false;
s << " (";
}
else {
s << ", ";
}
s << "health " << std::showpos << it.abilities->stats[STAT_MAXHITPOINTS] << std::noshowpos;
}
// Show maxManaPoints on item
if (it.abilities->stats[STAT_MAXMANAPOINTS]) {
if (begin) {
begin = false;
s << " (";
}
else {
s << ", ";
}
s << "mana " << std::showpos << it.abilities->stats[STAT_MAXMANAPOINTS] << std::noshowpos;
}
// Show maxHitPointsPercent on item
if (it.abilities->statsPercent[STAT_MAXHITPOINTS]) {
if (begin) {
begin = false;
s << " (";
}
else {
s << ", ";
}
s << "health " << std::showpos << it.abilities->statsPercent[STAT_MAXHITPOINTS] - 100 << std::noshowpos << "%";
}
// Show maxManaPointsPercent on item
if (it.abilities->statsPercent[STAT_MAXMANAPOINTS]) {
if (begin) {
begin = false;
s << " (";
}
else {
s << ", ";
}
s << "mana " << std::showpos << it.abilities->statsPercent[STAT_MAXMANAPOINTS] - 100 << std::noshowpos << "%";
}
// Show healthGain/healthTicks on item
if (it.abilities->regeneration) {
if (begin) {
begin = false;
s << " (";
}
else {
s << ", ";
}
s << "+" << std::showpos << it.abilities->healthGain << std::noshowpos << " hp/" << std::showpos << it.abilities->healthTicks / 1000 << std::noshowpos << "s";
}
// Show manaGain/manaTicks on item
if (it.abilities->regeneration) {
if (begin) {
begin = false;
s << " (";
}
else {
s << ", ";
}
s << "+" << std::showpos << it.abilities->manaGain << std::noshowpos << " mp/" << std::showpos << it.abilities->manaTicks / 1000 << std::noshowpos << "s";
}