Fixes rigged batons runtiming on hit. and also fixes syringes (#26223)

This commit is contained in:
1080pCat
2024-07-16 08:00:43 +10:00
committed by GitHub
parent f8066409bb
commit e32843e544
2 changed files with 2 additions and 4 deletions
+1 -4
View File
@@ -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 ..()