mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 02:06:50 +00:00
[API] Perl functions to set invulnerable to and modify environmental damage. (#2044)
* invulnerable * modifier * fix * fix * fix * [API] Perl functions to set invulnerable to and modify environmental damage. * [API] Perl and Lua functions to set invulnerable to and modify environmental damage. credit to kinglykrab for lua
This commit is contained in:
@@ -1590,6 +1590,11 @@ public:
|
||||
int mod_food_value(const EQ::ItemData *item, int change);
|
||||
int mod_drink_value(const EQ::ItemData *item, int change);
|
||||
|
||||
inline int32 GetEnvironmentDamageModifier() const { return environment_damage_modifier; }
|
||||
void SetEnvironmentDamageModifier(int32 val) { environment_damage_modifier = val; }
|
||||
inline bool GetInvulnerableEnvironmentDamage() const { return invulnerable_environment_damage; }
|
||||
void SetInvulnerableEnvironmentDamage(bool val) { invulnerable_environment_damage = val; }
|
||||
|
||||
void ShowNumHits(); // work around function for numhits not showing on buffs
|
||||
|
||||
void ApplyWeaponsStance();
|
||||
@@ -1789,6 +1794,8 @@ private:
|
||||
int Haste; //precalced value
|
||||
uint32 tmSitting; // time stamp started sitting, used for HP regen bonus added on MAY 5, 2004
|
||||
|
||||
int32 environment_damage_modifier;
|
||||
bool invulnerable_environment_damage;
|
||||
|
||||
// dev tools
|
||||
bool display_mob_info_window;
|
||||
|
||||
Reference in New Issue
Block a user