diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 55c78538d6..553891565c 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -42,10 +42,8 @@ if(rigged && amount > 0) explode() return 0 - - if(charge < amount) return 0 - charge = (charge - amount) - return 1 + charge = max(0, charge - amount) + return charge // recharge the cell /obj/item/weapon/cell/proc/give(var/amount)