[Quest API] Add option to Ignore Mods to CalcEXP (#2704)

# Perl
- Add `$client->CalcEXP(consider_level, ignore_modifiers)`.

# Lua
- Add `client:CalcEXP(consider_level)`.
- Add `client:CalcEXP(consider_level, ignore_modifiers)`.

# Notes
- Allows operators to calculate experience based on consider level as well as ignore modifiers to get a baseline of experience that should be expected when killing a mob.
This commit is contained in:
Aeadoin
2023-01-05 20:38:08 -05:00
committed by GitHub
parent d9f437d90f
commit 143c4fe6aa
5 changed files with 82 additions and 77 deletions
+2
View File
@@ -457,6 +457,8 @@ public:
luabind::object GetAugmentIDsBySlotID(lua_State* L, int16 slot_id);
bool IsEXPEnabled();
void SetEXPEnabled(bool is_exp_enabled);
uint64 CalcEXP(uint8 consider_level);
uint64 CalcEXP(uint8 consider_level, bool ignore_modifiers);
void ApplySpell(int spell_id);
void ApplySpell(int spell_id, int duration);