mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 18:07:16 +00:00
[Quest API] Default ScaleNPC to always scale. (#2818)
* [Quest API] Default ScaleNPC to always scale. # Notes - ScaleNPC will now always override stats, with the option to override special abilities. * Update npc_scale_manager.h
This commit is contained in:
1 parent
ee6f6f683c
commit
c1584da9cc
7 files changed
+37
-51
No files matched your search
+2
-2
@@ -3691,7 +3691,7 @@ void NPC::ReloadSpells() {
|
||||
AI_AddNPCSpellsEffects(GetNPCSpellsEffectsID());
|
||||
}
|
||||
|
||||
void NPC::ScaleNPC(uint8 npc_level, bool always_scale_stats, bool always_scale_special_abilities) {
|
||||
void NPC::ScaleNPC(uint8 npc_level, bool always_scale, bool override_special_abilities) {
|
||||
if (GetLevel() != npc_level) {
|
||||
SetLevel(npc_level);
|
||||
RecalculateSkills();
|
||||
@@ -3699,7 +3699,7 @@ void NPC::ScaleNPC(uint8 npc_level, bool always_scale_stats, bool always_scale_s
|
||||
}
|
||||
|
||||
npc_scale_manager->ResetNPCScaling(this);
|
||||
npc_scale_manager->ScaleNPC(this, always_scale_stats, always_scale_special_abilities);
|
||||
npc_scale_manager->ScaleNPC(this, always_scale, override_special_abilities);
|
||||
}
|
||||
|
||||
bool NPC::IsGuard()
|
||||
|
||||
Reference in new issue
Block a user