Refactored fire_act (#19158)

Refactored fire_act() to be in line with TG version, removed useless
parameter, added signal, made non sleepable and forced to call parent.
Added atom_act.dm file for the various *_act procs.
This commit is contained in:
Fluffy
2024-05-26 20:55:36 +00:00
committed by GitHub
parent 263cce7f1e
commit db5b1ee6b2
36 changed files with 171 additions and 46 deletions
@@ -24,7 +24,7 @@
death()
return ..()
/obj/structure/flora/pottedplant/fire_act()
/obj/structure/flora/pottedplant/fire_act(exposed_temperature, exposed_volume)
death()
return ..()
@@ -19,7 +19,7 @@
death()
return ..()
/obj/item/flora/pottedplant_small/fire_act()
/obj/item/flora/pottedplant_small/fire_act(exposed_temperature, exposed_volume)
death()
return ..()
@@ -20,7 +20,8 @@
SSicon_smooth.add_to_queue_neighbors(src)
SSicon_smooth.add_to_queue(src)
/turf/simulated/floor/exoplanet/snow/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume)
/turf/simulated/floor/exoplanet/snow/fire_act(exposed_temperature, exposed_volume)
. = ..()
melt()
/turf/simulated/floor/exoplanet/snow/melt()
@@ -105,7 +105,9 @@
if(ammunition_flags & SHIP_AMMO_FLAG_INFLAMMABLE)
cookoff(TRUE)
/obj/item/ship_ammunition/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume)
/obj/item/ship_ammunition/fire_act(exposed_temperature, exposed_volume)
. = ..()
if(ammunition_flags & SHIP_AMMO_FLAG_INFLAMMABLE)
if(exposed_temperature >= T0C+200)
cookoff(TRUE)
@@ -155,7 +155,9 @@
/obj/item/warhead/longbow/ex_act(severity)
cookoff(TRUE)
/obj/item/warhead/longbow/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume)
/obj/item/warhead/longbow/fire_act(exposed_temperature, exposed_volume)
. = ..()
if(exposed_temperature >= T0C+200)
cookoff(TRUE)