From 065ac1997bf6e1fdba54e441e5a3aed1550e970e Mon Sep 17 00:00:00 2001 From: Verkister Date: Mon, 12 Oct 2020 12:27:51 +0300 Subject: [PATCH] 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. --- code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm index e84970c8242..563f8c0b65c 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm @@ -243,7 +243,7 @@ to_chat(user, "You finish off \the [target.name], and gain some charge!") 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