mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Fixes space vines dying instantly to gas movement (#56567)
I mistakenly copied over space vine code in #55604, and assumed that the default mutation had some sort of cutoff for heat. I was wrong. Fixes #56552
This commit is contained in:
@@ -574,15 +574,14 @@
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/spacevine/should_atmos_process(datum/gas_mixture/air, exposed_temperature)
|
||||
return TRUE
|
||||
return exposed_temperature > FIRE_MINIMUM_TEMPERATURE_TO_SPREAD //if you're cold you're safe
|
||||
|
||||
/obj/structure/spacevine/atmos_expose(datum/gas_mixture/air, exposed_temperature)
|
||||
var/volume = air.return_volume()
|
||||
var/override = 0
|
||||
for(var/datum/spacevine_mutation/SM in mutations)
|
||||
override += SM.process_temperature(src, exposed_temperature, volume)
|
||||
if(!override)
|
||||
qdel(src)
|
||||
if(SM.process_temperature(src, exposed_temperature, volume)) //If it's ever true we're safe
|
||||
return
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/spacevine/CanAllowThrough(atom/movable/mover, turf/target)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user