From 8c32ffa59b6fb19fa3f2f481ce8a54b388ada33d Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:13:23 +0000 Subject: [PATCH 1/4] Emergency power unit --- .../DeltaV/Entities/Structures/Power/smes.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml diff --git a/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml b/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml new file mode 100644 index 00000000000..1ef48e8237c --- /dev/null +++ b/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml @@ -0,0 +1,23 @@ +- type: entity + id: SMESEmergency + name: Emergency Power Unit + description: Supplies emergency power. Cannot be recharged. + suffix: Basic, 1.6MJ + parent: BaseSMES + components: + - type: Sprite + color: "#FF7777FF" + - type: Battery + maxCharge: 1600000 + startingCharge: 1600000 + - type: PowerNetworkBattery + maxChargeRate: 0 + +- type: entity + id: SMESEmergencyHighCapacity + suffix: High-Capacity, 5MJ + parent: SMESEmergency + components: + - type: Battery + maxCharge: 5000000 + startingCharge: 5000000 From 0e3cbdd712ee578a4013c4a8075e5a2a09baf3a6 Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:34:55 +0100 Subject: [PATCH 2/4] Add texture --- .../DeltaV/Structures/Power/epu.rsi/meta.json | 77 ++++++++++++++++++ .../Structures/Power/epu.rsi/smes-oc0.png | Bin 0 -> 114 bytes .../Structures/Power/epu.rsi/smes-oc1.png | Bin 0 -> 145 bytes .../Structures/Power/epu.rsi/smes-oc2.png | Bin 0 -> 145 bytes .../Structures/Power/epu.rsi/smes-og1.png | Bin 0 -> 101 bytes .../Structures/Power/epu.rsi/smes-og2.png | Bin 0 -> 155 bytes .../Structures/Power/epu.rsi/smes-og3.png | Bin 0 -> 160 bytes .../Structures/Power/epu.rsi/smes-og4.png | Bin 0 -> 194 bytes .../Structures/Power/epu.rsi/smes-og5.png | Bin 0 -> 200 bytes .../Structures/Power/epu.rsi/smes-op0.png | Bin 0 -> 106 bytes .../Structures/Power/epu.rsi/smes-op1.png | Bin 0 -> 143 bytes .../Structures/Power/epu.rsi/smes-op2.png | Bin 0 -> 111 bytes .../Structures/Power/epu.rsi/smes-open.png | Bin 0 -> 967 bytes .../DeltaV/Structures/Power/epu.rsi/smes.png | Bin 0 -> 1298 bytes .../Structures/Power/epu.rsi/static.png | Bin 0 -> 5374 bytes 15 files changed, 77 insertions(+) create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/meta.json create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc0.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc1.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc2.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og1.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og2.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og3.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og4.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og5.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op0.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op1.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op2.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-open.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes.png create mode 100644 Resources/Textures/DeltaV/Structures/Power/epu.rsi/static.png diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/meta.json b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/meta.json new file mode 100644 index 00000000000..a84861e1793 --- /dev/null +++ b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/meta.json @@ -0,0 +1,77 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/9c7d509354ee030300f63c701da63c17928c3b3b and modified by Swept | smes.png created by @ps3moira on Discord", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "smes" + }, + { + "name": "static" + }, + { + "name": "smes-open" + }, + { + "name": "smes-oc0" + }, + { + "name": "smes-oc1", + "delays": [ + [ + 0.5, + 0.5 + ] + ] + }, + { + "name": "smes-oc2", + "delays": [ + [ + 0.5, + 0.5 + ] + ] + }, + { + "name": "smes-og1", + "delays": [ + [ + 1, + 1 + ] + ] + }, + { + "name": "smes-og2" + }, + { + "name": "smes-og3" + }, + { + "name": "smes-og4" + }, + { + "name": "smes-og5" + }, + { + "name": "smes-op0" + }, + { + "name": "smes-op1", + "delays": [ + [ + 1, + 1 + ] + ] + }, + { + "name": "smes-op2" + } + ] +} diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc0.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc0.png new file mode 100644 index 0000000000000000000000000000000000000000..5579432d3fed36949e0cc0872d2886509b9596e4 GIT binary patch literal 114 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzOHUWakcif|7dP@UDDW^lzCXgJ zbNJs^~SEYfn`1yks09?3Qu6xNq_~rhu2)AO3Qy+|@kEcHy>!WX4CG!$3nA NJYD@<);T3K0RSJ?C9(hj literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc1.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc1.png new file mode 100644 index 0000000000000000000000000000000000000000..d624672613b71529b53390c16b976c4cd8af7851 GIT binary patch literal 145 zcmeAS@N?(olHy`uVBq!ia0vp^4nVBH!3HE3&8=$zQW2gmjv*P1Z!d4;Y;fRVy};4L z_w>iKyoARLNt!oSXjmNxZGT=Z;352Df(lSILxcaVc8hghXXB=CdY76rFYojmmC2>= s-g||fVcin^eO~=kqvxy)4fS0e!q%&V7HZw^mFVdQ&MBb@00$B@W&i*H literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc2.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-oc2.png new file mode 100644 index 0000000000000000000000000000000000000000..d624672613b71529b53390c16b976c4cd8af7851 GIT binary patch literal 145 zcmeAS@N?(olHy`uVBq!ia0vp^4nVBH!3HE3&8=$zQW2gmjv*P1Z!d4;Y;fRVy};4L z_w>iKyoARLNt!oSXjmNxZGT=Z;352Df(lSILxcaVc8hghXXB=CdY76rFYojmmC2>= s-g||fVcin^eO~=kqvxy)4fS0e!q%&V7HZw^mFVdQ&MBb@00$B@W&i*H literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og1.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og1.png new file mode 100644 index 0000000000000000000000000000000000000000..c65f011a070e3400ce431363ec2d1452a0672a98 GIT binary patch literal 101 zcmeAS@N?(olHy`uVBq!ia0vp^4nVBH!3HE3&8=$zQaYY4jv*P1Z!Z|~G8ph2*zn=F xncrHr1O~O6{{L8j@(c_%b7!sGS<1=qBW!EL4A!Y`Ol;3V!k(^vF6*2UngG`|91s8i literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og2.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og2.png new file mode 100644 index 0000000000000000000000000000000000000000..0023750405154e83682e95d82f9251fad89d2fee GIT binary patch literal 155 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?4jBOuH;Rhv&5DCq0y z;uumf=k57}oD2#)EC+?(cw}!{@g>FgVn3^gi(py&&$}wG3xNt@;1Bx;weXql(Z4F z;uumf=k0}qoIurX5A8D+&)POKYuTp@OpC5OwH4U&Gx6$kpgI^RVE%R`Y;&sT($zNX u88>1a-0}`ct^EGCVcn10&JAyXstOpI_&Bz|k7Bw3(&Fjr=d#Wzp$P!e!!wfr literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og4.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og4.png new file mode 100644 index 0000000000000000000000000000000000000000..ceb3db1bc317c61c13ae5c60a0d5d19c4c96f72a GIT binary patch literal 194 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?4jBOuH;Rhv&5C|Kg@ z;uumf=k3LfoDBv7tq;|2+`47eICa}2r@n+sJDNhb6*h$UCCugx$_%r37tr$k@ap%? zt3MX92skh>LWn>78|J>XE$8mbZhsy8)hgjEXNJu(9*Y-~_bW`{O%+t@WHg*{Z#uJ^ j!{2hz16E8N3J(}3nhJzOuMSlP+RxzW>gTe~DWM4f*Tq4} literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og5.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-og5.png new file mode 100644 index 0000000000000000000000000000000000000000..e6c0c8a2eac425d18dc75175efc42717333ffea4 GIT binary patch literal 200 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?4jBOuH;Rhv&5C|Kp` z;uumf=k2A9ybT6CEC<}3yj)K!EpgR3!r?Gkbj2oK+sKw_TB17=8BPmk{!=~ubbiYA z6*5d53JnYp;!A@tKif^uV~c;v3dHokoL9I*R$DK7zublt&9`Pfl1v-i>zgz_&t1T# oaCFh%s)qKzAAK4wDFSuJeJBtNU6gcz8R!ZIPgg&ebxsLQ0BkfuoB#j- literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op0.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op0.png new file mode 100644 index 0000000000000000000000000000000000000000..573b5c404ffb782747013b0c948d8e1b3ba46092 GIT binary patch literal 106 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzLr)jSkcif|7XmqflFkQ9H#Mie z`ER?iS>aG@qq!IZ!-Hw-ZuWh-xlsL{jSRyd&68{|xj6+g&Y9f=YG&|s^>bP0l+XkK D{h}fG literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op1.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op1.png new file mode 100644 index 0000000000000000000000000000000000000000..f5c8e1048941781782c75f26e94579007e891abf GIT binary patch literal 143 zcmeAS@N?(olHy`uVBq!ia0vp^4nVBH!3HE3&8=$zQemDhjv*P1Z!aI@WHuCFc9=NL zC(1)I^MRM`yO~uYlZ5!{d(sp3GjW;$)iNB=eQ#$yYu&bc$zd1N(~Hh}MF-se|JM4z p$E@R3`UYp$*KGa>R1`I-hH-nFnDsA>^%Ft5JYD@<);T3K0RYS(F?Ij| literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op2.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-op2.png new file mode 100644 index 0000000000000000000000000000000000000000..af560237f17a0a5b2a9ff008cd922cf1b0a0c180 GIT binary patch literal 111 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzGfx-Ckcif|mkx3QB@Z8X;PuE# zPseWV@^cD50*j=VhH!n#Uus2xtO>r>mdK II;Vst0E|5$!vFvP literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-open.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/smes-open.png new file mode 100644 index 0000000000000000000000000000000000000000..472e3fd72019753f986a7d9d30bd54b8634bd0b9 GIT binary patch literal 967 zcmV;&133JNP)nL=zqR`37sYGZ<{5s^W5Ptv{)pdlB z2yq%pkz6Y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`u<*xz$c7OZzS7Ro%!b>kNGZ9zU)Y9G8PrJKEu^+Kd4-+5>4S^)B0MY=uJIY73n3V_)=3W;*YkPsIe+JdK&?`NUwa{#uLm5~q^OZG=)09>r8 z1t7{9!=ju8q-11h+Z?S@xs@ zJ$)IZs2%Bse=vXTwp>o@@hPNt3T@o$r5RT0g1@geSYn(F zyn`?YlKRM7@ z*KA2Xss&fh4B~1kAwzjY4x)uF-#?hHva*pG2VkoI>68}i+vJ;~+Wr%!<)d0)`{g!{ z#~hrza)BXFHR^(3+n)IRhMvqUQT;Fq@Rm34I+W< zjpho41^a$HF=8!*VF4fqQRRwF0IWM$${_}^_1y-1gXlm*WAG9KaG;@)ho;R4If#1t zJbnSiZ!VXCgt%DQk?O0pfN!XXU&e4o@tWj0rl0aa3v!;%2B3U*jsLx1-V>S3Ntq46 zuV*^}U;8$1DGj@FD}1CFC>Fx#6^Dbs!UQ=O{u8#ldz3c{ zJ$hv1KWN%?037!za&!6anlX_ITf6)EnUV1^d3iAm4PQpv@GtFq{!&tBskV;a&fl@z zTu~9BM>`$5s;YWR%LKipWrD7%>Rn%}s;Wmj9XdejEH(UBfr^R`#Qw9}#2 z)!Fa*TGup7j{g8bgqgrOJTABZ000hUSV?A0O#mtY000O800000007cclK=n!07*qo IM6N<$g6W)MqyPW_ literal 0 HcmV?d00001 diff --git a/Resources/Textures/DeltaV/Structures/Power/epu.rsi/static.png b/Resources/Textures/DeltaV/Structures/Power/epu.rsi/static.png new file mode 100644 index 0000000000000000000000000000000000000000..3372c7305cc9da506f0fe02abcdfc010d92c0c53 GIT binary patch literal 5374 zcmeHKX;2f{7H&XRMFAHa6($Bm5jz`MNF*W2yNIY$Sn1TyQ}UcfbK$ zp9_MHs3?NlprCASxIIKs7)Ay`QIUa>xPY${P_f=ry|U`fKa=Wo_qpHs?m6E*_f&2Q zcUF+C%@`X10BqU8tT6PBFO;#2<{Hz<&dIVfY{l&+$9462vWdUbg{;L1m-Z^hmfR>g#C}=mW~P00 z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el&|x7`swYj7saghk8Zq^8A^0vqROgB|j@! z0f`$o@FJaLtmju-Lp`cD?>RX2TIG!VuJRGx9gz#^?{Iv5m-o}Mn--0^1ud+%MN%++ zUtpK7??rw{o!-{x^jXLKPY+=mRzIJfKzdVI;g++e?Ny>vwez!^(oBaj@s7zb1IS2r zC7#Rvm4xBWx&NxyMC2-S@w`{DdDo>U5A=Aa_q`cU#8-2w|FtY=$i((Kiti3V;iOYj zJUE>6?KwH@4O6an_bkXjkPS5lfU;X@obKgLOHvY(8Ya;2RVxZ7|Dak_^Qx&^QEO>? bve)cx;P&i=1y9bRtqfoX%wiq)TfF8!`>`^0 literal 0 HcmV?d00001 From 8f2fd2f190d7eb47e1c3dcabb1f24566422c53f7 Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:35:23 +0100 Subject: [PATCH 3/4] Change prototype --- .../DeltaV/Entities/Structures/Power/smes.yml | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml b/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml index 1ef48e8237c..86298e49ea6 100644 --- a/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml +++ b/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml @@ -5,13 +5,38 @@ suffix: Basic, 1.6MJ parent: BaseSMES components: + # Visual changes - type: Sprite - color: "#FF7777FF" + sprite: DeltaV/Structures/Power/epu.rsi + - type: PowerMonitoringDevice + sprite: DeltaV/Structures/Power/epu.rsi + group: Generator + loadNode: output + collectionName: emergency power unit + - type: PointLight + radius: 1.5 + energy: 1.6 + color: "#FF4020" + - type: AmbientSound + volume: -5 + range: 5 + sound: + path: /Audio/Ambience/Objects/buzzing.ogg + # Functional changes - type: Battery maxCharge: 1600000 startingCharge: 1600000 - type: PowerNetworkBattery maxChargeRate: 0 + - type: BatteryCharger + voltage: High + node: + - type: NodeContainer + examinable: true + nodes: + output: + !type:CableDeviceNode + nodeGroupID: HVPower - type: entity id: SMESEmergencyHighCapacity From 918825ba9b118b96717b1c722b1b56d1de96fa58 Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Fri, 1 Mar 2024 00:02:08 +0100 Subject: [PATCH 4/4] Prevent deconstruction of the EPU Surely this wont break anything... Cant wait for https://github.com/space-wizards/space-station-14/pull/24654 to be merged --- .../PreventDeconstructionComponent.cs | 8 ++++++++ .../PreventDeconstructionSystem.cs | 20 +++++++++++++++++++ .../DeltaV/Entities/Structures/Power/smes.yml | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 Content.Server/DeltaV/Construction/Components/PreventDeconstructionComponent.cs create mode 100644 Content.Server/DeltaV/Construction/PreventDeconstructionSystem.cs diff --git a/Content.Server/DeltaV/Construction/Components/PreventDeconstructionComponent.cs b/Content.Server/DeltaV/Construction/Components/PreventDeconstructionComponent.cs new file mode 100644 index 00000000000..db01713e984 --- /dev/null +++ b/Content.Server/DeltaV/Construction/Components/PreventDeconstructionComponent.cs @@ -0,0 +1,8 @@ +namespace Content.Server.DeltaV.Construction.Components; + +[RegisterComponent] +public sealed partial class PreventDeconstructionComponent : Component +{ + [DataField] + public bool RemoveWirePanel; +} diff --git a/Content.Server/DeltaV/Construction/PreventDeconstructionSystem.cs b/Content.Server/DeltaV/Construction/PreventDeconstructionSystem.cs new file mode 100644 index 00000000000..263e6e87462 --- /dev/null +++ b/Content.Server/DeltaV/Construction/PreventDeconstructionSystem.cs @@ -0,0 +1,20 @@ +using Content.Server.Construction.Components; +using Content.Server.DeltaV.Construction.Components; +using Content.Shared.Wires; + +namespace Content.Server.DeltaV.Construction; + +public sealed class PreventDeconstructionSystem : EntitySystem +{ + public override void Initialize() + { + SubscribeLocalEvent(OnMapInit); + } + + private void OnMapInit(EntityUid uid, PreventDeconstructionComponent component, MapInitEvent args) + { + RemComp(uid); + if (component.RemoveWirePanel) + RemComp(uid); + } +} diff --git a/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml b/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml index 86298e49ea6..78c56168425 100644 --- a/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml +++ b/Resources/Prototypes/DeltaV/Entities/Structures/Power/smes.yml @@ -37,6 +37,8 @@ output: !type:CableDeviceNode nodeGroupID: HVPower + - type: PreventDeconstruction + removeWirePanel: true - type: entity id: SMESEmergencyHighCapacity