SSair performance improvements (#28271)

This commit is contained in:
Charlie Nolan
2025-02-12 22:39:09 +00:00
committed by GitHub
parent 2e2a778a71
commit 194e851b8f
32 changed files with 149 additions and 69 deletions
@@ -10,6 +10,7 @@
gender = PLURAL
layer = OBJ_LAYER + 0.9
animate_movement = NO_STEPS
cares_about_temperature = TRUE
/// How many times this one bit of foam can spread around itself
var/spread_amount = 3
/// How long it takes this to initially start spreading after being dispersed
@@ -121,7 +122,7 @@
/obj/effect/particle_effect/foam/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume, global_overlay = TRUE) //Don't heat the reagents inside
return
/obj/effect/particle_effect/foam/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume) // overriden to prevent weird behaviors with heating reagents inside
/obj/effect/particle_effect/foam/temperature_expose(exposed_temperature, exposed_volume) // overriden to prevent weird behaviors with heating reagents inside
if(prob(max(0, exposed_temperature - 475)))
flick("[icon_state]-disolve", src)
QDEL_IN(src, 0.5 SECONDS)
@@ -155,7 +156,7 @@
M.metal = metal_kind
M.update_state()
/obj/effect/particle_effect/foam/metal/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
/obj/effect/particle_effect/foam/metal/temperature_expose(exposed_temperature, exposed_volume)
return
/obj/effect/particle_effect/foam/metal/on_atom_entered(datum/source, atom/movable/entered)