Core/InstanceScript: Refactored door types to reflect its behavior

Port From (https://github.com/TrinityCore/TrinityCore/commit/0e2f04172864e3cff2b5559ac89ded23ade5f92e)
This commit is contained in:
hondacrx
2024-02-02 15:04:43 -05:00
parent c9a11f3ead
commit d9e524a657
10 changed files with 61 additions and 56 deletions
+5 -4
View File
@@ -151,11 +151,12 @@ namespace Framework.Constants
ToBeDecided = 5
}
public enum DoorType
public enum EncounterDoorBehavior
{
Room = 0, // Door can open if encounter is not in progress
Passage = 1, // Door can open if encounter is done
SpawnHole = 2, // Door can open if encounter is in progress, typically used for spawning places
OpenWhenNotInProgress = 0, // open if encounter is not in progress
OpenWhenDone = 1, // open if encounter is done
OpenWhenInProgress = 2, // open if encounter is in progress, typically used for spawning places
OpenWhenNotDone = 3, // open if encounter is not done
Max
}