make heat and freeze work on reagents (#1314)

* make heat and freeze work on reagents

* has to run before AdjustTemperature

* implement suggested changes

* almost missed this edge case

* 0k is the limit

* cleanup
This commit is contained in:
Ignaz "Ian" Kraft
2025-05-27 23:24:01 +02:00
committed by GitHub
parent 2607eaeddd
commit 33bb537f81
3 changed files with 62 additions and 1 deletions

View File

@@ -16,6 +16,8 @@
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14ImpactEffectHeat
- !type:CP14AdjustAllSolutionThermalEnergy
delta: 3600 # One full use heats 100u from ~300k to ~650k
- !type:CP14SpellApplyEntityEffect
effects:
- !type:AdjustTemperature

View File

@@ -16,6 +16,8 @@
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14ImpactEffectFreeze
- !type:CP14AdjustAllSolutionThermalEnergy
delta: -1200 # One full use cools 100u from ~300k to ~250k
- !type:CP14SpellApplyEntityEffect
effects:
- !type:MovespeedModifier
@@ -77,4 +79,4 @@
components:
- type: CP14SpellStorage
spells:
- CP14ActionSpellFreeze
- CP14ActionSpellFreeze