mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fuel tanks explode when air temperature exceeds 561.15°K.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
|
||||
// Assuming this is http://en.wikipedia.org/wiki/Butane
|
||||
// (Autoignition temp 288<38>C, or 561.15<EFBFBD>K)
|
||||
// Used in fueltanks exploding.
|
||||
#define AUTOIGNITION_WELDERFUEL 561.15
|
||||
|
||||
/obj/structure/reagent_dispensers
|
||||
name = "Dispenser"
|
||||
@@ -154,6 +157,11 @@
|
||||
ex_act()
|
||||
explode()
|
||||
|
||||
temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
|
||||
if(exposed_temperature >= AUTOIGNITION_WELDERFUEL)
|
||||
explode()
|
||||
|
||||
|
||||
proc/explode()
|
||||
if (reagents.total_volume > 500)
|
||||
explosion(src.loc,1,2,4)
|
||||
|
||||
Reference in New Issue
Block a user