From de7fe798913bdb68703929e523fdce47d0c6b801 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:58:55 +0100 Subject: [PATCH] [MIRROR] Pyrosium reactions sets temperature & causes reactions inside holder [MDB IGNORE] (#25519) * Pyrosium reactions sets temperature & causes reactions inside holder (#80176) ## About The Pull Request - Fixes #79933 Now uses `expose_temperature()` to heat the holder by 10 kelvin each step. Also uses `expose_temperature()` to change temperature to 20 kelvin when pyrosium is first made. ## Changelog :cl: fix: Pyrosium oxygen reaction now heats the holder and causes reactions inside it. Also correctly sets the holder temperature to 20 kelvin & causes reactions when first made /:cl: * Pyrosium reactions sets temperature & causes reactions inside holder --------- Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> --- code/modules/reagents/chemistry/recipes/pyrotechnics.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm index da8e197f63d..f1fb70faf38 100644 --- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm +++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm @@ -503,7 +503,7 @@ reaction_tags = REACTION_TAG_EASY | REACTION_TAG_UNIQUE /datum/chemical_reaction/pyrosium_oxygen/on_reaction(datum/reagents/holder, datum/equilibrium/reaction, created_volume) - holder.chem_temp += 10*created_volume + holder.expose_temperature(holder.chem_temp + (10 * created_volume), 1) /datum/chemical_reaction/pyrosium results = list(/datum/reagent/pyrosium = 3) @@ -516,8 +516,7 @@ reaction_tags = REACTION_TAG_EASY | REACTION_TAG_UNIQUE /datum/chemical_reaction/pyrosium/on_reaction(datum/reagents/holder, datum/equilibrium/reaction, created_volume) - holder.chem_temp = 20 // also cools the fuck down - return + holder.expose_temperature(20, 1) // also cools the fuck down /datum/chemical_reaction/teslium results = list(/datum/reagent/teslium = 3)