mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 05:27:39 +01:00
new object-based lighting system
Signed-off-by: Mloc <colmohici@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
density = 1
|
||||
anchored = 1
|
||||
animate_movement=1
|
||||
luminosity = 3
|
||||
light_range = 3
|
||||
|
||||
can_buckle = 1
|
||||
buckle_movable = 1
|
||||
@@ -181,13 +181,13 @@
|
||||
if(powered && cell.charge < charge_use)
|
||||
return 0
|
||||
on = 1
|
||||
luminosity = initial(luminosity)
|
||||
set_light(initial(light_range))
|
||||
update_icon()
|
||||
return 1
|
||||
|
||||
/obj/vehicle/proc/turn_off()
|
||||
on = 0
|
||||
luminosity = 0
|
||||
set_light(0)
|
||||
update_icon()
|
||||
|
||||
/obj/vehicle/proc/Emag(mob/user as mob)
|
||||
@@ -367,4 +367,4 @@
|
||||
if(prob(10))
|
||||
new /obj/effect/decal/cleanable/blood/oil(src.loc)
|
||||
spawn(1) healthcheck()
|
||||
return 1
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user