mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 09:37:55 +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:
@@ -225,6 +225,10 @@ inline std::string GetMobAttributeByString(Mob *mob, const std::string &attribut
|
||||
return std::to_string(mob->GetMaxBuffSlots());
|
||||
}
|
||||
|
||||
if (attribute == "can_open_doors") {
|
||||
return std::to_string(mob->CanOpenDoors());
|
||||
}
|
||||
|
||||
if (attribute == "curbuffslots") {
|
||||
return std::to_string(mob->GetCurrentBuffSlots());
|
||||
}
|
||||
@@ -770,6 +774,7 @@ void Mob::DisplayInfo(Mob *mob)
|
||||
"spells_id",
|
||||
"curbuffslots",
|
||||
"maxbuffslots",
|
||||
"can_open_doors",
|
||||
};
|
||||
|
||||
window_text += WriteDisplayInfoSection(mob, "NPC Attributes", npc_attributes, 1, true);
|
||||
|
||||
Reference in New Issue
Block a user