From 04b2dab4e9638227441b0b2230aa326ffb65f466 Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Fri, 19 May 2023 14:39:37 +0000 Subject: [PATCH] Revert no device stacking (#16608) --- .../Atmos/UI/GasFilterBoundUserInterface.cs | 2 + Content.Client/Atmos/UI/GasFilterWindow.xaml | 2 +- .../Construction/ConstructionSystem.cs | 30 ++---------- .../Construction/AnchorableSystem.cs | 25 +--------- .../Conditions/NoUnstackableInTile.cs | 44 ----------------- .../Conditions/NoWindowsInTile.cs | 3 +- .../conditions/no-unstackable-in-tile.ftl | 1 - .../Structures/Piping/Atmospherics/binary.yml | 3 -- .../Piping/Atmospherics/trinary.yml | 11 ----- .../Recipes/Construction/utilities.yml | 47 +------------------ Resources/Prototypes/tags.yml | 3 -- 11 files changed, 12 insertions(+), 159 deletions(-) delete mode 100644 Content.Shared/Construction/Conditions/NoUnstackableInTile.cs delete 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 6c16881224..a0daf9c654 100644 --- a/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs @@ -14,6 +14,7 @@ namespace Content.Client.Atmos.UI { private GasFilterWindow? _window; + private const float MaxTransferRate = Atmospherics.MaxTransferRate; public GasFilterBoundUserInterface(ClientUserInterfaceComponent owner, Enum uiKey) : base(owner, uiKey) { @@ -48,6 +49,7 @@ 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 6963a71d3d..30333b07bd 100644 --- a/Content.Client/Atmos/UI/GasFilterWindow.xaml +++ b/Content.Client/Atmos/UI/GasFilterWindow.xaml @@ -9,7 +9,7 @@