Skip to content

Commit

Permalink
Fixed new charger power not working (tgstation#84897)
Browse files Browse the repository at this point in the history
## About The Pull Request

Fixed new charger power not working

## Why It's Good For The Game

I think bugs are bad for the game sometimes

## Changelog

:cl:
fix: Fixed new charger power not working fior strange objects
/:cl:
  • Loading branch information
carlarctg authored Jul 13, 2024
1 parent f552930 commit 0863a5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/research/experimentor.dm
Original file line number Diff line number Diff line change
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 0863a5d

Please sign in to comment.