From 9619b867ab0c7cf97f2b5554517614030d941d62 Mon Sep 17 00:00:00 2001 From: Markolie Date: Sat, 21 Jan 2017 00:44:10 +0100 Subject: [PATCH] Implement Fox's changes for tinlux --- code/modules/reagents/chemistry/reagents/food.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/chemistry/reagents/food.dm b/code/modules/reagents/chemistry/reagents/food.dm index 00085a015c1..2c0672b7883 100644 --- a/code/modules/reagents/chemistry/reagents/food.dm +++ b/code/modules/reagents/chemistry/reagents/food.dm @@ -857,9 +857,13 @@ id = "tinlux" description = "A stimulating ichor which causes luminescent fungi to grow on the skin. " color = "#b5a213" + var/light_activated = 0 -/datum/reagent/consumable/tinlux/reaction_mob(mob/living/M) - M.set_light(2) +/datum/reagent/consumable/tinlux/on_mob_life(mob/living/M) + if(!light_activated) + M.set_light(2) + light_activated = 1 + ..() /datum/reagent/consumable/tinlux/on_mob_delete(mob/living/M) M.set_light(0)