mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Charger items fix (#93754)
## About The Pull Request Items(i.e yellow stabilized/regenerative extract, glowshroom cap, voltaic cybernetic heart) now recharges cells of mob equipment as they are supposed. ## Why It's Good For The Game After [(this)](https://github.com/tgstation/tgstation/pull/92987) PR was merged items, that were supposed to recharge cells in items, stopped functioning due to change in code of how batteries inside items recharge. This PR supposed to fix the issue.
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
return
|
||||
|
||||
var/list/batteries = list()
|
||||
for(var/obj/item/stock_parts/power_store/cell in owner.get_all_cells())
|
||||
for(var/obj/item/stock_parts/power_store/cell in assoc_to_values(owner.get_all_cells()))
|
||||
if(cell.used_charge())
|
||||
batteries += cell
|
||||
|
||||
|
||||
Reference in New Issue
Block a user