mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 23:58:25 +00:00
[Experience] Add SetExp/SetAAExp lua mods (#4292)
This commit is contained in:
@@ -1636,6 +1636,25 @@ void LuaParser::RegisterBug(Client *self, BaseBugReportsRepository::BugReports b
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
uint64 LuaParser::SetEXP(Mob *self, ExpSource exp_source, uint64 current_exp, uint64 set_exp, bool is_rezz_exp, bool &ignore_default)
|
||||
{
|
||||
uint64 retval = 0;
|
||||
for (auto &mod : mods_) {
|
||||
mod.SetEXP(self, exp_source, current_exp, set_exp, is_rezz_exp, retval, ignore_default);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
uint64 LuaParser::SetAAEXP(Mob *self, ExpSource exp_source, uint64 current_aa_exp, uint64 set_aa_exp, bool is_rezz_exp, bool &ignore_default)
|
||||
{
|
||||
uint64 retval = 0;
|
||||
for (auto &mod : mods_) {
|
||||
mod.SetAAEXP(self, exp_source, current_aa_exp, set_aa_exp, is_rezz_exp, retval, ignore_default);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
int LuaParser::EventBot(
|
||||
QuestEventID evt,
|
||||
Bot *bot,
|
||||
|
||||
Reference in New Issue
Block a user