Make fuel tanks explodey again (#4670)

* make fuel tanks explodey again

* tanks now take damage from lit welders,
This commit is contained in:
Leon Friedrich
2021-10-02 19:42:46 +10:00
committed by GitHub
parent 2992bd74cd
commit f80f252ff2
7 changed files with 64 additions and 28 deletions

View File

@@ -28,10 +28,22 @@
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTypeTrigger
damageType: Heat
damage: 5
behaviors:
#spill BEFORE exploding, so that one day explosions can ignite puddles
- !type:SpillBehavior
solution: tank
- !type:ExplodeBehavior
#note: only actually explodes if entity has ExplosiveComponent.
- trigger:
!type:DamageTrigger
damage: 10
behaviors:
- !type:SpillBehavior
solution: tank
- !type:DoActsBehavior
acts: ["Destruction"]
- type: SolutionContainerManager

View File

@@ -12,6 +12,19 @@
state: fueltank
- type: ReagentTank
tankType: Fuel
- type: DamageOnToolInteract
tools:
- 16 # welding
weldingDamage:
types:
Heat: 10
- type: Explosive
# The explosive component is independent of the stored liquid :/
# I dream of a day where all grenades/explosives will be reagent dependent.
devastationRange: 0
heavyImpactRange: 2
lightImpactRange: 6
flashRange: 5
- type: entity
id: WeldingFuelTankFull
@@ -20,11 +33,6 @@
suffix: Full
description: A storage tank containing welding fuel.
components:
- type: Explosive
devastationRange: 0
heavyImpactRange: 2
lightImpactRange: 6
flashRange: 5
- type: SolutionContainerManager
solutions:
tank: