From 2dca2ad4248df121dfe032a7b6cb47da2e66b58d Mon Sep 17 00:00:00 2001 From: Mark van Alphen Date: Sat, 30 Mar 2019 06:02:54 +0100 Subject: [PATCH] Fix temperature issues in caves --- code/game/turfs/simulated/floor/asteroid.dm | 5 ++++- code/game/turfs/turf.dm | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/game/turfs/simulated/floor/asteroid.dm b/code/game/turfs/simulated/floor/asteroid.dm index e1a122609c5..27a5ae818e0 100644 --- a/code/game/turfs/simulated/floor/asteroid.dm +++ b/code/game/turfs/simulated/floor/asteroid.dm @@ -159,6 +159,9 @@ data_having_type = /turf/simulated/floor/plating/asteroid/airless/cave/volcanic/has_data turf_type = /turf/simulated/floor/plating/asteroid/basalt/lava_land_surface + oxygen = 14 + nitrogen = 23 + temperature = 300 /turf/simulated/floor/plating/asteroid/airless/cave/volcanic/has_data //subtype for producing a tunnel with given data has_data = TRUE @@ -249,7 +252,7 @@ SpawnFlora(T) SpawnMonster(T) - T.ChangeTurf(turf_type,FALSE,FALSE) + T.ChangeTurf(turf_type,FALSE,FALSE,TRUE) /turf/simulated/floor/plating/asteroid/airless/cave/proc/SpawnMonster(turf/T) if(prob(30)) diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 954a4641036..c9b385d7b67 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -174,7 +174,7 @@ return ChangeTurf(path) //Creates a new turf -/turf/proc/ChangeTurf(path, defer_change = FALSE, keep_icon = TRUE) +/turf/proc/ChangeTurf(path, defer_change = FALSE, keep_icon = TRUE, ignore_air = FALSE) if(!path) return if(!use_preloader && path == type) // Don't no-op if the map loader requires it to be reconstructed @@ -193,7 +193,7 @@ SSair.remove_from_active(src) var/turf/W = new path(src) if(!defer_change) - W.AfterChange() + W.AfterChange(ignore_air) W.blueprint_data = old_blueprint_data