Fixes dogborg cell lick recharge.

It was using the cell's maxcharge instead of actual charge, meaning that even empty cells would give charge and overcharged cells were completely ignored.
This commit is contained in:
Verkister
2020-10-12 12:27:51 +03:00
committed by GitHub
parent af934395e1
commit 065ac1997b
@@ -243,7 +243,7 @@
to_chat(user, "<span class='notice'>You finish off \the [target.name], and gain some charge!</span>")
var/mob/living/silicon/robot/R = user
var/obj/item/weapon/cell/C = target
R.cell.charge += C.maxcharge / 3
R.cell.charge += C.charge / 3
water.use_charge(5)
qdel(target)
return