Merge pull request #10754 from VOREStation/Arokha/shiplight

2 Overmap Fixes
This commit is contained in:
Novacat
2021-06-25 14:24:58 -04:00
committed by Chompstation Bot
parent ee2a4bbc77
commit 9dcda80a06
7 changed files with 13 additions and 8 deletions

View File

@@ -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"

View File

@@ -16,6 +16,7 @@
dir = NORTH
icon_state = "ship"
appearance_flags = TILE_BOUND|KEEP_TOGETHER|LONG_GLIDE //VOREStation Edit
light_power = 4
var/moving_state = "ship_moving"
var/vessel_mass = 10000 //tonnes, arbitrary number, affects acceleration provided by engines