From e2c960a841d131351cdc31cdf7f5836769ad7a12 Mon Sep 17 00:00:00 2001 From: Adrian16199 <144424013+Adrian16199@users.noreply.github.com> Date: Thu, 28 Mar 2024 16:56:14 -0500 Subject: [PATCH] Cherry-picked commit f6714a5927587430b9a7da0e507029825966e159 from DeltaV-Station/Delta-v/master --- .../Objects/Devices/CircuitBoards/production.yml | 16 ++++++++++++++++ .../Structures/Machines/mailTeleporter.yml | 14 ++++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml index 0e4c262b543..fc40ea16397 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml @@ -65,3 +65,19 @@ - type: ReverseEngineering recipes: - DeepFryerMachineCircuitboard + +- type: entity + id: MailTeleporterMachineCircuitboard + parent: BaseMachineCircuitboard + name: mail teleporter machine board + components: + - type: Sprite + state: supply + - type: MachineBoard + prototype: MailTeleporter + requirements: + Capacitor: 1 + MatterBin: 1 + materialRequirements: + Steel: 4 + Cable: 4 diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml index 9bcaef52bbf..6430e94105a 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml @@ -1,6 +1,6 @@ - type: entity id: MailTeleporter - parent: BaseStructureDynamic + parent: [ BaseMachinePowered, ConstructibleMachine ] name: mail teleporter description: Teleports mail addressed to the crew of this station. components: @@ -37,11 +37,11 @@ !type:DamageTrigger damage: 75 behaviors: - - !type:SpawnEntitiesBehavior - spawn: - SheetSteel1: - min: 1 - max: 1 + - !type:PlaySoundBehavior + sound: + collection: MetalGlassBreak + - !type:ChangeConstructionNodeBehavior + node: machineFrame - !type:DoActsBehavior acts: ["Destruction"] - type: ApcPowerReceiver @@ -56,3 +56,5 @@ True: {visible: true} False: {visible: false} - type: PowerSwitch + - type: Machine + board: MailTeleporterMachineCircuitboard