]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
vendomat inventory (#14120)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Wed, 15 Feb 2023 19:24:00 +0000 (14:24 -0500)
committerGitHub <noreply@github.com>
Wed, 15 Feb 2023 19:24:00 +0000 (15:24 -0400)
Resources/Locale/en-US/prototypes/catalog/cargo/cargo-vending.ftl
Resources/Locale/en-US/prototypes/catalog/fills/crates/vending-crates.ftl
Resources/Prototypes/Catalog/Cargo/cargo_vending.yml
Resources/Prototypes/Catalog/Fills/Crates/vending.yml
Resources/Prototypes/Catalog/VendingMachines/Inventories/vendomat.yml
Resources/Prototypes/Entities/Objects/Specific/Service/vending_machine_restock.yml

index a303f0d6379eb21dc73f05be641a2295950aab48..9e5c6575b363835960c63307b29df3ffab243fdf 100644 (file)
@@ -43,6 +43,9 @@ ent-CrateVendingMachineRestockSmokes = { ent-CrateVendingMachineRestockSmokesFil
 ent-CrateVendingMachineRestockSnacks = { ent-CrateVendingMachineRestockSnacksFilled }
     .desc = { ent-CrateVendingMachineRestockSnacksFilled.desc }
 
+ent-CrateVendingMachineRestockVendomat = { ent-CrateVendingMachineRestockVendomatFilled }
+    .desc = { ent-CrateVendingMachineRestockVendomatFilled.desc }
+
 ent-CrateVendingMachineRestockTankDispenser = { ent-CrateVendingMachineRestockTankDispenserFilled }
     .desc = { ent-CrateVendingMachineRestockTankDispenserFilled.desc }
 
index acfe23c9851d6309fbaf28a926a8e2dc25d3be02..a33f93f678b27e3965f04187d77dd13f583bd41b 100644 (file)
@@ -43,6 +43,9 @@ ent-CrateVendingMachineRestockSmokesFilled = ShadyCigs restock crate
 ent-CrateVendingMachineRestockSnacksFilled = Snack restock crate
     .desc = Contains four restock boxes, each covering a different snack vendor. Mr. Chang's, Discount Dans, Robust Donuts, and Getmore Chocolate are featured on the advertisement.
 
+ent-CrateVendingMachineRestockVendomatFilled = Vendomat restock crate
+    .desc = Contains a restock box for a Vendomat vending machine.
+
 ent-CrateVendingMachineRestockTankDispenserFilled = Tank dispenser restock crate
     .desc = Contains a restock box for an Engineering or Atmospherics tank dispenser.
 
index f44445894c1f59496dc6a112165abc49c5a8aa5b..72b82541d399b502a4d8c2681ce71b21bc6a1d83 100644 (file)
   category: Service
   group: market
 
+- type: cargoProduct
+  id: CrateVendingMachineRestockVendomat
+  icon:
+    sprite: Objects/Specific/Service/vending_machine_restock.rsi
+    state: base
+  product: CrateVendingMachineRestockVendomatFilled
+  cost: 1200
+  category: Service
+  group: market
+
 - type: cargoProduct
   id: CrateVendingMachineRestockTankDispenser
   icon:
index 284603b4659245ccdafb428b39222e72bce68e6e..3de97fa654b3247f5d5f3ea293eacc0b445e41b2 100644 (file)
       - id: VendingMachineRestockDonut
       - id: VendingMachineRestockGetmoreChocolateCorp
 
+- type: entity
+  id: CrateVendingMachineRestockVendomatFilled
+  parent: CratePlastic
+  components:
+  - type: StorageFill
+    contents:
+    - id: VendingMachineRestockVendomat
+
 - type: entity
   id: CrateVendingMachineRestockTankDispenserFilled
   parent: CratePlastic
index 0e30abe42afe99acc3611b0c331ae3a1b19e4c8b..c78135ab87b47ea0d48517eef36cac320e517d4a 100644 (file)
@@ -1,2 +1,13 @@
 - type: vendingMachineInventory
   id: VendomatInventory
+  startingInventory:
+    RemoteSignaller: 1
+    Wirecutter: 1
+    CableApcStack: 2
+    FlashlightLantern: 2
+    PowerCellSmallPrinted: 3
+    MicroLaserStockPart: 4
+    MatterBinStockPart: 4
+    CapacitorStockPart: 4
+    MicroManipulatorStockPart: 4
+    ScanningModuleStockPart: 4
\ No newline at end of file
index 5da6383862a358c66b2ddd7f718d354a5b413f08..f44226549c886ced6d683d86b058dd64f77c33a5 100644 (file)
       shader: unshaded
     - state: refill_tanks
 
+- type: entity
+  parent: BaseVendingMachineRestock
+  id: VendingMachineRestockVendomat
+  name: vendomat restock box
+  description: A box full of parts for various machinery. Load it into a Vendomat to begin.
+  components:
+  - type: VendingMachineRestock
+    canRestock:
+    - VendomatInventory
+  - type: Sprite
+    layers:
+    - state: base
+    - state: green_bit
+      shader: unshaded
+    - state: refill_parts
+
 - type: entity
   parent: BaseVendingMachineRestock
   id: VendingMachineRestockHappyHonk