Skip to content

Commit

Permalink
[MIRROR] Fixed new charger power not working [MDB IGNORE] (#4544)
Browse files Browse the repository at this point in the history
Fixed new charger power not working

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: carlarctg <[email protected]>
Co-authored-by: Bloop <[email protected]>
Co-authored-by: Iajret <[email protected]>
  • Loading branch information
5 people authored Jul 18, 2024
1 parent 1bd2dc2 commit 81da0dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/modules/research/experimentor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 81da0dc

Please sign in to comment.