Fixes modular guns not self-recharging until first shot is fired (#22567)

fixes #22025 

- bugfix: "Modular energy guns with a reactor now self-recharge from
assembly, instead of only starting after the first shot is fired."

try_recharge is currently only triggered on fire and loops until charge
is full. this triggers it when a modular gun is completed to initiate
the recharging
This commit is contained in:
lew
2026-06-01 10:32:05 +00:00
committed by GitHub
parent cc6da2fd6a
commit 68c5b95f8b
2 changed files with 7 additions and 0 deletions
@@ -413,6 +413,7 @@
A.forceMove(an)
an.item = A
A.updatetype()
A.try_recharge()
A.pin = null
gun_mods = null
focusing_lens = null