diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index ca4e38529b5..5885c3a39ae 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -110,6 +110,7 @@ cell = null turned_on = FALSE update_icon(UPDATE_ICON_STATE) + return if(cell.charge < (hitcost)) // If after the deduction the baton doesn't have enough charge for a stun hit it turns off. turned_on = FALSE update_icon() diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index a1c774be631..21205d03a3d 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -99,15 +99,12 @@ if(istype(W, /obj/item/reagent_containers/syringe)) var/obj/item/reagent_containers/syringe/S = W - to_chat(user, "You inject the solution into the power cell.") - if(S.reagents.has_reagent("plasma", 5) || S.reagents.has_reagent("plasma_dust", 5)) - + to_chat(user, "You inject the solution into the power cell.") rigged = TRUE log_admin("LOG: [key_name(user)] injected a power cell with plasma, rigging it to explode.") message_admins("LOG: [key_name_admin(user)] injected a power cell with plasma, rigging it to explode.") - S.reagents.clear_reagents() else return ..()