mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 15:42:21 +00:00
[Door Opening] Rule to let configure Animal Door Opening (#1231)
* Add rule configuration for letting animals open doors or not * Handle one more spot * Make adjustments and add mob property that serves as a check as to whether a mob entity can open doors or not * Push attribute to mob window
This commit is contained in:
1 parent
672c09ee11
commit
694d380e66
8 files changed
+82
-44
No files matched your search
@@ -464,6 +464,8 @@ Mob::Mob(
|
||||
#endif
|
||||
|
||||
mob_close_scan_timer.Trigger();
|
||||
|
||||
SetCanOpenDoors(true);
|
||||
}
|
||||
|
||||
Mob::~Mob()
|
||||
@@ -5960,3 +5962,13 @@ float Mob::HealRotationExtendedHealFrequency()
|
||||
return m_target_of_heal_rotation->ExtendedHealFrequency(this);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool Mob::CanOpenDoors() const
|
||||
{
|
||||
return m_can_open_doors;
|
||||
}
|
||||
|
||||
void Mob::SetCanOpenDoors(bool can_open)
|
||||
{
|
||||
m_can_open_doors = can_open;
|
||||
}
|
||||
Reference in new issue
Block a user