From f3ff35dcfa5afb417c24ba9f21cfc2bc414d0c4f Mon Sep 17 00:00:00 2001 From: Sergey Dikiy Date: Thu, 1 Feb 2024 09:40:57 +0100 Subject: [PATCH] Added Warning state for AME (#24699) added warning state for AME --- .../Ame/EntitySystems/AmeControllerSystem.cs | 1 + .../Ame/SharedAmeControllerComponent.cs | 1 + .../Structures/Power/Generation/ame.yml | 1 + .../Generation/ame.rsi/control_warning.png | Bin 0 -> 643 bytes .../Power/Generation/ame.rsi/meta.json | 26 ++++++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 Resources/Textures/Structures/Power/Generation/ame.rsi/control_warning.png diff --git a/Content.Server/Ame/EntitySystems/AmeControllerSystem.cs b/Content.Server/Ame/EntitySystems/AmeControllerSystem.cs index af3e474d08..93b2a29a76 100644 --- a/Content.Server/Ame/EntitySystems/AmeControllerSystem.cs +++ b/Content.Server/Ame/EntitySystems/AmeControllerSystem.cs @@ -263,6 +263,7 @@ public sealed class AmeControllerSystem : EntitySystem { < 10 => AmeControllerState.Fuck, < 50 => AmeControllerState.Critical, + < 80 => AmeControllerState.Warning, _ => AmeControllerState.On, }; diff --git a/Content.Shared/Ame/SharedAmeControllerComponent.cs b/Content.Shared/Ame/SharedAmeControllerComponent.cs index 8dde66724d..11925a82a0 100644 --- a/Content.Shared/Ame/SharedAmeControllerComponent.cs +++ b/Content.Shared/Ame/SharedAmeControllerComponent.cs @@ -69,6 +69,7 @@ public enum AmeControllerVisuals public enum AmeControllerState { On, + Warning, Critical, Fuck, Off, diff --git a/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml b/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml index d12301b3f3..78fdaae01a 100644 --- a/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml +++ b/Resources/Prototypes/Entities/Structures/Power/Generation/ame.yml @@ -67,6 +67,7 @@ display: Off: { visible: false } On: { state: control_on, visible: true } + Warning: { state: control_warning, visible: true } Critical: { state: control_critical, visible: true } Fuck: { state: control_fuck, visible: true } - type: NodeContainer diff --git a/Resources/Textures/Structures/Power/Generation/ame.rsi/control_warning.png b/Resources/Textures/Structures/Power/Generation/ame.rsi/control_warning.png new file mode 100644 index 0000000000000000000000000000000000000000..7f64302cdc19150af92711d3f084f6236186cc82 GIT binary patch literal 643 zcmeAS@N?(olHy`uVBq!ia0vp^3xK$RgAGXbBqvD&DYhhUcNd2L45t_v*30Lo0!26r zJR*x382Ao@Fyrz36)6l1Ov;`vjv*Dd-rhMKc-TOMHQ=V{1(&V`so%CZuuqx5Brz>% zcA`+N!?oj<>BoK4%q!1tI{B;(XcohrA65K@an3rGxjl-{`Y842diB5B^ArAS zEKlKI`$_)klV<_5_glyHY?(gi&z+Ndw&o_@-nL=u9_Bm$=I&;mqxe70@1Jor`-R4HvH_z;F5LWH2c{k`Jn*S|Uc5@bTM5X973w`}>kQv16+KNY8Ze$cvi+i~p+^SY_;-8s-~+%O}AKW3f!`cV5=t>==TimP8t zyx*MF=bA5&{!_2|thnsO^V46gw9bZjv(*0a2kV4Y>g&IE+86uBy<2d8LwjO>f^B87 vj$PfH*N?1Q>h^5>x%ju_Uk*kji!AobUtPNX@u|zqhd`p9u6{1-oD!M