Skip to content

Commit

Permalink
window parenting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErhardSteinhauer committed Dec 27, 2023
1 parent cca7bef commit 0bac671
Showing 1 changed file with 57 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
drawdepth: WallTops
sprite: _NF/Structures/Windows/window_diagonal.rsi
state: state0
- type: Icon
sprite: _NF/Structures/Windows/window_diagonal.rsi
state: state0
- type: IconSmooth
mode: Diagonal
key: walls
base: state
- type: Icon
sprite: _NF/Structures/Windows/window_diagonal.rsi
state: state0
- type: Fixtures
fixtures:
fix1:
Expand All @@ -34,7 +34,7 @@
- GlassLayer

- type: entity
parent: WindowDiagonal
parent: ReinforcedWindow
id: WindowReinforcedDiagonal
name: reinforced window
suffix: diagonal
Expand All @@ -50,34 +50,26 @@
- type: Icon
sprite: _NF/Structures/Windows/reinforced_window_diagonal.rsi
state: state0
- type: Damageable
damageContainer: Inorganic
damageModifierSet: RGlass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300 #excess damage (nuke?). Avoid computational cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 150
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlassReinforced:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: IconSmooth
mode: Diagonal
key: walls
base: state
- type: Fixtures
fixtures:
fix1:
shape:
!type:PolygonShape
vertices:
- "-0.5,-0.5"
- "0.5,0.5"
- "0.5,-0.5"
mask:
- FullTileMask
layer:
- GlassLayer

- type: entity
parent: WindowDiagonal
parent: PlasmaWindow
id: WindowPlasmaDiagonal
name: plasma window
suffix: diagonal
Expand All @@ -93,32 +85,26 @@
- type: Icon
sprite: _NF/Structures/Windows/plasma_window_diagonal.rsi
state: state0
- type: Damageable
damageContainer: Inorganic
damageModifierSet: RGlass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlassPlasma:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: StaticPrice
price: 30
- type: RadiationBlocker
resistance: 2
- type: IconSmooth
mode: Diagonal
key: walls
base: state
- type: Fixtures
fixtures:
fix1:
shape:
!type:PolygonShape
vertices:
- "-0.5,-0.5"
- "0.5,0.5"
- "0.5,-0.5"
mask:
- FullTileMask
layer:
- GlassLayer

- type: entity
parent: WindowDiagonal
parent: ReinforcedPlasmaWindow
id: WindowPlasmaReinforcedDiagonal
name: reinforced plasma window
suffix: diagonal
Expand All @@ -134,35 +120,20 @@
- type: Icon
sprite: _NF/Structures/Windows/reinforced_plasma_window_diagonal.rsi
state: state0
- type: Damageable
damageContainer: Inorganic
damageModifierSet: RGlass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1000
behaviors: #excess damage, don't spawn entities.
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 600
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpawnEntitiesBehavior
spawn:
ShardGlassPlasma:
min: 1
max: 2
PartRodMetal:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: StaticPrice
price: 65
- type: RadiationBlocker
resistance: 4
- type: IconSmooth
mode: Diagonal
key: walls
base: state
- type: Fixtures
fixtures:
fix1:
shape:
!type:PolygonShape
vertices:
- "-0.5,-0.5"
- "0.5,0.5"
- "0.5,-0.5"
mask:
- FullTileMask
layer:
- GlassLayer

0 comments on commit 0bac671

Please sign in to comment.