Fixes cyborg energy weapons costing twice as much as intended

This commit is contained in:
Kyep
2020-03-04 02:25:36 -08:00
parent fe396a40c9
commit bd85adb11c
+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)