From 04026f5eb25634d09ad10f4d45aba11f06a45cdd Mon Sep 17 00:00:00 2001 From: Kr8art Date: Thu, 28 Nov 2024 16:06:47 +0100 Subject: [PATCH] Add sustenance vendor restock --- .../catalog/fills/crates/vending-crates.ftl | 5 ++++- .../DeltaV/Catalog/Cargo/cargo_vending.yml | 10 ++++++++++ .../DeltaV/Catalog/Fills/Crates/vending.yml | 10 +++++++++- .../Service/vending_machine_restock.yml | 16 ++++++++++++++++ .../vending_machine_restock.rsi/meta.json | 5 ++++- .../refill_sustenance.png | Bin 0 -> 1765 bytes 6 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 Resources/Textures/DeltaV/Objects/Specific/Service/vending_machine_restock.rsi/refill_sustenance.png diff --git a/Resources/Locale/en-US/deltav/prototypes/catalog/fills/crates/vending-crates.ftl b/Resources/Locale/en-US/deltav/prototypes/catalog/fills/crates/vending-crates.ftl index c85296a6497..c962f83e877 100644 --- a/Resources/Locale/en-US/deltav/prototypes/catalog/fills/crates/vending-crates.ftl +++ b/Resources/Locale/en-US/deltav/prototypes/catalog/fills/crates/vending-crates.ftl @@ -1,2 +1,5 @@ ent-CrateVendingMachineRestockPrideFilled = Pride-O-Mat restock crate - .desc = Contains a restock box for the Pride-O-Mat. \ No newline at end of file + .desc = Contains a restock box for the Pride-O-Mat. + +ent-CrateVendingMachineRestockSustenanceFilled = Sustenance vendor restock crate + .desc = Contains a restock box for the sustenance vendor. diff --git a/Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_vending.yml b/Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_vending.yml index 343ec4d5333..65b07de0c87 100644 --- a/Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_vending.yml +++ b/Resources/Prototypes/DeltaV/Catalog/Cargo/cargo_vending.yml @@ -7,3 +7,13 @@ cost: 1100 category: Service group: market + +- type: cargoProduct + id: CrateVendingMachineRestockSustenance + icon: + sprite: Objects/Specific/Service/vending_machine_restock.rsi + state: base + product: CrateVendingMachineRestockSustenanceFilled + cost: 750 + category: Service + group: market diff --git a/Resources/Prototypes/DeltaV/Catalog/Fills/Crates/vending.yml b/Resources/Prototypes/DeltaV/Catalog/Fills/Crates/vending.yml index 985b0443e2b..11883c41332 100644 --- a/Resources/Prototypes/DeltaV/Catalog/Fills/Crates/vending.yml +++ b/Resources/Prototypes/DeltaV/Catalog/Fills/Crates/vending.yml @@ -4,4 +4,12 @@ components: - type: StorageFill contents: - - id: VendingMachineRestockPride \ No newline at end of file + - id: VendingMachineRestockPride + +- type: entity + id: CrateVendingMachineRestockSustenanceFilled + parent: CratePlastic + components: + - type: StorageFill + contents: + - id: VendingMachineRestockSustenance diff --git a/Resources/Prototypes/DeltaV/Entities/Objects/Specific/Service/vending_machine_restock.yml b/Resources/Prototypes/DeltaV/Entities/Objects/Specific/Service/vending_machine_restock.yml index febf8d2765a..281b590e7e4 100644 --- a/Resources/Prototypes/DeltaV/Entities/Objects/Specific/Service/vending_machine_restock.yml +++ b/Resources/Prototypes/DeltaV/Entities/Objects/Specific/Service/vending_machine_restock.yml @@ -23,3 +23,19 @@ - state: green_bit shader: unshaded - state: refill_pride + +- type: entity + parent: BaseVendingMachineRestockDeltaV + id: VendingMachineRestockSustenance + name: Sustenance vendor restock box + description: Prisoners have to eat too. Nobody said they had to eat well. + components: + - type: VendingMachineRestock + canRestock: + - SustenanceInventory + - type: Sprite + layers: + - state: base + - state: green_bit + shader: unshaded + - state: refill_sustenance diff --git a/Resources/Textures/DeltaV/Objects/Specific/Service/vending_machine_restock.rsi/meta.json b/Resources/Textures/DeltaV/Objects/Specific/Service/vending_machine_restock.rsi/meta.json index b4d6a7706ca..caefa7f4992 100644 --- a/Resources/Textures/DeltaV/Objects/Specific/Service/vending_machine_restock.rsi/meta.json +++ b/Resources/Textures/DeltaV/Objects/Specific/Service/vending_machine_restock.rsi/meta.json @@ -1,7 +1,7 @@ { "version": 1, "license": "CC-BY-SA-3.0", - "copyright": "Original source: https://github.com/tgstation/tgstation/blob/master/icons/obj/vending_restock.dmi @ commit 014c44ef6279beb02a5f3e76824439fa57181c22 - Additions and cleanup by @Vordenburg. Refill_pride made by Dorragon for Delta-V", + "copyright": "Original source: https://github.com/tgstation/tgstation/blob/master/icons/obj/vending_restock.dmi @ commit 014c44ef6279beb02a5f3e76824439fa57181c22 - Additions and cleanup by @Vordenburg. Refill_pride made by Dorragon for Delta-V. refill_sustenance made by Kr8 for Delta-V", "size": { "x": 32, "y": 32 @@ -23,6 +23,9 @@ }, { "name": "refill_pride" + }, + { + "name": "refill_sustenance" } ] } diff --git a/Resources/Textures/DeltaV/Objects/Specific/Service/vending_machine_restock.rsi/refill_sustenance.png b/Resources/Textures/DeltaV/Objects/Specific/Service/vending_machine_restock.rsi/refill_sustenance.png new file mode 100644 index 0000000000000000000000000000000000000000..237ff98de11b0580bcb383757ea242e09cb205d9 GIT binary patch literal 1765 zcmbVNTWB0r7@k}LW_b_F!n(~^A?akh!0Wv(g($YC`D}52SJLU7TSpMMX30YcxG=Vl3s9OcFxRv z=lj0@GXK0WJ@xd#{=t4h5DrdGWM}yqM8_R{{6DDI|Kz9r-o*2PARM?iI=Y1SRtE$j z_LY;L59f2wAi~OVY%!C@Yh{n41z~8o=3%l(LtxT^<7UJ^&V4EZ$I6JuwH(ZOW3=c@ z)O|WvpURW^A~7s+_(?ESL!6*YLkw!=k{h5}Mr`mRzK(9oB4|Lu#f&%_34;0DG#Fz( z1x8$v2!txojkulAlGG+gfeO`xtSB-xBt=C@h*TZ4ej=CiEgQ{dkF~`3RYoj^p@(F- zTCK*bi8%8MvSJv93{_cGC617SWjDk%$qkOQ8L~7WzT<@sb3w$2O;!mrBDdO%q3m^N z-Jq2xo-w(GJz0svD5eI`A|0Gp@k@Z9Ed z9gRJ`l*=87ARJ%fVYCvmCpyS4dsLpK0jv0gjxTYWN1|vvH0DzrGC$8)sa>h*wq>Ad zaSc3r+;J^d4IbOEfo5??Ga|2AQc@I2G4i}>P(^C`38)|lo6sDy9D8{;R88j<4JkU( zQoEqMXDl4zTY@cuZ046S57;T=0+l_tAc9UB(HJW+p9^z$iH3_@4o$j2h+RS_vl)@c z9CsWGVMB-5)>TPMDTYM#q$y!NjU}5TNkUIqS`yOs{wyPvsIt-iW|v!xaE^afP0dKE znr%xKwx~qXNg^4xYDz{5Q$0;n)HL-r+q1sIUo>3W$r`z`I3uwzHf#k-+z*u$EvZQ+ zv_rmqf%iF)b_~X`aeXIMm4^H)5lwx@0jCwP`>$V} z5zM*sUE&Y3uU`80_u2t*;N?%ygO$(D^c*`3H-uLPgwxkfo;vaI;~z#JqRH{8>_<;6 GocIS{Yd5$6 literal 0 HcmV?d00001