Fix gas tank and other hand-interaction bugs (#9700)

This commit is contained in:
Leon Friedrich
2022-07-31 14:56:26 +12:00
committed by GitHub
parent e227f208bc
commit bae540ab2f
6 changed files with 46 additions and 19 deletions

View File

@@ -42,7 +42,17 @@ namespace Content.Server.Atmos.Components
/// <summary>
/// Tank is connected to internals.
/// </summary>
[ViewVariables] public bool IsConnected { get; set; }
[ViewVariables] public bool IsConnected => User != null;
[ViewVariables]
public EntityUid? User;
/// <summary>
/// True if this entity was recently moved out of a container. This might have been a hand -> inventory
/// transfer, or it might have been the user dropping the tank. This indicates the tank needs to be checked.
/// </summary>
[ViewVariables]
public bool CheckUser;
/// <summary>
/// Pressure at which tanks start leaking.