mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Nitroglycerin Explosion Fix (#8028)
This commit is contained in:
committed by
Matt Atlas
parent
7aa0e6475b
commit
34de84e5ec
@@ -413,6 +413,7 @@
|
||||
reagent_state = LIQUID
|
||||
color = "#808080"
|
||||
taste_description = "oil"
|
||||
var/temp_set = FALSE
|
||||
|
||||
/datum/reagent/nitroglycerin/proc/explode()
|
||||
var/datum/effect/effect/system/reagents_explosion/e = new()
|
||||
@@ -427,6 +428,9 @@
|
||||
|
||||
/datum/reagent/nitroglycerin/add_thermal_energy(var/added_energy)
|
||||
. = ..()
|
||||
if(!temp_set) // so initial temperature-setting doesn't make stuff explode
|
||||
temp_set = TRUE
|
||||
return
|
||||
if(abs(added_energy) > (specific_heat * 5 / volume)) // can explode via cold or heat shock
|
||||
explode()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user