]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Added SmartFridge circuitboards (#39879)
authorLillian Industries <47704287+luegamer@users.noreply.github.com>
Thu, 11 Sep 2025 19:59:20 +0000 (15:59 -0400)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 19:59:20 +0000 (22:59 +0300)
Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml
Resources/Prototypes/Entities/Structures/Machines/smartfridge.yml
Resources/Prototypes/Recipes/Lathes/Packs/service.yml
Resources/Prototypes/Recipes/Lathes/machine_boards.yml
Resources/Textures/Structures/Machines/smartfridge.rsi/meta.json
Resources/Textures/Structures/Machines/smartfridge.rsi/panel.png [new file with mode: 0644]

index eec282acda5db9c86f440b660660ab76b271a986..0697506855d10b966086332e1c60fe58ff635f50 100644 (file)
       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
index 788febc01410338e58302a2d2c2ec93011eb9336..26bc5d52bb58782f501748823bf02da287392600 100644 (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.
     - 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
   - 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
index 9669937ffc58c6bbd9cf7358163eb7ac861e7083..b00e92d35c800b646e6a00f91fc67de625d80808 100644 (file)
@@ -37,6 +37,7 @@
   - ElectricGrillMachineCircuitboard
   - BoozeDispenserMachineCircuitboard
   - SodaDispenserMachineCircuitboard
+  - SmartFridgeCircuitboard
 
 ## Dynamic
 
index 23eb3bfbb7e10bce77a675c166fa8c1919152048..f355e34b28f81108d7c0fcada6b26d51832c586e 100644 (file)
   id: DawInstrumentMachineCircuitboard
   result: DawInstrumentMachineCircuitboard
 
+- type: latheRecipe
+  parent: [BaseCircuitboardRecipe]
+  id: SmartFridgeCircuitboard
+  result: SmartFridgeCircuitboard
+  
 # Bar
 - type: latheRecipe
   parent: [ BaseCircuitboardRecipe, BaseServiceMachineRecipeCategory ]
index 309594f44a77ba6b8869627b22c64fef50201b31..9abe8fdc6bdd156507719921c038830da8e9a82b 100644 (file)
@@ -21,6 +21,9 @@
     },
     {
       "name": "smartfridge_door"
+    },
+    {
+      "name": "panel"
     }
   ]
 }
diff --git a/Resources/Textures/Structures/Machines/smartfridge.rsi/panel.png b/Resources/Textures/Structures/Machines/smartfridge.rsi/panel.png
new file mode 100644 (file)
index 0000000..a9b42f6
Binary files /dev/null and b/Resources/Textures/Structures/Machines/smartfridge.rsi/panel.png differ