mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user