Hotplate overhaul (#17586)

* Hotplate overhaul

- Beakers are now placed on top of the hotplate instead of itemslot.
- Hotplate LED now only lights up if it's heating something.
- More comments/xmldoc.
- Some other minor tweaks.

* Actually remove the beaker slot
This commit is contained in:
0x6273
2023-06-24 20:09:24 +02:00
committed by GitHub
parent 084cb7b750
commit fcb6516cee
5 changed files with 141 additions and 39 deletions

View File

@@ -15,7 +15,10 @@
mask:
- TabletopMachineMask
layer:
- TabletopMachineLayer
- Impassable
- MidImpassable
- LowImpassable
hard: false
- type: Sprite
sprite: Structures/Machines/hotplate.rsi
drawdepth: SmallObjects
@@ -23,16 +26,10 @@
layers:
- state: icon
- state: on
map: ["enum.PowerDeviceVisualLayers.Powered"]
map: ["enum.SolutionHeaterVisuals.IsOn"]
shader: unshaded
- type: ApcPowerReceiver
powerLoad: 300
- type: ItemSlots
slots:
beakerSlot:
whitelist:
components:
- FitsInDispenser
- type: ItemMapper
sprite: Structures/Machines/hotplate.rsi
mapLayers:
@@ -41,17 +38,22 @@
components:
- FitsInDispenser
- type: SolutionHeater
whitelist:
components:
- FitsInDispenser
- type: PlaceableSurface
placeCentered: true
positionOffset: 0, 0.25
- type: Machine
board: HotplateMachineCircuitboard
- type: Appearance
- type: ContainerContainer
containers:
beakerSlot: !type:ContainerSlot
machine_board: !type:Container
machine_parts: !type:Container
- type: GenericVisualizer
visuals:
enum.PowerDeviceVisuals.Powered:
enum.PowerDeviceVisualLayers.Powered:
enum.SolutionHeaterVisuals.IsOn:
enum.SolutionHeaterVisuals.IsOn:
True: { visible: true }
False: { visible: false }