[Lua] Add UpdatePersonalFaction Lua Mod (#4279)

* Add UpdatePersonalFaction lua mod

* Fix typo

* Fix value typo
This commit is contained in:
Xackery
2024-05-04 15:58:58 -07:00
committed by GitHub
parent 943274b443
commit 34c27ebb2a
5 changed files with 88 additions and 0 deletions
+2
View File
@@ -29,6 +29,7 @@ public:
void IsImmuneToSpell(Mob *self, Mob* caster, uint16 spell_id, bool &return_value, bool &ignore_default);
void GetExperienceForKill(Client *self, Mob *against, uint64 &returnValue, bool &ignoreDefault);
void CalcSpellEffectValue_formula(Mob *self, uint32 formula, int64 base_value, int64 max_value, int caster_level, uint16 spell_id, int ticsremaining, int64 &returnValue, bool &ignoreDefault);
void UpdatePersonalFaction(Mob *self, int32 npc_value, int32 faction_id, int32 current_value, int32 temp, int32 this_faction_min, int32 this_faction_max, int32 &return_value, bool &ignore_default);
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);
@@ -51,4 +52,5 @@ private:
bool m_has_common_damage;
bool m_has_heal_damage;
bool m_has_is_immune_to_spell;
bool m_has_update_personal_faction;
};