Merge pull request #13073 from Kyep/cyborg_gun_double_charging_fix

Fixes cyborg energy weapons costing twice as much as intended
This commit is contained in:
variableundefined
2020-03-05 18:30:51 -05:00
committed by GitHub
+3
View File
@@ -193,6 +193,9 @@
. = ..()
/obj/item/gun/energy/proc/robocharge()
if(cell.charge == cell.maxcharge)
// No point in recharging a weapon's cell that is already at 100%. That would just waste borg cell power for no reason.
return
if(isrobot(loc))
var/mob/living/silicon/robot/R = loc
if(R && R.cell)