mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
[Experience] Add SetExp/SetAAExp lua mods (#4292)
This commit is contained in:
+5
-1
@@ -10,7 +10,7 @@ class LuaMod
|
||||
{
|
||||
public:
|
||||
LuaMod(lua_State *ls, LuaParser *lp, const std::string &package_name) {
|
||||
L = ls;
|
||||
L = ls;
|
||||
parser_ = lp;
|
||||
package_name_ = package_name;
|
||||
Init();
|
||||
@@ -33,6 +33,8 @@ public:
|
||||
void RegisterBug(Client *self, BaseBugReportsRepository::BugReports bug, bool &ignore_default);
|
||||
void CommonDamage(Mob *self, Mob* attacker, int64 value, uint16 spell_id, int skill_used, bool avoidable, int8 buff_slot, bool buff_tic, int special, int64 &return_value, bool &ignore_default);
|
||||
void HealDamage(Mob *self, Mob* caster, uint64 value, uint16 spell_id, uint64 &return_value, bool &ignore_default);
|
||||
void SetEXP(Mob *self, ExpSource exp_source, uint64 current_exp, uint64 set_exp, bool is_rezz_exp, uint64 &return_value, bool &ignore_default);
|
||||
void SetAAEXP(Mob *self, ExpSource exp_source, uint64 current_aa_exp, uint64 set_aa_exp, bool is_rezz_exp, uint64 &return_value, bool &ignore_default);
|
||||
private:
|
||||
LuaParser *parser_;
|
||||
lua_State *L;
|
||||
@@ -51,6 +53,8 @@ private:
|
||||
bool m_has_register_bug;
|
||||
bool m_has_common_damage;
|
||||
bool m_has_heal_damage;
|
||||
bool m_has_set_exp;
|
||||
bool m_has_set_aa_exp;
|
||||
bool m_has_is_immune_to_spell;
|
||||
bool m_has_update_personal_faction;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user