Clean up reagent dispenser and make it slightly better.

This commit is contained in:
Pieter-Jan Briers
2019-10-20 01:30:38 +02:00
parent 9c60d4936d
commit 6630e454c6
8 changed files with 247 additions and 219 deletions

View File

@@ -2,31 +2,14 @@
id: booze_dispenser
name: Booze Dispenser
description: A booze dispenser with a single slot for a container to be filled.
parent: reagent_dispenser_base
components:
- type: Sprite
texture: Buildings/booze_dispenser.png
- type: Icon
texture: Buildings/booze_dispenser.png
- type: Clickable
- type: Collidable
shapes:
- !type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25"
mask: 19
layer: 16
IsScrapingFloor: true
- type: Physics
mass: 25
Anchored: true
- type: SnapGrid
offset: Center
- type: ReagentDispenser
pack: BoozeDispenserInventory
- type: PowerDevice
- type: UserInterface
interfaces:
- key: enum.ReagentDispenserUiKey.Key
type: ReagentDispenserBoundUserInterface
- type: reagentDispenserInventory
id: BoozeDispenserInventory
@@ -34,4 +17,4 @@
- chem.Whiskey
- chem.Ale
- chem.Wine
- chem.Ice
- chem.Ice

View File

@@ -1,32 +1,15 @@
- type: entity
id: chem_dispenser
name: Chemical Dispenser
parent: reagent_dispenser_base
description: An industrial grade chemical dispenser with a sizeable chemical supply.
components:
- type: Sprite
texture: Buildings/industrial_dispenser.png
- type: Icon
texture: Buildings/industrial_dispenser.png
- type: Clickable
- type: Collidable
shapes:
- !type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25"
mask: 19
layer: 16
IsScrapingFloor: true
- type: Physics
mass: 25
Anchored: true
- type: SnapGrid
offset: Center
- type: ReagentDispenser
pack: ChemDispenserStandardInventory
- type: PowerDevice
- type: UserInterface
interfaces:
- key: enum.ReagentDispenserUiKey.Key
type: ReagentDispenserBoundUserInterface
- type: reagentDispenserInventory
id: ChemDispenserStandardInventory

View File

@@ -0,0 +1,25 @@
- type: entity
abstract: true
id: reagent_dispenser_base
components:
- type: Clickable
- type: Collidable
shapes:
- !type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25"
mask: 19
layer: 16
IsScrapingFloor: true
- type: Physics
mass: 25
Anchored: true
- type: SnapGrid
offset: Center
- type: ReagentDispenser
- type: PowerDevice
- type: UserInterface
interfaces:
- key: enum.ReagentDispenserUiKey.Key
type: ReagentDispenserBoundUserInterface
- type: Sound

View File

@@ -1,32 +1,15 @@
- type: entity
id: soda_dispenser
name: Soda Dispenser
parent: reagent_dispenser_base
description: A beverage dispenser with a selection of soda and several other common beverages. Has a single fill slot for containers.
components:
- type: Sprite
texture: Buildings/soda_dispenser.png
- type: Icon
texture: Buildings/soda_dispenser.png
- type: Clickable
- type: Collidable
shapes:
- !type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25"
mask: 19
layer: 16
IsScrapingFloor: true
- type: Physics
mass: 25
Anchored: true
- type: SnapGrid
offset: Center
- type: ReagentDispenser
pack: SodaDispenserInventory
- type: PowerDevice
- type: UserInterface
interfaces:
- key: enum.ReagentDispenserUiKey.Key
type: ReagentDispenserBoundUserInterface
- type: reagentDispenserInventory
id: SodaDispenserInventory
@@ -35,4 +18,4 @@
- chem.Coffee
- chem.Tea
- chem.Ice
- chem.H2O
- chem.H2O