From 67df47f5535f144cb7137b1e350cb363827508eb Mon Sep 17 00:00:00 2001 From: Tom Leys Date: Fri, 30 Jun 2023 00:04:36 +1200 Subject: [PATCH] No atmos stacking (attempt 2) (#16687) Co-authored-by: metalgearsloth --- .../Atmos/UI/GasFilterBoundUserInterface.cs | 2 - Content.Client/Atmos/UI/GasFilterWindow.xaml | 2 +- .../Construction/ConstructionSystem.cs | 33 +++++++++++--- .../Construction/AnchorableSystem.cs | 19 +++++++- .../Conditions/NoUnstackableInTile.cs | 31 +++++++++++++ .../Conditions/NoWindowsInTile.cs | 16 +++++-- .../EntitySystems/SharedAnchorableSystem.cs | 43 +++++++++++++++++++ .../conditions/no-unstackable-in-tile.ftl | 1 + .../Structures/Piping/Atmospherics/binary.yml | 3 ++ .../Piping/Atmospherics/trinary.yml | 11 +++++ .../Recipes/Construction/utilities.yml | 15 ++++++- Resources/Prototypes/tags.yml | 3 ++ 12 files changed, 165 insertions(+), 14 deletions(-) create mode 100644 Content.Shared/Construction/Conditions/NoUnstackableInTile.cs create mode 100644 Resources/Locale/en-US/construction/conditions/no-unstackable-in-tile.ftl diff --git a/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs b/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs index a0daf9c654..6c16881224 100644 --- a/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs @@ -14,7 +14,6 @@ namespace Content.Client.Atmos.UI { private GasFilterWindow? _window; - private const float MaxTransferRate = Atmospherics.MaxTransferRate; public GasFilterBoundUserInterface(ClientUserInterfaceComponent owner, Enum uiKey) : base(owner, uiKey) { @@ -49,7 +48,6 @@ namespace Content.Client.Atmos.UI private void OnFilterTransferRatePressed(string value) { float rate = float.TryParse(value, out var parsed) ? parsed : 0f; - if (rate > MaxTransferRate) rate = MaxTransferRate; SendMessage(new GasFilterChangeRateMessage(rate)); } diff --git a/Content.Client/Atmos/UI/GasFilterWindow.xaml b/Content.Client/Atmos/UI/GasFilterWindow.xaml index 30333b07bd..6963a71d3d 100644 --- a/Content.Client/Atmos/UI/GasFilterWindow.xaml +++ b/Content.Client/Atmos/UI/GasFilterWindow.xaml @@ -9,7 +9,7 @@