From 79b96f9ca39b713f3a3295b804f091561001c44a Mon Sep 17 00:00:00 2001 From: Adrian16199 <144424013+Adrian16199@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:56:14 +0100 Subject: [PATCH] Makes mail teleporter craftable. (#832) * Makes mail teleporter craftable. Makes a mail teleporter craftable and only provides the board to the LO's locker. The point of this PR is to allow courier's to perhaps still be able to keep goin, even if the mail teleporter that was mapped was nuked/destroyed/vanished. To-do: Figure out why it gives an error and not make it when you do all steps and screwdriver it. * makes it craftable. * Makes it work * Update mailTeleporter.yml * Update heads.yml --------- Signed-off-by: Adrian16199 <144424013+Adrian16199@users.noreply.github.com> Co-authored-by: Velcroboy <107660393+IamVelcroboy@users.noreply.github.com> --- .../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