Fancy lighting wave 2 - expands nonbinary colored lighting to more than just flashlights and lights
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user