allows charging from lights to loop (#64548)

This commit is contained in:
MacBlaze1
2022-01-31 19:26:35 -05:00
committed by GitHub
parent 1def1d54e4
commit 19e56abfc0
+2 -1
View File
@@ -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)