From 1af7999dbd607d81bab2ce1e81d44ef0773244ce Mon Sep 17 00:00:00 2001 From: CornMyCob Date: Mon, 15 Apr 2019 20:45:16 +0100 Subject: [PATCH] lighting fix --- code/game/turfs/simulated/floor/asteroid.dm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/code/game/turfs/simulated/floor/asteroid.dm b/code/game/turfs/simulated/floor/asteroid.dm index 65fc8fb9ba3..92fd45dac4a 100644 --- a/code/game/turfs/simulated/floor/asteroid.dm +++ b/code/game/turfs/simulated/floor/asteroid.dm @@ -106,11 +106,16 @@ oxygen = 0 nitrogen = 0 -/turf/simulated/floor/plating/asteroid/basalt/New() - ..() - switch(icon_state) - if("basalt1", "basalt2", "basalt3") //5 and 9 are too dark to glow and make the amount of glows in tunnels too high - set_light(1, 1) //this is basically a 3.75% chance that a basalt floor glows +/turf/simulated/floor/plating/asteroid/basalt/Initialize() + . = ..() + set_basalt_light(src) + +/proc/set_basalt_light(turf/simulated/floor/B) + switch(B.icon_state) + if("basalt1", "basalt2", "basalt3") + B.set_light(2, 0.6, LIGHT_COLOR_LAVA) //more light + if("basalt5", "basalt9") + B.set_light(1.4, 0.6, LIGHT_COLOR_LAVA) //barely anything! /turf/simulated/floor/plating/asteroid/basalt/gets_dug() if(!dug)