Generalize ResistanceSets into DamageModifierSets (#4619)

* generalize ResistanceSets into DamageModifierSets

* remove unneeded test prototype
This commit is contained in:
mirrorcult
2021-09-15 15:51:13 -07:00
committed by GitHub
parent cd6c2bb373
commit cc52ebb9b5
57 changed files with 131 additions and 112 deletions

View File

@@ -1,4 +1,4 @@
- type: resistanceSet
- type: damageModifierSet
id: Metallic
coefficients:
Blunt: 0.7
@@ -8,7 +8,7 @@
flatReductions:
Blunt: 5
- type: resistanceSet
- type: damageModifierSet
id: Inflatable
coefficients:
Blunt: 0.5
@@ -18,7 +18,7 @@
flatReductions:
Blunt: 5
- type: resistanceSet
- type: damageModifierSet
id: Glass
coefficients:
Blunt: 0.5
@@ -27,4 +27,4 @@
Heat: 0
Shock: 0
flatReductions:
Blunt: 5
Blunt: 5

View File

@@ -126,7 +126,7 @@
- type: Airtight
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -31,7 +31,7 @@
isOpen: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Glass
damageModifierSet: Glass
- type: Destructible
thresholds:
- trigger:

View File

@@ -108,7 +108,7 @@
- type: Anchorable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
@@ -141,7 +141,7 @@
- type: Anchorable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -22,7 +22,7 @@
- SmallImpassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Inflatable
damageModifierSet: Inflatable
- type: Destructible
thresholds:
- trigger:

View File

@@ -27,10 +27,10 @@
- type: Lock
locked: false
lockOnClick: true # toggle lock just by clicking on barrier
- type: DeployableBarrier
- type: DeployableBarrier
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -46,7 +46,7 @@
fillBaseName: beaker
- type: Damageable
damageContainer: Inorganic
resistanceSet: Glass
damageModifierSet: Glass
- type: Destructible
thresholds:
- trigger:

View File

@@ -30,7 +30,7 @@
- type: Pullable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -27,7 +27,7 @@
anchored: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -65,7 +65,7 @@
- type: Occluder
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -7,7 +7,7 @@
- type: InteractionOutline
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -13,7 +13,7 @@
- type: InteractionOutline
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -25,7 +25,7 @@
- type: Rotatable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -39,7 +39,7 @@
- type: ApcPowerReceiver
- type: Damageable
damageContainer: Inorganic
resistanceSet: Glass
damageModifierSet: Glass
- type: Destructible
thresholds:
- trigger:

View File

@@ -7,7 +7,7 @@
components:
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: PlaceableSurface
- type: Sprite
netsync: false

View File

@@ -10,7 +10,7 @@
sprite: Structures/Furniture/Tables/frame.rsi
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
@@ -43,7 +43,7 @@
sprite: Structures/Furniture/Tables/generic.rsi
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -25,7 +25,7 @@
rotation: -90
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -13,7 +13,7 @@
sprite: Structures/Furniture/instruments.rsi
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -25,7 +25,7 @@
- type: Pullable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -29,7 +29,7 @@
state: 0
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -19,7 +19,7 @@
- MobMask
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -33,7 +33,7 @@
- MobImpassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -32,7 +32,7 @@
node: missingWires
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
@@ -80,7 +80,7 @@
node: machineFrame
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -13,7 +13,7 @@
anchored: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -13,7 +13,7 @@
anchored: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Anchorable
- type: Rotatable
- type: Pullable

View File

@@ -17,7 +17,7 @@
- type: Anchorable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -46,7 +46,7 @@
nodeGroupID: MVPower
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -26,7 +26,7 @@
- SmallImpassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
@@ -112,7 +112,7 @@
- SmallImpassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -40,7 +40,7 @@
anchored: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
@@ -81,7 +81,7 @@
anchored: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
@@ -127,7 +127,7 @@
anchored: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -22,7 +22,7 @@
anchored: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -20,7 +20,7 @@
drawdepth: BelowFloor
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -39,7 +39,7 @@
drawRate: 50
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -43,7 +43,7 @@
acts: [ "Destruction" ]
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Physics
bodyType: Dynamic
fixtures:
@@ -364,7 +364,7 @@
acts: [ "Destruction" ]
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: InteractionOutline
- type: Sprite
sprite: Structures/Storage/canister.rsi

View File

@@ -41,7 +41,7 @@
placeCentered: true
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -36,7 +36,7 @@
- type: PlaceableSurface
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -531,7 +531,7 @@
state_closed: livestockcrate_door
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -25,7 +25,7 @@
- SmallImpassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -27,7 +27,7 @@
- type: Anchorable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -13,7 +13,7 @@
!type:PhysShapeAabb {}
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -36,7 +36,7 @@
type: SignalPortSelectorBoundUserInterface
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -11,7 +11,7 @@
state: 0
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -25,7 +25,7 @@
- ExplosivePassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -19,7 +19,7 @@
state: full
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Physics
bodyType: Static
fixtures:

View File

@@ -29,7 +29,7 @@
- ExplosivePassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -16,7 +16,7 @@
state: metal
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -10,7 +10,7 @@
sprite: Structures/Windows/plasma_window.rsi
- type: Damageable
damageContainer: Inorganic
resistanceSet: Glass
damageModifierSet: Glass
- type: Destructible
thresholds:
- trigger:

View File

@@ -31,7 +31,7 @@
- VaultImpassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Glass
damageModifierSet: Glass
- type: Repairable
- type: Destructible
thresholds:

View File

@@ -20,7 +20,7 @@
drawdepth: FloorObjects
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -12,7 +12,7 @@
state: spike
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -26,7 +26,7 @@
- SmallImpassable
- type: Damageable
damageContainer: Inorganic
resistanceSet: Metallic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger: