From 7f117d024bc93ffbd9d284b1d18a93d5306b2afb Mon Sep 17 00:00:00 2001 From: Adrian16199 Date: Tue, 13 Feb 2024 23:22:09 +0100 Subject: [PATCH 1/5] 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. --- .../Catalog/Fills/Lockers/heads.yml | 1 + .../Devices/CircuitBoards/production.yml | 19 +++++++++++++++++++ .../Structures/Machines/mailTeleporter.yml | 2 ++ 3 files changed, 22 insertions(+) diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml index 966be72c49a..e32073d4c1f 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml @@ -21,6 +21,7 @@ - id: BoxPDACargo # Delta-V - id: QuartermasterIDCard # Delta-V - id: ClothingShoesBootsWinterLogisticsOfficer #Delta V: Add departmental winter boots + - id: MailTeleporterMachineCircuitboard # Delta V: Craftable mail teleporter. - type: entity id: LockerCaptainFilledHardsuit diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml index a1a7a859e08..bc24262ea5c 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml @@ -44,3 +44,22 @@ - 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 + - type: ReverseEngineering + recipes: + - MailTeleporterMachineCircuitboard diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml index 9bcaef52bbf..d1ffb91d541 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml @@ -56,3 +56,5 @@ True: {visible: true} False: {visible: false} - type: PowerSwitch + - type: Machine + board: MailTeleporterMachineCircuitboard From 03df795af720b9bf601941c8a5f6a37659bfcb74 Mon Sep 17 00:00:00 2001 From: Adrian16199 Date: Mon, 19 Feb 2024 13:09:21 +0100 Subject: [PATCH 2/5] makes it craftable. --- .../Entities/Objects/Devices/CircuitBoards/production.yml | 3 --- .../Entities/Structures/Machines/mailTeleporter.yml | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml index bc24262ea5c..6e80ec7c4e9 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/CircuitBoards/production.yml @@ -60,6 +60,3 @@ materialRequirements: Steel: 4 Cable: 4 - - type: ReverseEngineering - recipes: - - MailTeleporterMachineCircuitboard diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml index d1ffb91d541..2405072c602 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml @@ -56,5 +56,8 @@ True: {visible: true} False: {visible: false} - type: PowerSwitch + - type: Construction + graph: Machine + node: machine - type: Machine board: MailTeleporterMachineCircuitboard From 6ff60918b68fca4f21fc9945d36a5b0b9142ab95 Mon Sep 17 00:00:00 2001 From: Adrian16199 Date: Mon, 19 Feb 2024 19:36:30 +0100 Subject: [PATCH 3/5] Makes it work --- .../Structures/Machines/mailTeleporter.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml index 2405072c602..5d800112c63 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml @@ -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 @@ -61,3 +61,7 @@ node: machine - type: Machine board: MailTeleporterMachineCircuitboard + - type: ContainerContainer + containers: + machine_board: !type:Container + machine_parts: !type:Container From 690d8e1e6e3a6f7224e260b347c94b933ac7ab3c Mon Sep 17 00:00:00 2001 From: Adrian16199 Date: Fri, 15 Mar 2024 16:17:24 +0100 Subject: [PATCH 4/5] Update mailTeleporter.yml --- .../Entities/Structures/Machines/mailTeleporter.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml b/Resources/Prototypes/Nyanotrasen/Entities/Structures/Machines/mailTeleporter.yml index 5d800112c63..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: @@ -56,12 +56,5 @@ True: {visible: true} False: {visible: false} - type: PowerSwitch - - type: Construction - graph: Machine - node: machine - type: Machine board: MailTeleporterMachineCircuitboard - - type: ContainerContainer - containers: - machine_board: !type:Container - machine_parts: !type:Container From 3919c2d10ff51073f37da4f9d4d9417f4c4b6c4f Mon Sep 17 00:00:00 2001 From: Adrian16199 Date: Thu, 28 Mar 2024 20:03:26 +0100 Subject: [PATCH 5/5] Update heads.yml --- Resources/Prototypes/Catalog/Fills/Lockers/heads.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml index 618f5e4fde6..5c9aca23e45 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml @@ -21,11 +21,9 @@ - id: BoxPDACargo # Delta-V - id: QuartermasterIDCard # Delta-V - id: ClothingShoesBootsWinterLogisticsOfficer #Delta V: Add departmental winter boots - - id: MailTeleporterMachineCircuitboard # Delta V: Craftable mail teleporter. - id: LunchboxCommandFilledRandom # Delta-V Lunchboxes! prob: 0.3 - - type: entity id: LockerCaptainFilledHardsuit suffix: Filled, Hardsuit