Make chemistry machines and IdCardConsole use item slots (#5428)

* chemistry item slots

* item slots id card console
This commit is contained in:
Leon Friedrich
2021-11-24 20:03:07 +13:00
committed by GitHub
parent 355625bded
commit 3b29ffdfa0
26 changed files with 371 additions and 560 deletions

View File

@@ -9,6 +9,11 @@
state: industrial-working
- type: ReagentDispenser
pack: ChemDispenserStandardInventory
beakerSlot:
whitelistFailPopup: reagent-dispenser-component-cannot-put-entity-message
whitelist:
components:
- FitsInDispenser
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: Construction
@@ -30,7 +35,3 @@
- type: Wires
BoardName: "chem_dispenser"
LayoutId: chem_dispenser
- type: EmptyOnMachineDeconstruct
containers:
- ReagentDispenser-reagentContainerContainer

View File

@@ -126,6 +126,24 @@
- type: AccessReader
access: [["HeadOfPersonnel"]]
- type: IdCardConsole
privilegedIdSlot:
name: id-card-console-privileged-id
ejectSound: /Audio/Machines/id_swipe.ogg
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
ejectOnBreak: true
swap: false
whitelist:
components:
- IdCard
targetIdSlot:
name: id-card-console-target-id
ejectSound: /Audio/Machines/id_swipe.ogg
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
ejectOnBreak: true
swap: false
whitelist:
components:
- IdCard
- type: ActivatableUI
key: enum.IdCardConsoleUiKey.Key
- type: ActivatableUIRequiresPower

View File

@@ -16,6 +16,11 @@
sprite: Structures/Machines/mixer.rsi
state: mixer_loaded
- type: ChemMaster
beakerSlot:
whitelistFailPopup: chem-master-component-cannot-put-entity-message
whitelist:
components:
- FitsInDispenser
- type: Physics
bodyType: Static
fixtures:
@@ -52,7 +57,4 @@
- type: Construction
graph: machine
node: machine
- type: EmptyOnMachineDeconstruct
containers:
- ChemMaster-reagentContainerContainer