mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Fixes rigged batons runtiming on hit. and also fixes syringes (#26223)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user