mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 13:36:36 +00:00
Implement new always_aggro_foes field and functionality for mobs.
This commit is contained in:
+4
-1
@@ -161,7 +161,8 @@ public:
|
||||
uint8 in_handtexture,
|
||||
uint8 in_legtexture,
|
||||
uint8 in_feettexture,
|
||||
uint16 in_usemodel
|
||||
uint16 in_usemodel,
|
||||
bool in_always_aggros_foes
|
||||
);
|
||||
virtual ~Mob();
|
||||
|
||||
@@ -578,6 +579,7 @@ public:
|
||||
inline const GravityBehavior GetFlyMode() const { return flymode; }
|
||||
bool IsBoat() const;
|
||||
bool IsControllableBoat() const;
|
||||
inline const bool AlwaysAggrosFoes() const { return always_aggros_foes; }
|
||||
|
||||
//Group
|
||||
virtual bool HasRaid() = 0;
|
||||
@@ -1389,6 +1391,7 @@ protected:
|
||||
Timer ranged_timer;
|
||||
float attack_speed; //% increase/decrease in attack speed (not haste)
|
||||
int attack_delay; //delay between attacks in 10ths of seconds
|
||||
bool always_aggros_foes;
|
||||
int16 slow_mitigation; // Allows for a slow mitigation (100 = 100%, 50% = 50%)
|
||||
Timer tic_timer;
|
||||
Timer mana_timer;
|
||||
|
||||
Reference in New Issue
Block a user