Port of mob glowing mechanic

This commit is contained in:
Arokha Sieyes
2018-01-24 02:01:05 -05:00
parent 8ec8b89e10
commit 04d16a01cc
2 changed files with 6 additions and 0 deletions

View File

@@ -205,6 +205,9 @@
set_light(min(round(fire_stacks), 3), round(fire_stacks), l_color = "#FF9933") set_light(min(round(fire_stacks), 3), round(fire_stacks), l_color = "#FF9933")
return TRUE return TRUE
else if(glow_toggle)
set_light(2, l_color = glow_color) //2 is PDA brightness, so neutral in terms of balance
else else
set_light(0) set_light(0)
return FALSE return FALSE

View File

@@ -47,3 +47,6 @@
var/evasion = 0 // Makes attacks harder to land. Each number equals 15% more likely to miss. Negative numbers increase hit chance. var/evasion = 0 // Makes attacks harder to land. Each number equals 15% more likely to miss. Negative numbers increase hit chance.
var/force_max_speed = 0 // If 1, the mob runs extremely fast and cannot be slowed. var/force_max_speed = 0 // If 1, the mob runs extremely fast and cannot be slowed.
var/glow_toggle = 0 // If they're glowing!
var/glow_color = "#FFFFFF" // The color they're glowing!