Adds a nugget smite for admins (#22637)

* new smites

* part dos

* just nugget

* msg update

* forgot to move this

* Review

* added logmsg

* Update code/modules/mob/living/carbon/human/human_death.dm

Tested and applied!

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

---------

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
Burzah
2023-10-09 20:00:29 +02:00
committed by GitHub
co-authored by Farie82
parent 216e47a717
commit b02ce067bf
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -2065,6 +2065,7 @@
ptypes += "Crew Traitor"
ptypes += "Floor Cluwne"
ptypes += "Shamebrero"
ptypes += "Nugget"
var/punishment = input(owner, "How would you like to smite [M]?", "Its good to be baaaad...", "") as null|anything in ptypes
if(!(punishment in ptypes))
return
@@ -2180,6 +2181,13 @@
var/obj/item/clothing/head/sombrero/shamebrero/S = new(H.loc)
H.equip_to_slot_or_del(S, SLOT_HUD_HEAD)
logmsg = "shamebrero"
if("Nugget")
H.Weaken(12 SECONDS, TRUE)
H.AdjustJitter(40 SECONDS)
to_chat(H, "<span class='danger'>You feel as if your limbs are being ripped from your body!</span>")
addtimer(CALLBACK(H, TYPE_PROC_REF(/mob/living/carbon/human, make_nugget)), 6 SECONDS)
logmsg = "nugget"
if(logmsg)
log_admin("[key_name(owner)] smited [key_name(M)] with: [logmsg]")
message_admins("[key_name_admin(owner)] smited [key_name_admin(M)] with: [logmsg]")