[MIRROR] ethereals can now loop charging from lights [MDB IGNORE] (#11190)

* allows charging from lights to loop (#64548)

* ethereals can now loop charging from lights

Co-authored-by: MacBlaze1 <33578623+MacBlaze1@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-02-01 01:34:00 +00:00
committed by GitHub
co-authored by MacBlaze1
parent fa40b4f544
commit ab0dd1ddac
+2 -1
View File
@@ -499,7 +499,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)