Make ships use MOVABLE_LIGHT lighting

This commit is contained in:
Aronai Sieyes
2021-06-25 11:44:37 -04:00
parent 0e40cda072
commit d06a7668c1
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -14,6 +14,9 @@
var/skybox_pixel_y //Shift from lower left corner of skybox
var/image/cached_skybox_image //Cachey
light_system = MOVABLE_LIGHT
light_on = FALSE
//Overlay of how this object should look on other skyboxes
/obj/effect/overmap/proc/get_skybox_representation()
if(!cached_skybox_image)
@@ -55,7 +58,6 @@
return INITIALIZE_HINT_QDEL
if(known)
//layer = ABOVE_LIGHTING_LAYER
plane = PLANE_LIGHTING_ABOVE
for(var/obj/machinery/computer/ship/helm/H in global.machines)
H.get_known_sectors()
@@ -118,9 +118,10 @@
return
if(sensors && sensors.use_power && sensors.powered())
var/sensor_range = round(sensors.range*1.5) + 1
linked.set_light(sensor_range + 0.5, 4)
linked.set_light_range(sensor_range + 0.5)
linked.set_light_on(TRUE)
else
linked.set_light(0)
linked.set_light_on(FALSE)
/obj/machinery/shipsensors
name = "sensors suite"