Gas canisters HP buffed and now spawn broken version (#3791)

* Initial

* Fixed Build
This commit is contained in:
Swept
2021-04-15 21:14:47 +00:00
committed by GitHub
parent 3c878779ae
commit c772987bde

View File

@@ -8,6 +8,7 @@
offset: Center offset: Center
- type: Sprite - type: Sprite
- type: Damageable - type: Damageable
resistances: metallicResistances
- type: Physics - type: Physics
bodyType: Dynamic bodyType: Dynamic
fixtures: fixtures:
@@ -57,6 +58,21 @@
interfaces: interfaces:
- key: enum.GasCanisterUiKey.Key - key: enum.GasCanisterUiKey.Key
type: GasCanisterBoundUserInterface type: GasCanisterBoundUserInterface
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
GasCanisterBrokenBase:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: GasCanister parent: GasCanister
@@ -77,6 +93,21 @@
- 0 # Tritium - 0 # Tritium
- 0 # Water vapor - 0 # Water vapor
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
StorageCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
# Filled canisters, contain 1871.71051 moles each # Filled canisters, contain 1871.71051 moles each
@@ -95,6 +126,21 @@
- 393.0592071 # oxygen 21% - 393.0592071 # oxygen 21%
- 1478.6513029 # nitrogen 79% - 1478.6513029 # nitrogen 79%
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
AirCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: GasCanister parent: GasCanister
@@ -110,6 +156,21 @@
moles: moles:
- 1871.71051 # oxygen - 1871.71051 # oxygen
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
OxygenCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: GasCanister parent: GasCanister
@@ -126,6 +187,21 @@
- 0 # oxygen - 0 # oxygen
- 1871.71051 # nitrogen - 1871.71051 # nitrogen
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
NitrogenCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: GasCanister parent: GasCanister
@@ -143,6 +219,21 @@
- 0 # nitrogen - 0 # nitrogen
- 1871.71051 # CO2 - 1871.71051 # CO2
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
CarbonDioxideCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: GasCanister parent: GasCanister
@@ -161,6 +252,21 @@
- 0 # carbon dioxide - 0 # carbon dioxide
- 1871.71051 # plasma - 1871.71051 # plasma
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
PlasmaCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: GasCanister parent: GasCanister
@@ -180,6 +286,21 @@
- 0 # Plasma - 0 # Plasma
- 1871.71051 # Tritium - 1871.71051 # Tritium
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
TritiumCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: GasCanister parent: GasCanister
@@ -200,3 +321,135 @@
- 0 # Tritium - 0 # Tritium
- 1871.71051 # Water vapor - 1871.71051 # Water vapor
temperature: 293.15 temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
WaterVaporCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
# Broke Entities
- type: entity
parent: BaseConstructible
id: GasCanisterBrokenBase
name: broken gas canister
description: A broken gas canister. Not useless yet, as it can be salvaged for high quality materials.
abstract: true
components:
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SheetPlasteel1:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Damageable
resistances: metallicResistances
- type: InteractionOutline
- type: Sprite
sprite: Constructible/Atmos/canister.rsi
state: grey-1
- type: Physics
bodyType: Dynamic
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.3,-0.4,0.3,0.4"
mass: 25
mask:
- MobImpassable
layer:
- Opaque
- MobImpassable
- SmallImpassable
- VaultImpassable
- type: entity
parent: GasCanisterBrokenBase
id: StorageCanisterBroken
name: broken storage canister
abstract: true
components:
- type: Sprite
state: yellow-1
- type: entity
parent: GasCanisterBrokenBase
id: AirCanisterBroken
name: broken air canister
abstract: true
components:
- type: Sprite
state: grey-1
- type: entity
parent: GasCanisterBrokenBase
id: OxygenCanisterBroken
name: broken oxygen canister
abstract: true
components:
- type: Sprite
state: blue-1
- type: entity
parent: GasCanisterBrokenBase
id: NitrogenCanisterBroken
name: broken nitrogen canister
abstract: true
components:
- type: Sprite
state: red-1
- type: entity
parent: GasCanisterBrokenBase
id: CarbonDioxideCanisterBroken
name: broken carbon dioxide canister
abstract: true
components:
- type: Sprite
state: black-1
- type: entity
parent: GasCanisterBrokenBase
id: PlasmaCanisterBroken
name: broken plasma canister
abstract: true
components:
- type: Sprite
state: orange-1
- type: entity
parent: GasCanisterBrokenBase
id: TritiumCanisterBroken
name: broken tritium canister
abstract: true
components:
- type: Sprite
state: green-1
- type: entity
parent: GasCanisterBrokenBase
id: WaterVaporCanisterBroken
name: broken water vapor canister
abstract: true
components:
- type: Sprite
state: water_vapor-1