mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
Make ships use MOVABLE_LIGHT lighting
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user