mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-16 12:52:25 +00:00
[Feature] Add Heroic Strikethrough & HP Regen Per Second to GM Entity Info (#3055)
* [Feature] Add Heroic Strikethrough to GM Entity Info * [Feature] Add Heroic Strikethrough to GM Entity Info * typo
This commit is contained in:
parent
b6448c840f
commit
9ecdf057db
@ -377,8 +377,17 @@ inline std::string GetMobAttributeByString(Mob *mob, const std::string &attribut
|
||||
scaling_modified = " *";
|
||||
}
|
||||
|
||||
return Strings::Commify(std::to_string((int) npc->GetHPRegen())) + scaling_modified;
|
||||
return Strings::Commify(std::to_string(npc->GetHPRegen())) + scaling_modified;
|
||||
}
|
||||
|
||||
if (attribute == "hp_regen_per_second") {
|
||||
if (mob->EntityVariableExists("modify_stat_hp_regen_per_second")) {
|
||||
scaling_modified = " *";
|
||||
}
|
||||
|
||||
return Strings::Commify(std::to_string(npc->GetHPRegenPerSecond())) + scaling_modified;
|
||||
}
|
||||
|
||||
if (attribute == "attack_delay") {
|
||||
if (mob->EntityVariableExists("modify_stat_attack_delay")) {
|
||||
scaling_modified = " *";
|
||||
@ -401,9 +410,21 @@ inline std::string GetMobAttributeByString(Mob *mob, const std::string &attribut
|
||||
return Strings::Commify(std::to_string((int) npc->GetHealScale())) + scaling_modified;
|
||||
}
|
||||
if (attribute == "avoidance") {
|
||||
if (mob->EntityVariableExists("modify_stat_avoidance")) {
|
||||
scaling_modified = " *";
|
||||
}
|
||||
|
||||
return Strings::Commify(std::to_string(npc->GetAvoidanceRating())) + scaling_modified;
|
||||
}
|
||||
|
||||
if (attribute == "heroic_strikethrough") {
|
||||
if (mob->EntityVariableExists("modify_stat_heroic_strikethrough")) {
|
||||
scaling_modified = " *";
|
||||
}
|
||||
|
||||
return Strings::Commify(std::to_string(npc->GetHeroicStrikethrough())) + scaling_modified;
|
||||
}
|
||||
|
||||
npc->GetNPCEmote(npc->GetEmoteID(), 0);
|
||||
}
|
||||
|
||||
@ -725,10 +746,12 @@ void Mob::DisplayInfo(Mob *mob)
|
||||
"min_hit",
|
||||
"max_hit",
|
||||
"hp_regen",
|
||||
"hp_regen_per_second",
|
||||
"attack_delay",
|
||||
"spell_scale",
|
||||
"heal_scale",
|
||||
"avoidance",
|
||||
"heroic_strikethrough",
|
||||
};
|
||||
|
||||
window_text += WriteDisplayInfoSection(mob, "NPC Stats", npc_stats, 1, true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user