mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 11:36:36 +00:00
[Quest API] Add Override Parameters to ScaleNPC() in Perl/Lua. (#2816)
# Perl - Add `$npc->ScaleNPC(level, always_scale_stats)`. - Add `$npc->ScaleNPC(level, always_scale_stats, always_scale_special_abilities)`. # Lua - Add `npc:ScaleNPC(level, always_scale_stats)`. - Add `npc:ScaleNPC(level, always_scale_stats, always_scale_special_abilities)`. # Notes - Allows operators to not have to set stats to 0 in order for scaling to kick in when scripting. - Special ability override is separate in case you don't want to override some inherent special abilities the NPC has from a script or otherwise.
This commit is contained in:
@@ -86,9 +86,9 @@ public:
|
||||
"special_abilities"
|
||||
};
|
||||
|
||||
void ScaleNPC(NPC * npc);
|
||||
void ResetNPCScaling(NPC * npc);
|
||||
bool IsAutoScaled(NPC * npc);
|
||||
void ScaleNPC(NPC* npc, bool always_scale_stats = false, bool always_scale_special_abilities = false);
|
||||
void ResetNPCScaling(NPC* npc);
|
||||
bool IsAutoScaled(NPC* npc);
|
||||
bool LoadScaleData();
|
||||
|
||||
global_npc_scale GetGlobalScaleDataForTypeLevel(int8 npc_type, int npc_level);
|
||||
|
||||
Reference in New Issue
Block a user