Fancy lighting wave 2 - expands nonbinary colored lighting to more than just flashlights and lights

This commit is contained in:
deathride58
2018-11-16 21:12:07 -05:00
parent d1b9dc2e08
commit 621b0675e9
13 changed files with 21 additions and 12 deletions
+4 -2
View File
@@ -49,6 +49,8 @@ GLOBAL_LIST_EMPTY(PDAs)
var/scanmode = PDA_SCANNER_NONE
var/fon = FALSE //Is the flashlight function on?
var/f_lum = 2.3 //Luminosity for the flashlight function
var/f_pow = 0.6 //Power for the flashlight function
var/f_col = "#FFCC66" //Color for the flashlight function
var/silent = FALSE //To beep or not to beep, that is the question
var/toff = FALSE //If TRUE, messenger disabled
var/tnote = null //Current Texts
@@ -102,7 +104,7 @@ GLOBAL_LIST_EMPTY(PDAs)
/obj/item/pda/Initialize()
. = ..()
if(fon)
set_light(f_lum)
set_light(f_lum, f_pow, flash_color)
GLOB.PDAs += src
if(default_cartridge)
@@ -739,7 +741,7 @@ GLOBAL_LIST_EMPTY(PDAs)
set_light(0)
else if(f_lum)
fon = TRUE
set_light(f_lum)
set_light(f_lum, f_pow, f_color)
update_icon()
/obj/item/pda/proc/remove_pen()