Implement SmartFridge functionality (#38648)

* Add SmartFridge

* my nit so pick

* my access so expanded and my whitelist so both

* list -> hashset
This commit is contained in:
pathetic meowmeow
2025-07-20 23:21:28 -04:00
committed by GitHub
parent 99b431cafd
commit d2ddbcbcda
17 changed files with 719 additions and 71 deletions

View File

@@ -21,27 +21,37 @@
- state: smartfridge_door
map: ["enum.StorageVisualLayers.Door"]
shader: unshaded
- type: EntityStorageVisuals
stateBaseClosed: smartfridge
stateDoorOpen: smartfridge_open
stateDoorClosed: smartfridge_door
- type: PointLight
radius: 1.5
energy: 1.6
color: "#9dc5c9"
- type: EntityStorage
isCollidableWhenOpen: true
closeSound:
path: /Audio/Machines/windoor_open.ogg
params:
volume: -3
openSound:
path: /Audio/Machines/windoor_open.ogg
params:
volume: -3
- type: ContainerContainer
containers:
entity_storage: !type:Container
smart_fridge_inventory: !type:Container
- type: LitOnPowered
- type: ApcPowerReceiver
powerLoad: 200
- type: ExtensionCableReceiver
- type: SmartFridge
whitelist:
components:
- FitsInDispenser
- Pill
- Produce
- Seed
tags:
- PillCanister
- Bottle
- Syringe
- ChemDispensable
- type: ActivatableUI
key: enum.SmartFridgeUiKey.Key
- type: ActivatableUIRequiresPower
- type: UserInterface
interfaces:
enum.SmartFridgeUiKey.Key:
type: SmartFridgeBoundUserInterface
- type: AccessReader
- type: UseDelay
delay: 1
- type: AntiRottingContainer
@@ -105,3 +115,15 @@
Blunt: 5
soundHit:
collection: MetalThud
- type: ExplosionResistance
damageCoefficient: 0.1
- type: entity
parent: SmartFridge
id: SmartFridgeMedical
suffix: Medical
components:
- type: SmartFridge
flavorText: smart-fridge-request-chemistry
- type: AccessReader
access: [["Medical"]]

View File

@@ -22,3 +22,18 @@
id: CargoBeep
files:
- /Audio/Effects/Cargo/beep.ogg
- type: soundCollection
id: VendingDispense
files:
- /Audio/Machines/machine_vend.ogg
- type: soundCollection
id: VendingDeny
files:
- /Audio/Machines/custom_deny.ogg
- type: soundCollection
id: MachineInsert
files:
- /Audio/Weapons/Guns/MagIn/revolver_magin.ogg