Skip to content

Commit

Permalink
add structural damage taken to a lot of prototypes (#30790)
Browse files Browse the repository at this point in the history
* fix

* add structural damage taken to a lot of other things

* do requested changes

* how did this happen
  • Loading branch information
Ilya246 authored Sep 4, 2024
1 parent 7ce7b9e commit f0d3b68
Show file tree
Hide file tree
Showing 91 changed files with 175 additions and 170 deletions.
4 changes: 4 additions & 0 deletions Resources/Prototypes/Damage/modifier_sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Slash: 0.5
Piercing: 0.7
Shock: 1.2
Structural: 0.5
flatReductions:
Blunt: 5
Heat: 5
Expand Down Expand Up @@ -66,6 +67,7 @@
Piercing: 0.7
Shock: 2
Heat: 3
Structural: 0.5

# Like metallic, but without flat reduction so it can be damaged with fists.
- type: damageModifierSet
Expand Down Expand Up @@ -98,6 +100,7 @@
Piercing: 2.0
Heat: 0.5
Shock: 0
Structural: 0.25
flatReductions:
Blunt: 5

Expand Down Expand Up @@ -138,6 +141,7 @@
Slash: 2.0
Piercing: 1.0
Heat: 2.0
Structural: 0.5
flatReductions:
Blunt: 5

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
replacementTiles:
- FloorMetalFoam
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Objects/Decoration/flora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
layer:
- WallLayer
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: MeleeSound
soundGroups:
Expand Down
10 changes: 5 additions & 5 deletions Resources/Prototypes/Entities/Objects/Decoration/mining.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: entity
id: WoodenSign
name: wooden sign
description: He's pointing somewhere.
description: He's pointing somewhere.
components:
- type: Clickable
- type: InteractionOutline
Expand All @@ -18,7 +18,7 @@
bounds: "-0.35,-0.4,0.35,0.4"
density: 100
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: MeleeSound
soundGroups:
Expand Down Expand Up @@ -66,7 +66,7 @@
sprite: Objects/Decoration/mines.rsi
state: support
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: Physics
bodyType: Static
Expand Down Expand Up @@ -141,7 +141,7 @@
sprite: Objects/Decoration/mines.rsi
state: support_wall
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: Physics
bodyType: Static
Expand Down Expand Up @@ -189,4 +189,4 @@
spawn:
Log:
min: 1
max: 3
max: 3
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Objects/Misc/fluff_lights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
startingItem: PowerCellMedium
- type: Anchorable
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down Expand Up @@ -249,7 +249,7 @@
state: floodlight_broken
- type: Anchorable
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
layer:
- WallLayer
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Inflatable
- type: Destructible
thresholds:
Expand Down Expand Up @@ -68,7 +68,7 @@
closeSound:
path: /Audio/Misc/zip.ogg
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Inflatable
- type: Destructible
thresholds:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Objects/Misc/spaceshroom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
loot:
All: SpaceshroomGather
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
- sprite: Structures/catwalk.rsi
state: catwalk_preview
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
lockTime: 5
unlockTime: 5
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
- type: PlaceableSurface
isPlaceable: false
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallicStrong
- type: Destructible
thresholds:
- trigger:
Expand Down Expand Up @@ -91,7 +91,7 @@
enum.PaperLabelVisuals.Layer:
True: { offset: "0.0,0.3125" }
False: { offset: "0.0,0.0" }

- type: LockVisuals
- type: ItemSlots
- type: ContainerContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
energy: 3
color: "#FFC90C"
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
energy: 3
color: "#52ff39"
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Glass
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- type: Appearance
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
Expand All @@ -52,7 +52,7 @@
max: 2
- type: WallMount
arc: 360

- type: entity
id: HospitalCurtains
parent: BaseCurtains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
autoRot: true
offset: "0, 0.6"
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
energy: 3
color: "#FF6F00"
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
graph: Mannequin
node: mannequin
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
components:
- type: Anchorable
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- type: Anchorable
- type: Pullable
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
anchored: true
noRot: true
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallicStrong
- type: RCDDeconstructable
cost: 6
delay: 8
Expand All @@ -46,4 +46,4 @@
graph: Airlock
node: assembly
placement:
mode: SnapgridCenter
mode: SnapgridCenter
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
- type: DeviceNetworkRequiresPower
- type: InteractionOutline
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallicStrong
- type: RCDDeconstructable
cost: 4
delay: 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
node: frame1
- type: InteractionOutline
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallicStrong
- type: RCDDeconstructable
cost: 4
delay: 6
fx: EffectRCDDeconstruct6
fx: EffectRCDDeconstruct6
- type: Destructible
thresholds:
- trigger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- type: Appearance
- type: Airtight
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: RCDDeconstructable
cost: 6
Expand Down Expand Up @@ -100,7 +100,7 @@
closeSound:
path: /Audio/Effects/door_close.ogg
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
Expand Down Expand Up @@ -149,8 +149,8 @@
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: Damageable
damageContainer: Inorganic
damageModifierSet: StrongMetallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallicStrong
- type: Destructible
thresholds:
- trigger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
time: 2
- type: Airtight
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
- type: RCDDeconstructable
cost: 6
delay: 8
Expand Down Expand Up @@ -99,8 +99,8 @@
noRot: false
- type: Rotatable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
- type: RCDDeconstructable
cost: 6
delay: 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
state: assembly
- type: InteractionOutline
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallicStrong
- type: Destructible
thresholds:
- trigger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
resistance: 2
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StrongMetallic
damageModifierSet: StructuralMetallic
- type: Destructible
thresholds:
- trigger:
Expand Down Expand Up @@ -212,7 +212,7 @@
- board
- type: InteractionOutline
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- type: Pullable
- type: Rotatable
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: Metallic
- type: RCDDeconstructable
cost: 6
Expand Down
Loading

0 comments on commit f0d3b68

Please sign in to comment.