Fix temperature issues in caves

This commit is contained in:
Mark van Alphen
2019-03-30 06:02:54 +01:00
parent 7149dd6aad
commit 2dca2ad424
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -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))
+2 -2
View File
@@ -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