Skip to content

Commit

Permalink
[MIRROR] Pyrosium reactions sets temperature & causes reactions insid…
Browse files Browse the repository at this point in the history
…e 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 <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Dec 9, 2023
1 parent 3d4f362 commit de7fe79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/reagents/chemistry/recipes/pyrotechnics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit de7fe79

Please sign in to comment.