Puts a cap on the size of Water-Potassium explosions (#21315)

* caps water pot explosions

* Sirryan request

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

---------

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Coolrune206
2023-06-29 00:13:41 +10:00
committed by GitHub
parent 8ef9b5b070
commit 5dcd23f17c

View File

@@ -8,7 +8,7 @@
/datum/chemical_reaction/explosion_potassium/on_reaction(datum/reagents/holder, created_volume)
var/datum/effect_system/reagents_explosion/e = new()
e.set_up(round (created_volume/10, 1), holder.my_atom, 0, 0)
e.set_up(min(round(created_volume / 10, 1), 30), holder.my_atom, 0, 0)
e.start()
holder.clear_reagents()