From 672c8662804af5de418ed88c7ad1e9e60e91104b Mon Sep 17 00:00:00 2001 From: Peptide90 Date: Wed, 26 Jun 2024 11:12:37 +0100 Subject: [PATCH] new nuka cola and alcohol bottles. New vendors --- .../Consumable/Drinks/drinks_bottles.yml | 2 + .../Structures/Machines/vending_machines.yml | 74 ++++++++++++++++++- 2 files changed, 75 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Nuclear14/Entities/Objects/Consumable/Drinks/drinks_bottles.yml b/Resources/Prototypes/Nuclear14/Entities/Objects/Consumable/Drinks/drinks_bottles.yml index 09c8c3838b6..16b060ec62b 100644 --- a/Resources/Prototypes/Nuclear14/Entities/Objects/Consumable/Drinks/drinks_bottles.yml +++ b/Resources/Prototypes/Nuclear14/Entities/Objects/Consumable/Drinks/drinks_bottles.yml @@ -124,6 +124,8 @@ max: 1 - !type:DoActsBehavior acts: [ "Destruction" ] + - type: Item + size: Small - type: entity parent: BrokenBottle diff --git a/Resources/Prototypes/Nuclear14/Entities/Structures/Machines/vending_machines.yml b/Resources/Prototypes/Nuclear14/Entities/Structures/Machines/vending_machines.yml index a7b3037d06c..ec1afd56291 100644 --- a/Resources/Prototypes/Nuclear14/Entities/Structures/Machines/vending_machines.yml +++ b/Resources/Prototypes/Nuclear14/Entities/Structures/Machines/vending_machines.yml @@ -36,4 +36,76 @@ components: - type: VendingMachine pack: NukaRadInventory - # Needs a run down variant of the sprite \ No newline at end of file + # Needs a run down variant of the sprite + + +# Broken vendor as storage type +- type: entity + parent: VendingMachine + id: N14VendingMachineNukaColaNew + suffix: storage, empty + name: Nuka-Cola machine + description: A Pre-War vending machine that dispenses Nuka-Cola Corporation branded beverages. + components: + - type: Sprite + sprite: Nuclear14/Structures/Machines/VendingMachines/nukacola.rsi + layers: + - state: "off" + map: ["enum.VendingMachineVisualLayers.Base"] + - state: "off" + map: ["enum.VendingMachineVisualLayers.BaseUnshaded"] + shader: unshaded + - state: panel + map: ["enum.WiresVisualLayers.MaintenancePanel"] + - type: WiresVisuals + - type: PointLight + radius: 1.5 + energy: 1.6 + color: "#b34747" + - type: Storage + grid: + - 0,0,3,3 + maxItemSize: Small + - type: UserInterface + interfaces: + - key: enum.StorageUiKey.Key + type: StorageBoundUserInterface + - type: ContainerContainer + containers: + storagebase: !type:Container + - type: Transform + anchored: true + +- type: entity + parent: N14VendingMachineNukaColaNew + id: N14VendingMachineNukaColaNewFilled + suffix: storage, random + components: + - type: StorageFill + contents: + - id: N14DrinkNukaColaEmpty + prob: 0.3 + - id: N14DrinkNukaColaBroken + prob: 0.3 + - id: N14DrinkNukaCola + prob: 0.3 + - id: N14DrinkNukaCola + prob: 0.3 + - id: N14DrinkNukaCola + prob: 0.2 + - id: N14DrinkNukaColaCherry + prob: 0.1 + - id: N14DrinkNukaColaGrape + prob: 0.1 + - id: N14DrinkNukaColaOrange + prob: 0.1 + - id: N14DrinkNukaColaYellow + prob: 0.05 + - id: N14DrinkNukaColaQuantum + prob: 0.05 + - id: N14DrinkNukaColaQuartz + prob: 0.05 + - id: N14DrinkNukaColaVictory + prob: 0.05 + - id: N14DrinkNukaColaWild + prob: 0.05 \ No newline at end of file