Added SmartFridge circuitboards (#39879)

This commit is contained in:
Lillian Industries
2025-09-11 15:59:20 -04:00
committed by GitHub
parent fbf65b7f74
commit 7396d9e54c
6 changed files with 47 additions and 23 deletions

View File

@@ -1349,3 +1349,21 @@
Steel: 2
Manipulator: 2
Cable: 1
- 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.
@@ -21,13 +21,26 @@
- state: smartfridge_door
map: ["enum.StorageVisualLayers.Door"]
shader: unshaded
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: PointLight
radius: 1.5
energy: 1.6
color: "#9dc5c9"
- type: Machine
board: SmartFridgeCircuitboard
- type: ContainerContainer
containers:
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
@@ -51,6 +64,8 @@
interfaces:
enum.SmartFridgeUiKey.Key:
type: SmartFridgeBoundUserInterface
- type: WiresPanel
- type: WiresVisuals
- type: AccessReader
- type: UseDelay
delay: 1
@@ -77,35 +92,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

@@ -37,6 +37,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