Separate destructible component threshold into behaviors (#2818)

* WIP changes, add behaviors

* Fix behavior typing, namespace and test

* NO SPACES
This commit is contained in:
DrSmugleaf
2020-12-23 13:34:57 +01:00
committed by GitHub
parent ce029f461e
commit 764465f60c
57 changed files with 819 additions and 471 deletions

View File

@@ -61,7 +61,9 @@
- type: Destructible
thresholds:
500:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
placement:
mode: SnapgridCenter

View File

@@ -32,6 +32,8 @@
- type: Destructible
thresholds:
75:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
placement:
mode: SnapgridCenter

View File

@@ -24,12 +24,16 @@
- type: Destructible
thresholds:
30:
sound: /Audio/Effects/woodhit.ogg
spawn:
WoodPlank:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/woodhit.ogg
- !type:SpawnEntitiesBehavior
spawn:
WoodPlank:
min: 1
max: 1
- type: Occluder
sizeX: 32
sizeY: 32

View File

@@ -25,7 +25,9 @@
- type: Destructible
thresholds:
50:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: UserInterface
interfaces:
- key: enum.InstrumentUiKey.Key

View File

@@ -16,7 +16,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: ShuttleController
- type: Strap
position: Stand

View File

@@ -35,7 +35,9 @@
- type: Destructible
thresholds:
50:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: entity
name: chair

View File

@@ -32,12 +32,16 @@
- type: Destructible
thresholds:
30:
sound: /Audio/Effects/metalbreak.ogg
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: entity
id: Shelf
@@ -73,9 +77,13 @@
- type: Destructible
thresholds:
30:
sound: /Audio/Effects/metalbreak.ogg
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1

View File

@@ -40,12 +40,16 @@
- type: Destructible
thresholds:
15:
sound: /Audio/Effects/metalbreak.ogg
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: entity
id: TableFrame
@@ -62,12 +66,16 @@
- type: Destructible
thresholds:
1:
sound: /Audio/Effects/metalbreak.ogg
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: Construction
graph: Tables
node: TableFrame
@@ -87,12 +95,16 @@
- type: Destructible
thresholds:
1:
sound: /Audio/Effects/metalbreak.ogg
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: entity
id: TableMetal
@@ -109,12 +121,16 @@
- type: Destructible
thresholds:
15:
sound: /Audio/Effects/metalbreak.ogg
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: Construction
graph: Tables
node: MetalTable
@@ -134,12 +150,16 @@
- type: Destructible
thresholds:
75:
sound: /Audio/Effects/metalbreak.ogg
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: Construction
graph: Tables
node: ReinforcedTable
@@ -159,12 +179,16 @@
- type: Destructible
thresholds:
5:
sound: /Audio/Effects/glass_break2.ogg
spawn:
ShardGlass:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/glass_break2.ogg
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 1
- type: Construction
graph: Tables
node: GlassTable
@@ -184,12 +208,16 @@
- type: Destructible
thresholds:
20:
sound: /Audio/Effects/glass_break2.ogg
spawn:
ShardGlass:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/glass_break2.ogg
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 1
- type: Construction
graph: Tables
node: RGlassTable
@@ -209,12 +237,16 @@
- type: Destructible
thresholds:
15:
sound: /Audio/Effects/woodhit.ogg
spawn:
WoodPlank:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/woodhit.ogg
- !type:SpawnEntitiesBehavior
spawn:
WoodPlank:
min: 1
max: 1
- type: Construction
graph: Tables
node: WoodTable
@@ -234,12 +266,16 @@
- type: Destructible
thresholds:
15:
sound: /Audio/Effects/woodhit.ogg
spawn:
WoodPlank:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/woodhit.ogg
- !type:SpawnEntitiesBehavior
spawn:
WoodPlank:
min: 1
max: 1
- type: Construction
graph: Tables
node: PokerTable
@@ -259,8 +295,11 @@
- type: Destructible
thresholds:
50:
sound: /Audio/Effects/picaxe2.ogg
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/picaxe2.ogg
- type: entity
id: TableDebug
@@ -277,4 +316,6 @@
- type: Destructible
thresholds:
1:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]

View File

@@ -14,7 +14,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: GasCanisterPort
- type: entity

View File

@@ -14,7 +14,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: GasCanister
- type: Anchorable
- type: Pullable

View File

@@ -24,5 +24,7 @@
- type: Destructible
thresholds:
50:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: KitchenSpike

View File

@@ -15,7 +15,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Sprite
- type: Appearance
visuals:

View File

@@ -14,7 +14,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Sprite
sprite: Constructible/Atmos/pump.rsi
- type: Icon

View File

@@ -24,7 +24,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: entity
parent: ScrubberBase

View File

@@ -24,7 +24,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: entity
parent: VentBase

View File

@@ -35,7 +35,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: CloningPodVisualizer

View File

@@ -99,7 +99,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: BreakableConstruction
node: monitorBroken
- type: Sprite

View File

@@ -32,7 +32,9 @@
- type: Destructible
thresholds:
100:
acts: ["Breakage"]
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]
- type: Anchorable
- type: entity

View File

@@ -36,7 +36,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: MedicalScannerVisualizer

View File

@@ -239,6 +239,8 @@
- type: Destructible
thresholds:
100:
acts: ["Breakage"]
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]
- type: Anchorable
- type: Pullable

View File

@@ -33,7 +33,9 @@
- type: Destructible
thresholds:
50:
acts: ["Breakage"]
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]
- type: UserInterface
interfaces:
- key: enum.VendingMachineUiKey.Key

View File

@@ -23,7 +23,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: SubFloorHide
- type: entity
@@ -52,11 +54,14 @@
- type: Destructible
thresholds:
100:
spawn:
HVWireStack1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
HVWireStack1:
min: 1
max: 1
- type: entity
parent: WireBase
@@ -86,11 +91,14 @@
- type: Destructible
thresholds:
100:
spawn:
MVWireStack1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
MVWireStack1:
min: 1
max: 1
- type: entity
parent: WireBase
@@ -122,8 +130,11 @@
- type: Destructible
thresholds:
100:
spawn:
ApcExtensionCableStack1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
ApcExtensionCableStack1:
min: 1
max: 1

View File

@@ -26,7 +26,9 @@
- type: Destructible
thresholds:
500:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: SnapGrid
offset: Center
- type: Anchorable

View File

@@ -26,11 +26,14 @@
- type: Destructible
thresholds:
500:
spawn:
AMEPart:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
AMEPart:
min: 1
max: 1
- !type:DoActsBehavior
acts: ["Destruction"]
- type: SnapGrid
offset: Center
- type: Airtight

View File

@@ -22,7 +22,9 @@
- type: Destructible
thresholds:
75:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Anchorable
- type: Pullable
- type: PowerReceiver

View File

@@ -36,11 +36,14 @@
- type: Destructible
thresholds:
50:
spawn:
chem_master_broken:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
chem_master_broken:
min: 1
max: 1
- type: UserInterface
interfaces:
- key: enum.ChemMasterUiKey.Key
@@ -82,11 +85,14 @@
- type: Destructible
thresholds:
25:
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: UserInterface
interfaces:
- key: enum.ChemMasterUiKey.Key

View File

@@ -18,7 +18,9 @@
- type: Destructible
thresholds:
100:
acts: ["Breakage"]
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]
- type: Rotatable
- type: Pullable
@@ -150,7 +152,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: DisposalUnitVisualizer
@@ -389,7 +393,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: DisposalUnitVisualizer

View File

@@ -34,7 +34,9 @@
- type: Destructible
thresholds:
150:
acts: ["Breakage"]
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]
- type: GravityGenerator
- type: UserInterface
interfaces:

View File

@@ -28,7 +28,9 @@
- type: Destructible
thresholds:
50:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Sprite
sprite: Constructible/Hydroponics/hydro_tools.rsi
state: soil

View File

@@ -43,7 +43,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: StorageVisualizer

View File

@@ -40,7 +40,9 @@
- type: Destructible
thresholds:
100:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: StorageVisualizer

View File

@@ -28,7 +28,9 @@
- type: Destructible
thresholds:
10:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: SolutionContainer
maxVol: 1500
caps: RemoveFrom

View File

@@ -19,7 +19,9 @@
- type: Destructible
thresholds:
100:
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Occluder
sizeX: 32
sizeY: 32

View File

@@ -30,11 +30,14 @@
- type: Destructible
thresholds:
50:
spawn:
SteelSheet1:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: SnapGrid
offset: Edge
placement:

View File

@@ -41,7 +41,9 @@
- type: Destructible
thresholds:
50:
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: entity
name: small light
@@ -68,7 +70,9 @@
- type: Destructible
thresholds:
25:
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: entity
name: unpowered small light
@@ -87,4 +91,6 @@
- type: Destructible
thresholds:
25:
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]

View File

@@ -30,7 +30,9 @@
- type: Destructible
thresholds:
100:
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: BreakableConstruction
node: start
- type: SnapGrid

View File

@@ -13,7 +13,9 @@
- type: Destructible
thresholds:
5:
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Sprite
drawdepth: WallTops
sprite: Constructible/Misc/decals.rsi

View File

@@ -49,11 +49,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: brick
@@ -72,11 +75,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: clock
@@ -95,11 +101,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: clown
@@ -119,11 +128,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: cult
@@ -142,11 +154,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: debug
@@ -165,11 +180,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: diamond
@@ -189,11 +207,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: gold
@@ -212,11 +233,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: ice
@@ -235,11 +259,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: metal
@@ -258,11 +285,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: plasma
@@ -281,11 +311,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: plastic
@@ -309,7 +342,9 @@
- type: Destructible
thresholds:
600:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: BreakableConstruction
node: girder
- type: ReinforcedWall
@@ -335,11 +370,14 @@
- type: Destructible
thresholds:
1000:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: riveted
@@ -358,11 +396,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: sandstone
@@ -381,11 +422,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: silver
@@ -408,7 +452,9 @@
- type: Destructible
thresholds:
300:
acts: [ "Destruction" ]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: BreakableConstruction
node: girder
destroySound: /Audio/Effects/metalbreak.ogg
@@ -430,11 +476,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: uranium
@@ -453,11 +502,14 @@
- type: Destructible
thresholds:
300:
spawn:
Girder:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
Girder:
min: 1
max: 1
- type: IconSmooth
key: walls
base: wood

View File

@@ -31,12 +31,16 @@
- type: Destructible
thresholds:
15:
soundCollection: WindowBreak
spawn:
ShardGlass:
min: 1
max: 2
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundCollectionBehavior
soundCollection: WindowBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 2
- type: SnapGrid
offset: Center
- type: Airtight
@@ -65,12 +69,16 @@
- type: Destructible
thresholds:
75:
soundCollection: WindowBreak
spawn:
ShardGlassReinforced:
min: 1
max: 2
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundCollectionBehavior
soundCollection: WindowBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlassReinforced:
min: 1
max: 2
- type: Window
base: rwindow
maxDamage: 75
@@ -93,12 +101,16 @@
- type: Destructible
thresholds:
100:
soundCollection: WindowBreak
spawn:
ShardGlassPhoron:
min: 1
max: 2
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundCollectionBehavior
soundCollection: WindowBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlassPhoron:
min: 1
max: 2
resistances: metallicResistances
- type: Window
base: pwindow

View File

@@ -28,12 +28,16 @@
- type: Destructible
thresholds:
5:
acts: [ "Destruction" ]
soundCollection: WindowBreak
spawn:
ShardGlass:
min: 1
max: 1
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundCollectionBehavior
soundCollection: WindowBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 1
- type: DamageOnLand
amount: 5
- type: DamageOtherOnHit

View File

@@ -132,12 +132,16 @@
- type: Destructible
thresholds:
10:
sound: /Audio/Effects/glass_break1.ogg
spawn:
FloodlightBroken:
min: 1
max: 1
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/glass_break1.ogg
- !type:SpawnEntitiesBehavior
spawn:
FloodlightBroken:
min: 1
max: 1
- type: Appearance
visuals:
- type: FlashLightVisualizer
@@ -157,12 +161,16 @@
- type: Destructible
thresholds:
20:
spawn:
SteelSheet1:
min: 1
max: 1
sound: /Audio/Effects/metalbreak.ogg
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SteelSheet1:
min: 1
max: 1
- type: Physics
shapes:
- !type:PhysShapeAabb

View File

@@ -26,7 +26,9 @@
- type: Destructible
thresholds:
10:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: TimerTriggerVisualizer
@@ -56,7 +58,9 @@
- type: Destructible
thresholds:
10:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: TimerTriggerVisualizer
@@ -86,7 +90,9 @@
- type: Destructible
thresholds:
10:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: TimerTriggerVisualizer
@@ -115,7 +121,9 @@
- type: Destructible
thresholds:
50:
acts: ["Destruction"]
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Appearance
visuals:
- type: TimerTriggerVisualizer