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

Fixes WallFrame, Indestructible BlastDoor #349

Merged
merged 1 commit into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion Resources/Prototypes/Damage/modifier_sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
Slash: 20
Piercing: 20
Heat: 20
Structural: 20
Structural: 30 # 30 cuz of pickaxes

- type: damageModifierSet
id: StructuralMetallic
Expand Down
71 changes: 56 additions & 15 deletions Resources/Prototypes/_Nuclear14/Entities/Structures/Walls/walls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
- type: IconSmooth
key: wallsstore
base: store

- type: entity
parent: N14WallStore
id: N14WallSuperstore
Expand All @@ -32,7 +32,7 @@
sprite: _Nuclear14/Structures/Walls/nc14/superstore.rsi
- type: Icon
sprite: _Nuclear14/Structures/Walls/nc14/superstore.rsi

- type: entity
parent: N14WallStore
id: N14WallRuins
Expand All @@ -46,7 +46,7 @@
- type: IconSmooth
key: wallsruins
base: ruin

- type: entity
parent: N14WallStore
id: N14WallBrick
Expand All @@ -59,7 +59,7 @@
- type: IconSmooth
key: wallsbrick
base: brick

- type: entity
parent: N14WallStore
id: N14WallConcreteLight
Expand All @@ -70,7 +70,7 @@
sprite: _Nuclear14/Structures/Walls/nc14/concrete.rsi
- type: Icon
sprite: _Nuclear14/Structures/Walls/nc14/concrete.rsi

- type: entity
parent: N14WallConcreteLight
id: N14WallConcreteDark
Expand All @@ -80,7 +80,7 @@
sprite: _Nuclear14/Structures/Walls/nc14/concretedark.rsi
- type: Icon
sprite: _Nuclear14/Structures/Walls/nc14/concretedark.rsi

# Metal walls
- type: entity
parent: BaseWall
Expand All @@ -107,7 +107,7 @@
- type: IconSmooth
key: wallsenclave
base: enclave

# Wood walls
- type: entity
id: N14WallWoodFrame
Expand All @@ -121,6 +121,19 @@
- type: Sprite
sprite: _Nuclear14/Structures/Walls/nc14/woodlog.rsi
state: girder
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank1:
min: 0
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
parent: BaseWall
Expand All @@ -138,7 +151,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 200
behaviors:
- !type:PlaySoundBehavior
sound:
Expand All @@ -147,13 +160,13 @@
spawn:
MaterialWoodPlank:
min: 1
max: 2
max: 3
- !type:DoActsBehavior
acts: ["Destruction"]
- type: IconSmooth
key: wallswood
base: wood

- type: entity
parent: BaseStructureDynamic
id: N14WallWoodWhiteFrame
Expand Down Expand Up @@ -198,7 +211,7 @@
max: 1
- !type:DoActsBehavior
acts: ["Destruction"]

- type: entity
parent: N14WallWoodWhite
id: N14WallWoodDark
Expand All @@ -207,15 +220,15 @@
sprite: _Nuclear14/Structures/Walls/nc14/wooddark.rsi
- type: Icon
sprite: _Nuclear14/Structures/Walls/nc14/wooddark.rsi

- type: entity
parent: N14WallWoodWhiteFrame
id: N14WallWoodDarkFrame
components:
- type: Sprite
sprite: _Nuclear14/Structures/Walls/nc14/wooddark.rsi
state: girder

- type: entity
parent: N14WallWoodWhite
id: N14WallWoodLog
Expand All @@ -232,7 +245,7 @@
- type: Construction
graph: N14WoodWall
node: logWall

# Tent Walls
- type: entity
parent: BaseWall
Expand Down Expand Up @@ -260,4 +273,32 @@
acts: ["Destruction"]
- type: IconSmooth
key: tent
base: tent
base: tent

- type: entity
id: N14BlastDoorExteriorIndestructible
parent: BlastDoor
suffix: Indestructible, Closed
components:
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 10000 # pseudo indestructible
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]

- type: entity
id: BlastDoorExteriorIndestructibleOpen
parent: BlastDoorOpen
suffix: Indestructible, Open
components:
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 10000
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
Loading