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
+2 -1
View File
@@ -8,6 +8,7 @@
w_class = WEIGHT_CLASS_TINY
throw_speed = 1
throw_range = 7
cares_about_temperature = TRUE
var/state
var/datum/gas_mixture/air_contents = null
@@ -52,7 +53,7 @@
burst()
return ..()
/obj/item/latexballon/temperature_expose(datum/gas_mixture/air, temperature, volume)
/obj/item/latexballon/temperature_expose(temperature, volume)
..()
if(temperature > T0C+100)
burst()
@@ -125,6 +125,7 @@ GLOBAL_LIST_INIT(xeno_recipes, list (
icon_state = "sheet-wetleather"
item_state = "sheet-leather"
origin_tech = ""
cares_about_temperature = TRUE
var/wetness = 30 //Reduced when exposed to high temperautres
var/drying_threshold_temperature = 500 //Kelvin to start drying
@@ -327,7 +328,7 @@ GLOBAL_LIST_INIT(sinew_recipes, list (
qdel(src)
//Step three - drying
/obj/item/stack/sheet/wetleather/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
/obj/item/stack/sheet/wetleather/temperature_expose(exposed_temperature, exposed_volume)
..()
if(exposed_temperature >= drying_threshold_temperature)
wetness--