From 47b341f4a39e24678eb1cc86a1b469bc5a2f3265 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Fri, 17 Dec 2021 10:46:05 +0100 Subject: [PATCH] Fix deconstructing a disposal unit not emptying its contents. --- Resources/Changelog/Parts/disposal_unit.yml | 4 ++++ .../Construction/Graphs/utilities/disposal_machines.yml | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Resources/Changelog/Parts/disposal_unit.yml diff --git a/Resources/Changelog/Parts/disposal_unit.yml b/Resources/Changelog/Parts/disposal_unit.yml new file mode 100644 index 0000000000..16b968407d --- /dev/null +++ b/Resources/Changelog/Parts/disposal_unit.yml @@ -0,0 +1,4 @@ +author: Your_Name_Here +changes: + - type: Fix # One of the following: Add, Remove, Tweak, Fix + message: Deconstructing a disposal unit no longer deletes its contents. diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/utilities/disposal_machines.yml b/Resources/Prototypes/Recipes/Construction/Graphs/utilities/disposal_machines.yml index 60f6a0b8f9..da3591887c 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/utilities/disposal_machines.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/utilities/disposal_machines.yml @@ -22,7 +22,7 @@ - !type:SpawnPrototype prototype: SheetSteel1 amount: 1 - - !type:DeleteEntity {} + - !type:DeleteEntity steps: - tool: Screwing doAfter: 1 @@ -86,7 +86,7 @@ doAfter: 0.25 - to: disposal_unit conditions: - - !type:EntityAnchored {} + - !type:EntityAnchored steps: - material: Steel amount: 1 @@ -99,8 +99,9 @@ - !type:SpawnPrototype prototype: SheetSteel1 amount: 1 + - !type:EmptyAllContainers conditions: - - !type:EntityAnchored {} + - !type:EntityAnchored steps: - tool: Prying doAfter: 1 @@ -129,6 +130,7 @@ # - !type:SpawnPrototype # prototype: SheetSteel1 # amount: 1 + # - !type:EmptyAllContainers # conditions: # - !type:EntityAnchored {} # steps: @@ -159,6 +161,7 @@ # - !type:SpawnPrototype # prototype: SheetSteel1 # amount: 1 + # - !type:EmptyAllContainers # conditions: # - !type:EntityAnchored {} # steps: