mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
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:
@@ -220,10 +220,10 @@
|
||||
detonate(TRUE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/cans/fire_act()
|
||||
/obj/item/reagent_containers/food/drinks/cans/fire_act(exposed_temperature, exposed_volume)
|
||||
if(can_light())
|
||||
fuselit = TRUE
|
||||
detonate(FALSE)
|
||||
INVOKE_ASYNC(src, PROC_REF(detonate), FALSE)
|
||||
visible_message(SPAN_WARNING("<b>\The [name]'s fuse catches on fire!</b>"))
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
|
||||
..()
|
||||
|
||||
/obj/structure/reagent_dispensers/fueltank/fire_act(datum/gas_mixture/air, temperature, volume)
|
||||
/obj/structure/reagent_dispensers/fueltank/fire_act(temperature, volume)
|
||||
if (is_leaking)
|
||||
ex_act(2.0)
|
||||
else if (temperature > T0C+500)
|
||||
|
||||
Reference in New Issue
Block a user