Offmap Tweaks

This commit is contained in:
Casey
2021-12-02 19:56:25 -05:00
committed by Chompstation Bot
parent 5043070c9d
commit fe8c4753eb
65 changed files with 27730 additions and 118 deletions

View File

@@ -23,7 +23,7 @@
/// For showing to the pilot of the ship, so they see the 'real' appearance, despite others seeing the unknown ones
var/image/real_appearance
light_system = MOVABLE_LIGHT
//light_system = MOVABLE_LIGHT
light_on = FALSE
/obj/effect/overmap/Initialize()

View File

@@ -66,7 +66,7 @@
else
data["status"] = "OK"
var/list/contacts = list()
for(var/obj/effect/overmap/O in view(7,linked))
for(var/obj/effect/overmap/O in range(7,linked))
if(linked == O)
continue
if(!O.scannable)
@@ -125,10 +125,9 @@
return
if(sensors && sensors.use_power && sensors.powered())
var/sensor_range = round(sensors.range*1.5) + 1
linked.set_light_range(sensor_range + 0.5)
linked.set_light_on(TRUE)
linked.set_light(sensor_range + 0.5)
else
linked.set_light_on(FALSE)
linked.set_light(0)
/obj/machinery/shipsensors
name = "sensors suite"