Fixes weapon analyzer not detecting self-charging guns (#22027)

Fixes the R&D weapon analyzer always showing that modular guns can't
self-charge, even when they can.
This commit is contained in:
FenodyreeAv
2026-03-14 16:27:02 +00:00
committed by GitHub
parent b3762de674
commit 5c0e1c3b18
2 changed files with 59 additions and 1 deletions
+1 -1
View File
@@ -172,7 +172,7 @@
var/obj/item/gun/energy/E = gun
var/obj/projectile/P = new E.projectile_type
data["gun"]["max_shots"] = initial(E.max_shots)
data["gun"]["recharge"] = initial(E.self_recharge) ? "self recharging" : "not self recharging"
data["gun"]["recharge"] = E.self_recharge ? "self recharging" : "not self recharging" //Not initial because modular guns are not self charging at initialization
data["gun"]["recharge_time"] = initial(E.recharge_time)
data["gun"]["damage"] = initial(P.damage)
data["gun"]["damage_type"] = initial(P.damage_type)