Added SmartFridge circuitboards (#39879)

This commit is contained in:
Lillian Industries 2025-09-11 15:59:20 -04:00 committed by Vanessa
parent 7220b41437
commit 59d925efce
6 changed files with 72 additions and 38 deletions

View File

@ -1433,4 +1433,22 @@
prototype: MedicalBiofabricator
stackRequirements:
Manipulator: 4
# Shitmed Change End
- type: entity
parent: BaseMachineCircuitboard
id: SmartFridgeCircuitboard
name: SmartFridge machine board
description: A machine printed circuit board for a SmartFridge.
components:
- type: Sprite
state: service
- type: MachineBoard
prototype: SmartFridge
stackRequirements:
Glass: 5
Manipulator: 2
tagRequirements:
GlassBeaker:
amount: 2
defaultPrototype: Beaker

View File

@ -1,5 +1,5 @@
- type: entity
parent: BaseStructureDynamic
parent: [BaseStructureDynamic, ConstructibleMachine]
id: SmartFridge
name: SmartFridge
description: A refrigerated storage unit for keeping items cold and fresh.
@ -22,27 +22,52 @@
- state: smartfridge_door
map: ["enum.StorageVisualLayers.Door"]
shader: unshaded
- type: EntityStorageVisuals
stateBaseClosed: smartfridge
stateDoorOpen: smartfridge_open
stateDoorClosed: smartfridge_door
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- 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: Machine
board: SmartFridgeCircuitboard
- type: ContainerContainer
containers:
entity_storage: !type:Container
smart_fridge_inventory: !type:Container
machine_board: !type:Container
machine_parts: !type:Container
- type: Construction
graph: Machine
node: machine
containers:
- machine_parts
- machine_board
- smart_fridge_inventory
- 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: WiresPanel
- type: WiresVisuals
- type: AccessReader
- type: UseDelay
delay: 1
- type: AntiRottingContainer
@ -68,35 +93,17 @@
- type: InteractionOutline
- type: Destructible
thresholds:
- trigger: # Excess damage, don't spawn entities
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
- !type:ChangeConstructionNodeBehavior
node: machineFrame
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
acts: ["Destruction"]
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Metallic

View File

@ -40,6 +40,7 @@
- ElectricGrillMachineCircuitboard
- BoozeDispenserMachineCircuitboard
- SodaDispenserMachineCircuitboard
- SmartFridgeCircuitboard
## Dynamic

View File

@ -251,6 +251,11 @@
id: DawInstrumentMachineCircuitboard
result: DawInstrumentMachineCircuitboard
- type: latheRecipe
parent: [BaseCircuitboardRecipe]
id: SmartFridgeCircuitboard
result: SmartFridgeCircuitboard
# Bar
- type: latheRecipe
parent: [ BaseCircuitboardRecipe, BaseServiceMachineRecipeCategory ]

View File

@ -21,6 +21,9 @@
},
{
"name": "smartfridge_door"
},
{
"name": "panel"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B