diff --git a/Resources/Locale/en-US/advertisements/vending/donut.ftl b/Resources/Locale/en-US/advertisements/vending/donut.ftl new file mode 100644 index 0000000000..32a3443e07 --- /dev/null +++ b/Resources/Locale/en-US/advertisements/vending/donut.ftl @@ -0,0 +1,3 @@ +advertisement-donut-1 = Each of us is a little cop! +advertisement-donut-2 = Hope you're hunger! +advertisement-donut-3 = Over 1 million donuts sold! diff --git a/Resources/Prototypes/Catalog/VendingMachines/Advertisements/donut.yml b/Resources/Prototypes/Catalog/VendingMachines/Advertisements/donut.yml new file mode 100644 index 0000000000..1bc44793e4 --- /dev/null +++ b/Resources/Prototypes/Catalog/VendingMachines/Advertisements/donut.yml @@ -0,0 +1,6 @@ +- type: advertisementsPack + id: DonutAds + advertisements: + - advertisement-donut-1 + - advertisement-donut-2 + - advertisement-donut-3 diff --git a/Resources/Prototypes/Catalog/VendingMachines/Inventories/donut.yml b/Resources/Prototypes/Catalog/VendingMachines/Inventories/donut.yml new file mode 100644 index 0000000000..a640f68a28 --- /dev/null +++ b/Resources/Prototypes/Catalog/VendingMachines/Inventories/donut.yml @@ -0,0 +1,11 @@ +- type: vendingMachineInventory + id: DonutInventory + name: Donut + spriteName: donut + startingInventory: + FoodDonutChocolate: 5 + FoodDonutApple: 3 + FoodDonutPink: 3 + FoodDonutBungo: 3 + emaggedInventory: + FoodDonutPoison: 1 diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Food/Baked/donut.yml b/Resources/Prototypes/Entities/Objects/Consumable/Food/Baked/donut.yml index 885d5f8393..c34cb3ccfe 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Food/Baked/donut.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Food/Baked/donut.yml @@ -405,3 +405,16 @@ - ReagentId: Vitamin Quantity: 1 # Tastes like jelly-donut, fizzy tutti frutti. + +# Poison donut +- type: entity + parent: FoodDonutPink + id: FoodDonutPoison + components: + - type: SolutionContainerManager + solutions: + food: + maxVol: 10 + reagents: + - ReagentId: Amatoxin + Quantity: 10 diff --git a/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml b/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml index 9983064159..bf74f7dd7e 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml @@ -919,6 +919,40 @@ energy: 1.6 color: "#9dc5c9" +- type: entity + parent: VendingMachine + id: VendingMachineDonut + name: Monkin' Donuts + description: A donut vendor provided by Robust Industries, LLC. + components: + - type: VendingMachine + pack: DonutInventory + dispenseOnHitChance: 0.25 + dispenseOnHitThreshold: 2 + - type: Advertise + pack: DonutAds + - type: Speech + - type: Sprite + sprite: Structures/Machines/VendingMachines/donut.rsi + layers: + - state: "off" + map: ["enum.VendingMachineVisualLayers.Unlit"] + - state: "off" + map: ["enum.VendingMachineVisualLayers.BaseUnshaded"] + shader: unshaded + - state: panel + map: ["enum.WiresVisualLayers.MaintenancePanel"] + - type: Appearance + visuals: + - type: VendingMachineVisualizer + normalUnshaded: true + broken: true + - type: WiresVisualizer + - type: PointLight + radius: 1.5 + energy: 1.6 + color: "#d4ab33" + # job clothing - type: entity diff --git a/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/broken.png b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/broken.png new file mode 100644 index 0000000000..3fd8e61922 Binary files /dev/null and b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/broken.png differ diff --git a/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/meta.json b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/meta.json new file mode 100644 index 0000000000..dd206b1097 --- /dev/null +++ b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/meta.json @@ -0,0 +1,34 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from TauCetiStation at https://github.com/TauCetiStation/TauCetiClassic/commit/8f79f8dac1d41d5050262e1669c83e9d0fff245f", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "normal-unshaded", + "delays": [ + [ + 2.5, 0.2, 0.2, 0.2, + 2.5, 0.2, 0.2, 0.2, + 2.5, 0.2, 0.2, 0.2, + 2.5, 0.2, 0.2, 0.2, + 2.5, 0.2, 0.2, 0.2, + 2.5, 0.2, 0.2, 0.2, + 2.5, 0.2, 0.2, 0.2 + ] + ] + }, + { + "name": "broken" + }, + { + "name": "off" + }, + { + "name": "panel" + } + ] +} diff --git a/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/normal-unshaded.png b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/normal-unshaded.png new file mode 100644 index 0000000000..063f7b1424 Binary files /dev/null and b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/normal-unshaded.png differ diff --git a/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/off.png b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/off.png new file mode 100644 index 0000000000..3c0472ec3a Binary files /dev/null and b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/off.png differ diff --git a/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/panel.png b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/panel.png new file mode 100644 index 0000000000..2dc2b54ee6 Binary files /dev/null and b/Resources/Textures/Structures/Machines/VendingMachines/donut.rsi/panel.png differ