From fb0755d4486557b83dcbf763bebb6603e6abfb74 Mon Sep 17 00:00:00 2001
From: SimpleStation14 <130339894+SimpleStation14@users.noreply.github.com>
Date: Sat, 4 May 2024 16:13:32 -0700
Subject: [PATCH] Makes mail teleporter craftable. (#87)
## Mirror of PR #832: [Makes mail teleporter
craftable.](https://github.com/DeltaV-Station/Delta-v/pull/832) from
[DeltaV-Station](https://github.com/DeltaV-Station)/[Delta-v](https://github.com/DeltaV-Station/Delta-v)
PR opened by Adrian16199 at
2024-02-13 22:23:11 UTC
PR merged by Adrian16199 at
2024-03-28 21:56:14 UTC
`f6714a5927587430b9a7da0e507029825966e159`
---
PR changed 0 files with 0 additions and 0 deletions.
The PR had the following labels:
- Changes: YML
- Status: Needs Review
---
Original Body
> To-do
> - [X] Figure out why it gives an error and not make it when you do all
steps and screwdriver it.
> - [X] Figure out how to make it drop the board upon being
deconstructed since currently it doesnt drop ANYTHING.
>
>
>
>
> ## About the PR
>
> Makes a mail teleporter craftable and only provides the board to the
LO's locker.
> ## Why / Balance
>
> 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.
>
> ## Media
>
>
> - [ ] I have added screenshots/videos to this PR showcasing its
changes ingame, **or** this PR does not require an ingame showcase
>
> ## Breaking changes
>
>
> **Changelog**
>
>
>
>
Co-authored-by: Adrian16199 <144424013+Adrian16199@users.noreply.github.com>
Co-authored-by: VMSolidus
---
.../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