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)
+2 -1
View File
@@ -11,6 +11,7 @@
base_icon_state = "glowshroom" //replaced in New
layer = ABOVE_NORMAL_TURF_LAYER
max_integrity = 30
cares_about_temperature = TRUE
var/floor = 0
var/obj/item/seeds/myseed = /obj/item/seeds/glowshroom
@@ -107,7 +108,7 @@
if(damage_type == BURN && damage_amount)
playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/glowshroom/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
/obj/structure/glowshroom/temperature_expose(exposed_temperature, exposed_volume)
..()
if(exposed_temperature > 300)
take_damage(5, BURN, 0, 0)
+2 -1
View File
@@ -6,6 +6,7 @@
anchored = TRUE
density = FALSE
max_integrity = 15
cares_about_temperature = TRUE
var/mob/living/carbon/human/master_commander = null
/obj/structure/spider/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
@@ -26,7 +27,7 @@
master_commander = null
return ..()
/obj/structure/spider/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
/obj/structure/spider/temperature_expose(exposed_temperature, exposed_volume)
..()
if(exposed_temperature > 300)
take_damage(5, BURN, 0, 0)