I copy pasted this code snippet and comipiled with the newest version of tfs 1.4 without any changes.
Everything looks good & correct. It compiles without any issues but ingame makes no difference.
I changed both lines in item.cpp and i even changed, just for testing purpose the "speed" text to: "speed1231233" but nothing changed, even the speed text is same as before. So I guess the attributes in item.cpp isn't related or correct to this?
(OTXSERVER TFS1.2 BASSED)Look HP/Mana regeneration and percent on look (https://otland.net/threads/otxserver-tfs1-2-bassed-look-hp-mana-regeneration-and-percent-on-look.264616/#post-2669900)
Everything looks good & correct. It compiles without any issues but ingame makes no difference.
I changed both lines in item.cpp and i even changed, just for testing purpose the "speed" text to: "speed1231233" but nothing changed, even the speed text is same as before. So I guess the attributes in item.cpp isn't related or correct to this?
(OTXSERVER TFS1.2 BASSED)Look HP/Mana regeneration and percent on look (https://otland.net/threads/otxserver-tfs1-2-bassed-look-hp-mana-regeneration-and-percent-on-look.264616/#post-2669900)
C++:
// 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";
}