From 81da0dcf95a17df83d549777c824a39de8862ff5 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:51:36 +0300 Subject: [PATCH] [MIRROR] Fixed new charger power not working [MDB IGNORE] (#4544) Fixed new charger power not working Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: carlarctg <53100513+carlarctg@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Iajret --- code/modules/research/experimentor.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm index 1a3c3c96c06..8f7787c4394 100644 --- a/code/modules/research/experimentor.dm +++ b/code/modules/research/experimentor.dm @@ -17,7 +17,7 @@ #define EFFECT_PROB_VERYHIGH 95 #define FAIL 8 -/obj/machinery/rnd/experimentor//NOVA EDIT - ICON OVERRIDDEN BY AESTHETICS - SEE MODULE +/obj/machinery/rnd/experimentor name = "\improper E.X.P.E.R.I-MENTOR" desc = "A \"replacement\" for the destructive analyzer with a slight tendency to catastrophically fail." icon = 'icons/obj/machines/experimentator.dmi' @@ -776,7 +776,10 @@ if(!length(chargeable_batteries)) to_chat(user, span_notice("You have a strange feeling for a moment, but then it passes.")) return - for(var/obj/item/stock_parts/power_store/to_charge as anything in recharges) + for(var/obj/item/stock_parts/power_store/to_charge as anything in chargeable_batteries) + if(!recharges) + return + recharges-- to_charge = pick(chargeable_batteries) to_charge.charge = to_charge.maxcharge // The device powered by the cell is assumed to be its location.