public Door(int propId, int regionId, int x, int y, int direction, DungeonBlockType doorType, string name, string state = "open")
: base(propId, regionId, x, y, direction, 1, 0, state, "", "")
{
this.Name = name;
this.DoorType = doorType;
this.BlockBoss = false;
this.Behavior = this.DefaultBehavior;
_isSwitchDoor = false;
_closedFrom = new Position(x / Dungeon.TileSize, y / Dungeon.TileSize);
// Set direction and adjust Y for boss doors
if (doorType == DungeonBlockType.BossDoor)
{
this.Info.Direction = MabiMath.DirectionToRadian(0, 1);
this.Info.Y += Dungeon.TileSize + Dungeon.TileSize / 2;
}
else
{
this.Info.Direction = MabiMath.DegreeToRadian(direction);
}
}