[entity] Chemvend (#16326)
* adds chemvend * chemvend tweaks * add restock to cargo market
This commit is contained in:
@@ -76,6 +76,16 @@
|
|||||||
category: Medical
|
category: Medical
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
|
- type: cargoProduct
|
||||||
|
id: CrateVendingMachineRestockChemVend
|
||||||
|
icon:
|
||||||
|
sprite: Objects/Specific/Service/vending_machine_restock.rsi
|
||||||
|
state: base
|
||||||
|
product: CrateVendingMachineRestockChemVendFilled
|
||||||
|
cost: 3500
|
||||||
|
category: Medical
|
||||||
|
group: market
|
||||||
|
|
||||||
- type: cargoProduct
|
- type: cargoProduct
|
||||||
id: CrateVendingMachineRestockNutriMax
|
id: CrateVendingMachineRestockNutriMax
|
||||||
icon:
|
icon:
|
||||||
|
|||||||
@@ -56,6 +56,14 @@
|
|||||||
contents:
|
contents:
|
||||||
- id: VendingMachineRestockMedical
|
- id: VendingMachineRestockMedical
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: CrateVendingMachineRestockChemVendFilled
|
||||||
|
parent: CrateMedicalSecure
|
||||||
|
components:
|
||||||
|
- type: StorageFill
|
||||||
|
contents:
|
||||||
|
- id: VendingMachineRestockChemVend
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: CrateVendingMachineRestockNutriMaxFilled
|
id: CrateVendingMachineRestockNutriMaxFilled
|
||||||
parent: CrateHydroSecure
|
parent: CrateHydroSecure
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
- type: vendingMachineInventory
|
||||||
|
id: ChemVendInventory
|
||||||
|
startingInventory:
|
||||||
|
JugAluminium: 2
|
||||||
|
JugCarbon: 2
|
||||||
|
JugChlorine: 2
|
||||||
|
JugCopper: 2
|
||||||
|
JugEthanol: 2
|
||||||
|
JugFluorine: 2
|
||||||
|
JugHydrogen: 2
|
||||||
|
JugIodine: 2
|
||||||
|
JugIron: 2
|
||||||
|
JugLithium: 2
|
||||||
|
JugMercury: 2
|
||||||
|
JugNitrogen: 2
|
||||||
|
JugOxygen: 2
|
||||||
|
JugPhosphorus: 2
|
||||||
|
JugPotassium: 2
|
||||||
|
JugRadium: 2
|
||||||
|
JugSilicon: 2
|
||||||
|
JugSodium: 2
|
||||||
|
JugSugar: 2
|
||||||
|
JugSulfur: 2
|
||||||
@@ -438,3 +438,19 @@
|
|||||||
- state: green_bit
|
- state: green_bit
|
||||||
shader: unshaded
|
shader: unshaded
|
||||||
- state: refill_honk
|
- state: refill_honk
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: BaseVendingMachineRestock
|
||||||
|
id: VendingMachineRestockChemVend
|
||||||
|
name: ChemVend restock box
|
||||||
|
description: A box filled with chemicals and covered in dangerous-looking NFPA diamonds. Load it into a ChemVend to begin.
|
||||||
|
components:
|
||||||
|
- type: VendingMachineRestock
|
||||||
|
canRestock:
|
||||||
|
- ChemVendInventory
|
||||||
|
- type: Sprite
|
||||||
|
layers:
|
||||||
|
- state: base
|
||||||
|
- state: green_bit
|
||||||
|
shader: unshaded
|
||||||
|
- state: refill_medical
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (carbon)
|
||||||
id: JugCarbon
|
id: JugCarbon
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -64,6 +65,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (iodine)
|
||||||
id: JugIodine
|
id: JugIodine
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -78,6 +80,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (fluorine)
|
||||||
id: JugFluorine
|
id: JugFluorine
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -92,6 +95,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (chlorine)
|
||||||
id: JugChlorine
|
id: JugChlorine
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -106,6 +110,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (aluminium)
|
||||||
id: JugAluminium
|
id: JugAluminium
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -120,6 +125,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (phosphorus)
|
||||||
id: JugPhosphorus
|
id: JugPhosphorus
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -134,6 +140,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (sulfur)
|
||||||
id: JugSulfur
|
id: JugSulfur
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -148,6 +155,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (silicon)
|
||||||
id: JugSilicon
|
id: JugSilicon
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -162,6 +170,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (hydrogen)
|
||||||
id: JugHydrogen
|
id: JugHydrogen
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -176,6 +185,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (lithium)
|
||||||
id: JugLithium
|
id: JugLithium
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -190,6 +200,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (sodium)
|
||||||
id: JugSodium
|
id: JugSodium
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -204,6 +215,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (potassium)
|
||||||
id: JugPotassium
|
id: JugPotassium
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -218,6 +230,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (radium)
|
||||||
id: JugRadium
|
id: JugRadium
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -232,6 +245,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (iron)
|
||||||
id: JugIron
|
id: JugIron
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -246,6 +260,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (copper)
|
||||||
id: JugCopper
|
id: JugCopper
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -260,6 +275,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (gold)
|
||||||
id: JugGold
|
id: JugGold
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -274,6 +290,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (mercury)
|
||||||
id: JugMercury
|
id: JugMercury
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -288,6 +305,7 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Jug
|
parent: Jug
|
||||||
|
name: jug (silver)
|
||||||
id: JugSilver
|
id: JugSilver
|
||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
@@ -299,3 +317,63 @@
|
|||||||
reagents:
|
reagents:
|
||||||
- ReagentId: Silver
|
- ReagentId: Silver
|
||||||
Quantity: 200
|
Quantity: 200
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: Jug
|
||||||
|
name: jug (ethanol)
|
||||||
|
id: JugEthanol
|
||||||
|
noSpawn: true
|
||||||
|
components:
|
||||||
|
- type: Label
|
||||||
|
currentLabel: Ethanol
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
beaker:
|
||||||
|
reagents:
|
||||||
|
- ReagentId: Ethanol
|
||||||
|
Quantity: 200
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: Jug
|
||||||
|
name: jug (sugar)
|
||||||
|
id: JugSugar
|
||||||
|
noSpawn: true
|
||||||
|
components:
|
||||||
|
- type: Label
|
||||||
|
currentLabel: Sugar
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
beaker:
|
||||||
|
reagents:
|
||||||
|
- ReagentId: Sugar
|
||||||
|
Quantity: 200
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: Jug
|
||||||
|
name: jug (nitrogen)
|
||||||
|
id: JugNitrogen
|
||||||
|
noSpawn: true
|
||||||
|
components:
|
||||||
|
- type: Label
|
||||||
|
currentLabel: Nitrogen
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
beaker:
|
||||||
|
reagents:
|
||||||
|
- ReagentId: Nitrogen
|
||||||
|
Quantity: 200
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: Jug
|
||||||
|
name: jug (oxygen)
|
||||||
|
id: JugOxygen
|
||||||
|
noSpawn: true
|
||||||
|
components:
|
||||||
|
- type: Label
|
||||||
|
currentLabel: Oxygen
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
beaker:
|
||||||
|
reagents:
|
||||||
|
- ReagentId: Oxygen
|
||||||
|
Quantity: 200
|
||||||
|
|||||||
@@ -1829,3 +1829,27 @@
|
|||||||
- state: dispenser
|
- state: dispenser
|
||||||
- state: dispensereng
|
- state: dispensereng
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: VendingMachine
|
||||||
|
id: VendingMachineChemicals
|
||||||
|
name: ChemVend
|
||||||
|
description: Probably not the coffee machine.
|
||||||
|
components:
|
||||||
|
- type: VendingMachine
|
||||||
|
pack: ChemVendInventory
|
||||||
|
offState: off
|
||||||
|
brokenState: broken
|
||||||
|
normalState: normal
|
||||||
|
denyState: deny
|
||||||
|
ejectDelay: 3
|
||||||
|
- type: Sprite
|
||||||
|
sprite: Structures/Machines/VendingMachines/chemvend.rsi
|
||||||
|
layers:
|
||||||
|
- state: "off"
|
||||||
|
map: ["enum.VendingMachineVisualLayers.Base"]
|
||||||
|
- state: "off"
|
||||||
|
map: ["enum.VendingMachineVisualLayers.BaseUnshaded"]
|
||||||
|
- state: panel
|
||||||
|
map: ["enum.WiresVisualLayers.MaintenancePanel"]
|
||||||
|
- type: AccessReader
|
||||||
|
access: [["Chemistry"]]
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 623 B |
Binary file not shown.
|
After Width: | Height: | Size: 976 B |
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/245b29599acbb6bba24f005095e7798e954fc81c",
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "broken"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "deny",
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
0.1,
|
||||||
|
0.1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "normal",
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
0.1,
|
||||||
|
0.1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "off"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "panel"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 843 B |
Binary file not shown.
|
After Width: | Height: | Size: 421 B |
Binary file not shown.
|
After Width: | Height: | Size: 190 B |
Reference in New Issue
Block a user