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
- type: entity
- parent: BaseStructureDynamic
+ parent: [BaseStructureDynamic, ConstructibleMachine]
id: SmartFridge
name: SmartFridge
description: A refrigerated storage unit for keeping items cold and fresh.
- 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
interfaces:
enum.SmartFridgeUiKey.Key:
type: SmartFridgeBoundUserInterface
+ - type: WiresPanel
+ - type: WiresVisuals
- type: AccessReader
- type: UseDelay
delay: 1
- 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
id: DawInstrumentMachineCircuitboard
result: DawInstrumentMachineCircuitboard
+- type: latheRecipe
+ parent: [BaseCircuitboardRecipe]
+ id: SmartFridgeCircuitboard
+ result: SmartFridgeCircuitboard
+
# Bar
- type: latheRecipe
parent: [ BaseCircuitboardRecipe, BaseServiceMachineRecipeCategory ]