mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-27 23:16:19 +01:00
Fixes null gases and air runtimes that plague layenia
This commit is contained in:
@@ -242,6 +242,13 @@
|
|||||||
//testing("Active turf found. Return value of compare(): [is_active]")
|
//testing("Active turf found. Return value of compare(): [is_active]")
|
||||||
excited = TRUE
|
excited = TRUE
|
||||||
SSair.active_turfs |= src
|
SSair.active_turfs |= src
|
||||||
|
//Issues with air runtiming and you don't know where? Uncomment the following code.
|
||||||
|
/*
|
||||||
|
if(air == null)
|
||||||
|
log_game("Bad air from [src] at [src.loc]")
|
||||||
|
if(enemy_air == null)
|
||||||
|
log_game("Bad air from [enemy_tile] at [enemy_tile.loc]")
|
||||||
|
*/
|
||||||
|
|
||||||
/turf/open/proc/GetHeatCapacity()
|
/turf/open/proc/GetHeatCapacity()
|
||||||
. = air.heat_capacity()
|
. = air.heat_capacity()
|
||||||
|
|||||||
@@ -388,17 +388,15 @@
|
|||||||
//light_color = LIGHT_COLOR_WHITE
|
//light_color = LIGHT_COLOR_WHITE
|
||||||
|
|
||||||
/turf/open/floor/plating/asteroid/layenia/Initialize()
|
/turf/open/floor/plating/asteroid/layenia/Initialize()
|
||||||
|
. = ..()
|
||||||
if(prob(50))
|
if(prob(50))
|
||||||
icon_state = "layenia[rand(0,4)]"
|
icon_state = "layenia[rand(0,4)]"
|
||||||
|
set_layenia_light(src)
|
||||||
|
|
||||||
/turf/open/floor/plating/asteroid/layenia/garden
|
/turf/open/floor/plating/asteroid/layenia/garden
|
||||||
initial_gas_mix = OPENTURF_DEFAULT_ATMOS
|
initial_gas_mix = OPENTURF_DEFAULT_ATMOS
|
||||||
planetary_atmos = TRUE
|
planetary_atmos = TRUE
|
||||||
|
|
||||||
/turf/open/floor/plating/asteroid/layenia/Initialize()
|
|
||||||
. = ..()
|
|
||||||
set_layenia_light(src)
|
|
||||||
|
|
||||||
/proc/set_layenia_light(turf/open/floor/B)
|
/proc/set_layenia_light(turf/open/floor/B)
|
||||||
switch(B.icon_state)
|
switch(B.icon_state)
|
||||||
if("layenia3", "layenia4")
|
if("layenia3", "layenia4")
|
||||||
|
|||||||
@@ -527,9 +527,9 @@
|
|||||||
/turf/closed/mineral/layenia
|
/turf/closed/mineral/layenia
|
||||||
name = "Crimson rock"
|
name = "Crimson rock"
|
||||||
icon = 'icons/turf/mining.dmi'
|
icon = 'icons/turf/mining.dmi'
|
||||||
|
smooth_icon = 'icons/turf/layeniarocks.dmi'
|
||||||
icon_state = "layenia"
|
icon_state = "layenia"
|
||||||
smooth = SMOOTH_MORE|SMOOTH_BORDER
|
smooth = SMOOTH_MORE|SMOOTH_BORDER
|
||||||
smooth_icon = 'icons/turf/layeniarocks.dmi'
|
|
||||||
canSmoothWith = null
|
canSmoothWith = null
|
||||||
baseturfs = /turf/open/floor/plating/asteroid/layenia
|
baseturfs = /turf/open/floor/plating/asteroid/layenia
|
||||||
initial_gas_mix = FROZEN_ATMOS
|
initial_gas_mix = FROZEN_ATMOS
|
||||||
|
|||||||
Reference in New Issue
Block a user