From c6f5340c5ead9905be50c87c60d9c891c2a7e4c8 Mon Sep 17 00:00:00 2001 From: gumbuk 9 Date: Thu, 5 Jun 2025 22:46:45 +0300 Subject: [PATCH] Recycler machine board part 1 --- .../Catalog/Fills/Crates/engineering.yml | 1 + .../Markers/Spawners/Random/techboard.yml | 1 + .../Entities/Structures/Machines/recycler.yml | 23 +++++++++++++++---- .../Recipes/Lathes/Packs/science.yml | 1 + .../Recipes/Lathes/machine_boards.yml | 5 ++++ 5 files changed, 27 insertions(+), 4 deletions(-) diff --git a/Resources/Prototypes/Catalog/Fills/Crates/engineering.yml b/Resources/Prototypes/Catalog/Fills/Crates/engineering.yml index 017db4feb6e7c..8892e3580c29f 100644 --- a/Resources/Prototypes/Catalog/Fills/Crates/engineering.yml +++ b/Resources/Prototypes/Catalog/Fills/Crates/engineering.yml @@ -219,6 +219,7 @@ - id: CellRechargerCircuitboard - id: SpaceVillainArcadeComputerCircuitboard - id: BlockGameArcadeComputerCircuitboard + - id: RecyclerMachineCircuitboard - type: entity id: CrateTechBoardRandom diff --git a/Resources/Prototypes/Entities/Markers/Spawners/Random/techboard.yml b/Resources/Prototypes/Entities/Markers/Spawners/Random/techboard.yml index 3409e7c1de52b..7353e18b6b891 100644 --- a/Resources/Prototypes/Entities/Markers/Spawners/Random/techboard.yml +++ b/Resources/Prototypes/Entities/Markers/Spawners/Random/techboard.yml @@ -29,4 +29,5 @@ - AutolatheMachineCircuitboard - ProtolatheMachineCircuitboard - SalvageMagnetMachineCircuitboard + - RecyclerMachineCircuitboard rareChance: 0.05 diff --git a/Resources/Prototypes/Entities/Structures/Machines/recycler.yml b/Resources/Prototypes/Entities/Structures/Machines/recycler.yml index 2058c3c050232..9a4eece287500 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/recycler.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/recycler.yml @@ -1,6 +1,6 @@ - type: entity id: Recycler - parent: BaseMachinePowered + parent: [ BaseMachinePowered, ConstructibleMachine ] name: recycler description: A large crushing machine used to recycle small items inefficiently. There are lights on the side. components: @@ -47,6 +47,8 @@ - Reverse - Forward - Off + - type: Machine + board: RecyclerMachineCircuitboard - type: Transform anchored: true noRot: false @@ -58,7 +60,6 @@ map: ["enum.RecyclerVisualLayers.Main"] - type: Appearance - type: RecyclerVisuals - - type: CollideMaterialReclaimer - type: MaterialReclaimer enabled: false @@ -89,19 +90,20 @@ - type: Conveyor - type: Rotatable - type: Repairable - doAfterDelay: 5 + doAfterDelay: 10 fuelCost: 25 - type: Destructible thresholds: - trigger: !type:DamageTrigger - damage: 300 + damage: 100 behaviors: - !type:DoActsBehavior acts: ["Breakage"] - !type:PlaySoundBehavior sound: collection: MetalBreak + # - trigger: - type: InteractionPopup successChance: 1.0 interactSuccessString: petting-success-recycler @@ -115,3 +117,16 @@ - type: Speech speechVerb: Robotic speechSounds: SyndieBorg + +- type: entity + id: RecyclerMachineCircuitboard + parent: BaseMachineCircuitboard + name: recycler machine board + components: + - type: MachineBoard + prototype: Recycler + stackRequirements: + Manipulator: 8 + Cable: 10 + Plasteel: 2 + diff --git a/Resources/Prototypes/Recipes/Lathes/Packs/science.yml b/Resources/Prototypes/Recipes/Lathes/Packs/science.yml index 120f4ed479fe9..c9e698d8206c5 100644 --- a/Resources/Prototypes/Recipes/Lathes/Packs/science.yml +++ b/Resources/Prototypes/Recipes/Lathes/Packs/science.yml @@ -9,6 +9,7 @@ - ExosuitFabricatorMachineCircuitboard - CutterMachineCircuitboard - BorgChargerCircuitboard + - RecyclerMachineCircuitboard - type: latheRecipePack id: CircuitFloorsStatic diff --git a/Resources/Prototypes/Recipes/Lathes/machine_boards.yml b/Resources/Prototypes/Recipes/Lathes/machine_boards.yml index 23eb3bfbb7e10..dc7995d734f7c 100644 --- a/Resources/Prototypes/Recipes/Lathes/machine_boards.yml +++ b/Resources/Prototypes/Recipes/Lathes/machine_boards.yml @@ -345,6 +345,11 @@ id: ReagentGrinderIndustrialMachineCircuitboard result: ReagentGrinderIndustrialMachineCircuitboard +- type: latheRecipe + parent: [BaseCircuitboardRecipe, BaseGeneralMachineRecipeCategory ] + id: RecyclerMachineCircuitboard + result: RecyclerMachineCircuitboard + - type: latheRecipe parent: [ BaseGoldCircuitboardRecipe, BaseGeneralMachineRecipeCategory ] id: FlatpackerMachineCircuitboard