Fix: Drop plasteel when deconstructing reinforced walls (#10992)

This commit is contained in:
Francesco
2022-09-06 04:28:15 +02:00
committed by GitHub
parent a982256b94
commit c11a431f70
3 changed files with 65 additions and 9 deletions

View File

@@ -50,3 +50,38 @@
acts: [ "Destruction" ] acts: [ "Destruction" ]
- type: StaticPrice - type: StaticPrice
price: 0.5 price: 0.5
- type: entity
id: ReinforcedGirder
parent: Girder
name: reinforced girder
description: A large structural assembly made out of metal and plasteel; It requires a layer of plasteel before it can be considered a reinforced wall.
components:
- type: Sprite
sprite: Structures/Walls/solid.rsi
state: reinforced_wall_girder
- type: Construction
graph: Girder
node: reinforcedGirder
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
SheetPlasteel1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]

View File

@@ -219,11 +219,7 @@
doAfter: 10 doAfter: 10
- node: reinforcedGirder - node: reinforcedGirder
actions: entity: ReinforcedGirder
- !type:SpriteChange
specifier:
sprite: /Textures/Structures/Walls/solid.rsi
state: reinforced_wall_girder
edges: edges:
- to: reinforcedWall - to: reinforcedWall
completed: completed:
@@ -240,16 +236,23 @@
completed: completed:
- !type:SnapToGrid - !type:SnapToGrid
southRotation: true southRotation: true
- !type:SpawnPrototype
prototype: SheetPlasteel1
amount: 2
conditions: conditions:
- !type:EntityAnchored { } - !type:EntityAnchored { }
steps: steps:
- tool: Welding - tool: Cutting
doAfter: 10 doAfter: 2
- node: reinforcedWall - node: reinforcedWall
entity: WallReinforced entity: WallReinforced
edges: edges:
- to: girder - to: reinforcedGirder
completed:
- !type:SpawnPrototype
prototype: SheetPlasteel1
amount: 2
steps: steps:
- tool: Cutting - tool: Cutting
doAfter: 1 doAfter: 1
@@ -293,7 +296,7 @@
data: 0 data: 0
- tool: Cutting - tool: Cutting
doAfter: 1 doAfter: 1
- node: wallrust - node: wallrust
entity: WallSolidRust entity: WallSolidRust
edges: edges:

View File

@@ -16,6 +16,24 @@
conditions: conditions:
- !type:TileNotBlocked - !type:TileNotBlocked
- type: construction
name: reinforced girder
id: ReinforcedGirder
graph: Girder
startNode: start
targetNode: reinforcedGirder
category: construction-category-structures
description: A large structural assembly made out of metal and plasteel.
icon:
sprite: /Textures/Structures/Walls/solid.rsi
state: reinforced_wall_girder
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked
- type: construction - type: construction
name: wall name: wall
id: Wall id: Wall