v1.5.7.0 (Summer Update)

This commit is contained in:
Regalis11
2024-06-18 16:49:51 +03:00
parent 4a63dacbce
commit 230d1b6e78
263 changed files with 7792 additions and 2845 deletions
@@ -180,6 +180,22 @@ namespace Barotrauma.Items.Components
OpenState = isOpen ? 1.0f : 0.0f;
}
}
/// <summary>
/// Can be used by status effects to tell the door to open (setting IsOpen directly would make it immediately fully open)
/// </summary>
public bool ShouldBeOpen
{
get { return isOpen; }
set
{
if (isOpen != value)
{
ToggleState(ActionType.OnUse, user: null);
}
}
}
public bool IsClosed => !IsOpen;
public bool IsFullyOpen => IsOpen && OpenState >= 1.0f;