From 05aa8540ca0805c4d91f7c15fa599133511f440d Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Wed, 14 Feb 2018 22:26:58 -0600 Subject: [PATCH] POLARIS: Extend mob 'glow' capabilities Now you can alter the other set_light variables by setting them on the mob (yay antiphoton effects that follow you) --- code/modules/mob/living/life.dm | 2 +- code/modules/mob/living/living_defines.dm | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm index c8250088377..fc32e508884 100644 --- a/code/modules/mob/living/life.dm +++ b/code/modules/mob/living/life.dm @@ -207,7 +207,7 @@ return TRUE else if(glow_toggle) - set_light(2, l_color = glow_color) //2 is PDA brightness, so neutral in terms of balance + set_light(glow_range, glow_intensity, glow_color) else set_light(0) diff --git a/code/modules/mob/living/living_defines.dm b/code/modules/mob/living/living_defines.dm index a7f85be9a82..b36cd29d21c 100644 --- a/code/modules/mob/living/living_defines.dm +++ b/code/modules/mob/living/living_defines.dm @@ -47,8 +47,10 @@ var/evasion = 0 // Makes attacks harder to land. Negative numbers increase hit chance. var/force_max_speed = 0 // If 1, the mob runs extremely fast and cannot be slowed. - + var/image/dsoverlay = null //Overlay used for darksight eye adjustments var/glow_toggle = 0 // If they're glowing! + var/glow_range = 2 + var/glow_intensity = null var/glow_color = "#FFFFFF" // The color they're glowing!