Make more entities destructible (#7193)

This commit is contained in:
Leon Friedrich
2022-03-19 23:55:25 +13:00
committed by GitHub
parent 1714d6d8c3
commit 9bc37e9d88
11 changed files with 122 additions and 0 deletions

View File

@@ -14,6 +14,28 @@
tags: tags:
- Sheet - Sheet
- DroneUsable - DroneUsable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 0
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: SheetGlassBase parent: SheetGlassBase

View File

@@ -15,6 +15,14 @@
- Sheet - Sheet
- Metal - Metal
- DroneUsable - DroneUsable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: SheetMetalBase parent: SheetMetalBase

View File

@@ -14,6 +14,14 @@
tags: tags:
- Sheet - Sheet
- DroneUsable - DroneUsable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: SheetOtherBase parent: SheetOtherBase

View File

@@ -13,6 +13,14 @@
- type: Tag - type: Tag
tags: tags:
- Ingot - Ingot
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: IngotBase parent: IngotBase

View File

@@ -13,6 +13,14 @@
- type: Tag - type: Tag
tags: tags:
- DroneUsable - DroneUsable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: MaterialBase parent: MaterialBase

View File

@@ -13,6 +13,14 @@
- type: Tag - type: Tag
tags: tags:
- Ore - Ore
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: OreBase parent: OreBase

View File

@@ -13,6 +13,14 @@
- type: Tag - type: Tag
tags: tags:
- DroneUsable - DroneUsable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: PartBase parent: PartBase

View File

@@ -28,6 +28,14 @@
- Recyclable - Recyclable
- Trash - Trash
- type: Recyclable - type: Recyclable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: ShardBase parent: ShardBase

View File

@@ -18,6 +18,14 @@
- type: Tag - type: Tag
tags: tags:
- DroneUsable - DroneUsable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
name: steel tile name: steel tile

View File

@@ -33,3 +33,22 @@
- type: Construction - type: Construction
graph: Catwalk graph: Catwalk
node: Catwalk node: Catwalk
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
PartRodMetal: # takes two to construct, so drop less than that
min: 0
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]

View File

@@ -33,6 +33,15 @@
- type: Construction - type: Construction
graph: ConveyorGraph graph: ConveyorGraph
node: entity node: entity
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
# if ConveyorBeltAssembly becomes craftable, maybe spawn some of the ingredients?
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
id: ConveyorBeltAssembly id: ConveyorBeltAssembly
@@ -79,3 +88,11 @@
- type: Construction - type: Construction
graph: LeverGraph graph: LeverGraph
node: lever node: lever
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]