mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-02 00:52:18 +00:00
[Quest API] Add Restore Methods for Health, Mana, and Endurance to Perl/Lua (#4179)
* [Quest API] Add Restore Methods for Health, Mana, and Endurance to Perl/Lua - Add `$mob->RestoreEndurance()`. - Add `$mob->RestoreHealth()`. - Add `$mob->RestoreMana()`. - Add `mob:RestoreEndurance()`. - Add `mob:RestoreHealth()`. - Add `mob:RestoreMana()`. - Allows operators to easily restore a mob to full health, mana, or endurance. - `RestoreHealth` is just a more verbosely named `Heal`. - Convert spots in source to use these short hands instead of directly using `SetEndurance(GetMaxEndurance())`, `SetHP(GetMaxHP())`, or `SetMana(GetMaxMana())`. * Update mob.h * Update mob.h
This commit is contained in:
1 parent
5bfd8f5da2
commit
66cc947b2a
12 files changed
+72
-44
No files matched your search
@@ -64,7 +64,7 @@ void NpcScaleManager::ScaleNPC(
|
||||
|
||||
if (always_scale || npc->GetMaxHP() == 0) {
|
||||
npc->ModifyNPCStat("max_hp", std::to_string(scale_data.hp));
|
||||
npc->Heal();
|
||||
npc->RestoreHealth();
|
||||
}
|
||||
|
||||
if (always_scale || npc->GetAccuracyRating() == 0) {
|
||||
|
||||
Reference in new issue
Block a user