From 19e56abfc0bbdf92c62375cbf6f1916c8eaedd7e Mon Sep 17 00:00:00 2001 From: MacBlaze1 <33578623+MacBlaze1@users.noreply.github.com> Date: Mon, 31 Jan 2022 19:26:35 -0500 Subject: [PATCH] allows charging from lights to loop (#64548) --- code/modules/power/lighting/light.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/power/lighting/light.dm b/code/modules/power/lighting/light.dm index 9cd6e95f818..e17a015cf1d 100644 --- a/code/modules/power/lighting/light.dm +++ b/code/modules/power/lighting/light.dm @@ -456,7 +456,8 @@ return to_chat(electrician, span_notice("You start channeling some power through the [fitting] into your body.")) stomach.drain_time = world.time + LIGHT_DRAIN_TIME - if(do_after(user, LIGHT_DRAIN_TIME, target = src)) + while(do_after(user, LIGHT_DRAIN_TIME, target = src)) + stomach.drain_time = world.time + LIGHT_DRAIN_TIME if(istype(stomach)) to_chat(electrician, span_notice("You receive some charge from the [fitting].")) stomach.adjust_charge(LIGHT_POWER_GAIN)