Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Half Revert #31978 #33160

Merged
merged 5 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions Resources/Prototypes/Entities/Structures/Windows/clockwork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
node: clockworkWindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 3
thresholds: [4, 8, 12]
damageDivisor: 4
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
Expand All @@ -74,8 +74,8 @@
node: windowClockworkDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 1.5
thresholds: [4, 8, 12]
damageDivisor: 10
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
Expand All @@ -85,16 +85,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 37
damage: 150
behaviors:
- !type:PlaySoundBehavior
sound:
Expand Down Expand Up @@ -152,4 +143,4 @@
sprite: Structures/Windows/cracks_diagonal.rsi
- type: Construction
graph: WindowDiagonal
node: clockworkWindowDiagonal
node: clockworkWindowDiagonal
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Structures/Windows/mining.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
base: mwindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 4
thresholds: [4, 8, 12]
damageDivisor: 6
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
Expand Down
25 changes: 8 additions & 17 deletions Resources/Prototypes/Entities/Structures/Windows/plasma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
sprite: Structures/Windows/plasma_window.rsi
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Glass
damageModifierSet: RGlass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 150
damage: 120
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
Expand All @@ -24,7 +24,7 @@
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 75
damage: 60
behaviors:
- !type:PlaySoundBehavior
sound:
Expand All @@ -43,8 +43,8 @@
node: plasmaWindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 3
thresholds: [4, 8, 12]
damageDivisor: 3.333
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
Expand Down Expand Up @@ -74,25 +74,16 @@
node: plasmaWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 1.5
thresholds: [4, 8, 12]
damageDivisor: 3.333
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 37
damage: 200
behaviors:
- !type:PlaySoundBehavior
sound:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 20
thresholds: [4, 8, 12]
damageDivisor: 28
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
Expand Down Expand Up @@ -185,8 +185,8 @@
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 20
thresholds: [4, 8, 12]
damageDivisor: 28
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_diagonal.rsi
Expand Down
35 changes: 27 additions & 8 deletions Resources/Prototypes/Entities/Structures/Windows/reinforced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,31 @@
node: reinforcedWindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 3
thresholds: [4, 8, 12]
damageDivisor: 4
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
Expand All @@ -77,8 +96,8 @@
node: windowReinforcedDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 1.5
thresholds: [4, 8, 12]
damageDivisor: 10
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
Expand All @@ -92,16 +111,16 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 37
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
Expand Down
14 changes: 7 additions & 7 deletions Resources/Prototypes/Entities/Structures/Windows/rplasma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
damage: 200
behaviors: #excess damage, don't spawn entities.
- !type:DoActsBehavior
acts: [ "Destruction" ]
Expand All @@ -26,7 +26,7 @@
collection: WindowShatter
- trigger:
!type:DamageTrigger
damage: 150
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
Expand All @@ -48,7 +48,7 @@
node: reinforcedPlasmaWindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
thresholds: [4, 8, 12]
damageDivisor: 6
trackAllDamage: true
damageOverlay:
Expand Down Expand Up @@ -77,8 +77,8 @@
node: plasmaReinforcedWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 3
thresholds: [4, 8, 12]
damageDivisor: 36
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
Expand All @@ -88,13 +88,13 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 150
damage: 1000
behaviors: #excess damage, don't spawn entities.
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 75
damage: 600
behaviors:
- !type:PlaySoundBehavior
sound:
Expand Down
16 changes: 5 additions & 11 deletions Resources/Prototypes/Entities/Structures/Windows/ruranium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
node: reinforcedUraniumWindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
thresholds: [4, 8, 12]
damageDivisor: 6
trackAllDamage: true
damageOverlay:
Expand Down Expand Up @@ -74,22 +74,16 @@
node: uraniumReinforcedWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 3
thresholds: [4, 8, 12]
damageDivisor: 3.333
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 150
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 75
damage: 200
behaviors:
- !type:PlaySoundBehavior
sound:
Expand All @@ -99,7 +93,7 @@
ShardGlassUranium:
min: 1
max: 2
PartRodMetal:
PartRodMetal1:
min: 1
max: 2
- !type:DoActsBehavior
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Structures/Windows/shuttle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
node: shuttleWindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 20
thresholds: [4, 8, 12]
damageDivisor: 28
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
Expand Down
24 changes: 9 additions & 15 deletions Resources/Prototypes/Entities/Structures/Windows/uranium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
state: full
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Glass
damageModifierSet: RGlass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 150
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 75
damage: 60
behaviors:
- !type:PlaySoundBehavior
sound:
Expand All @@ -41,8 +41,8 @@
node: uraniumWindow
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 3
thresholds: [4, 8, 12]
damageDivisor: 3.333
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
Expand Down Expand Up @@ -72,22 +72,16 @@
node: uraniumWindowDirectional
- type: Appearance
- type: DamageVisuals
thresholds: [5, 10, 20]
damageDivisor: 1.5
thresholds: [4, 8, 12]
damageDivisor: 3.333
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks_directional.rsi
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 37
damage: 200
behaviors:
- !type:PlaySoundBehavior
sound:
Expand All @@ -96,7 +90,7 @@
spawn:
ShardGlassUranium:
min: 1
max: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: StaticPrice
Expand Down
Loading
Loading