Add easy window upgrading, fix some other window issues. (#31978)

* uhhh a lot of window stuff, mainly easy upgrades

* buff plasma/uranium rwindows so you actually want them

* fix uranium number, correct construction descriptions

* fix tinted window price

* frosted windo
This commit is contained in:
Alzore
2024-09-09 14:26:10 -05:00
committed by GitHub
parent a7c1cdc342
commit 00f90ac78a
26 changed files with 535 additions and 341 deletions

View File

@@ -47,8 +47,8 @@
node: clockworkWindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 4
thresholds: [5, 10, 20]
damageDivisor: 3
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
@@ -74,8 +74,8 @@
node: windowClockworkDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 10
thresholds: [5, 10, 20]
damageDivisor: 1.5
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
@@ -85,7 +85,16 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 150
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 37
behaviors:
- !type:PlaySoundBehavior
sound:

View File

@@ -43,8 +43,8 @@
base: mwindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 6
thresholds: [5, 10, 20]
damageDivisor: 4
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi

View File

@@ -10,12 +10,12 @@
sprite: Structures/Windows/plasma_window.rsi
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: RGlass
damageModifierSet: Glass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 120
damage: 150
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
@@ -24,7 +24,7 @@
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 60
damage: 75
behaviors:
- !type:PlaySoundBehavior
sound:
@@ -43,8 +43,8 @@
node: plasmaWindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 3.333
thresholds: [5, 10, 20]
damageDivisor: 3
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
@@ -74,8 +74,8 @@
node: plasmaWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 3.333
thresholds: [5, 10, 20]
damageDivisor: 1.5
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
@@ -83,7 +83,16 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 37
behaviors:
- !type:PlaySoundBehavior
sound:

View File

@@ -98,8 +98,8 @@
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 28
thresholds: [5, 10, 20]
damageDivisor: 20
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
@@ -185,8 +185,8 @@
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 28
thresholds: [5, 10, 20]
damageDivisor: 20
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_diagonal.rsi

View File

@@ -50,31 +50,12 @@
node: reinforcedWindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 4
thresholds: [5, 10, 20]
damageDivisor: 3
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
- type: entity
parent: ReinforcedWindow
id: TintedWindow
name: tinted window
components:
- type: Sprite
drawdepth: WallTops
sprite: Structures/Windows/tinted_window.rsi
- type: Icon
sprite: Structures/Windows/tinted_window.rsi
- type: IconSmooth
base: twindow
- type: Construction
graph: Window
node: tintedWindow
- type: Occluder
- type: StaticPrice
price: 45
- type: entity
id: WindowReinforcedDirectional
parent: WindowDirectional
@@ -96,8 +77,8 @@
node: windowReinforcedDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 10
thresholds: [5, 10, 20]
damageDivisor: 1.5
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
@@ -111,16 +92,16 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities.
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
damage: 37
behaviors:
- !type:PlaySoundBehavior
sound:

View File

@@ -17,7 +17,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
damage: 300
behaviors: #excess damage, don't spawn entities.
- !type:DoActsBehavior
acts: [ "Destruction" ]
@@ -26,7 +26,7 @@
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 100
damage: 150
behaviors:
- !type:PlaySoundBehavior
sound:
@@ -48,7 +48,7 @@
node: reinforcedPlasmaWindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
thresholds: [5, 10, 20]
damageDivisor: 6
trackAllDamage: true
damageOverlay:
@@ -77,8 +77,8 @@
node: plasmaReinforcedWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 36
thresholds: [5, 10, 20]
damageDivisor: 3
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
@@ -88,13 +88,13 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 1000
damage: 150
behaviors: #excess damage, don't spawn entities.
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 600
damage: 75
behaviors:
- !type:PlaySoundBehavior
sound:

View File

@@ -15,13 +15,13 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
damage: 300
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
damage: 150
behaviors:
- !type:PlaySoundBehavior
sound:
@@ -43,7 +43,7 @@
node: reinforcedUraniumWindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
thresholds: [5, 10, 20]
damageDivisor: 6
trackAllDamage: true
damageOverlay:
@@ -74,8 +74,8 @@
node: uraniumReinforcedWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 3.333
thresholds: [5, 10, 20]
damageDivisor: 3
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
@@ -83,7 +83,13 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
damage: 150
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:PlaySoundBehavior
sound:
@@ -93,7 +99,7 @@
ShardGlassUranium:
min: 1
max: 2
PartRodMetal1:
PartRodMetal:
min: 1
max: 2
- !type:DoActsBehavior

View File

@@ -46,8 +46,8 @@
node: shuttleWindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 28
thresholds: [5, 10, 20]
damageDivisor: 20
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi

View File

@@ -11,18 +11,18 @@
state: full
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: RGlass
damageModifierSet: Glass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 150
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 60
damage: 75
behaviors:
- !type:PlaySoundBehavior
sound:
@@ -41,8 +41,8 @@
node: uraniumWindow
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 3.333
thresholds: [5, 10, 20]
damageDivisor: 3
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
@@ -72,8 +72,8 @@
node: uraniumWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 3.333
thresholds: [5, 10, 20]
damageDivisor: 1.5
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
@@ -81,7 +81,13 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 37
behaviors:
- !type:PlaySoundBehavior
sound:
@@ -90,7 +96,7 @@
spawn:
ShardGlassUranium:
min: 1
max: 2
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: StaticPrice

View File

@@ -84,8 +84,8 @@
node: window
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 3.333
thresholds: [5, 10, 20]
damageDivisor: 2
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
@@ -93,6 +93,25 @@
price: 100
- type: BlockWeather
- type: entity
parent: Window
id: TintedWindow
name: tinted window
components:
- type: Sprite
drawdepth: WallTops
sprite: Structures/Windows/tinted_window.rsi
- type: Icon
sprite: Structures/Windows/tinted_window.rsi
- type: IconSmooth
base: twindow
- type: Construction
graph: Window
node: tintedWindow
- type: Occluder
- type: StaticPrice
price: 70
- type: entity
id: WindowRCDResistant
parent: Window
@@ -158,7 +177,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities.
damage: 50 #excess damage (nuke?). avoid computational cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
@@ -188,8 +207,7 @@
node: windowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 3.333
thresholds: [5, 10, 20]
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
@@ -220,6 +238,8 @@
- type: Icon
sprite: Structures/Windows/directional.rsi
state: frosted_window
- type: StaticPrice
price: 35
- type: entity
parent: Window