From f382a1d3652a7853e1f5e76780eee280316c218c Mon Sep 17 00:00:00 2001 From: Razgriz Date: Wed, 15 Jul 2020 21:04:02 -0700 Subject: [PATCH] Add quick authentic nif --- code/modules/admin/verbs/debug_ch.dm | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 code/modules/admin/verbs/debug_ch.dm diff --git a/code/modules/admin/verbs/debug_ch.dm b/code/modules/admin/verbs/debug_ch.dm new file mode 100644 index 0000000000..b33604b7ea --- /dev/null +++ b/code/modules/admin/verbs/debug_ch.dm @@ -0,0 +1,32 @@ +/datum/admins/proc/quick_authentic_nif() + set category = "Fun" + set name = "Quick Auth NIF" + set desc = "Spawns an authentic NIF into someone in quick-implant mode." + + if(!check_rights(R_ADMIN|R_EVENT|R_DEBUG)) //CHOMPStation Edit TFF 24/4/19: Allow Devs to use Quick-NIF verb. + return + + var/mob/living/carbon/human/H = input("Pick a mob with a player","Quick Authentic NIF") as null|anything in player_list + + if(!H) + return + + if(!istype(H)) + to_chat(usr,"That mob type ([H.type]) doesn't support NIFs, sorry.") + return + + if(!H.get_organ(BP_HEAD)) + to_chat(usr,"Target is unsuitable.") + return + + if(H.nif) + to_chat(usr,"Target already has a NIF.") + return + + if(H.species.flags & NO_SCAN) + new /obj/item/device/nif/authenticbio(H) + else + new /obj/item/device/nif/authentic(H) + + log_and_message_admins("[key_name(src)] Quick Authentic NIF'd [H.real_name].") + feedback_add_details("admin_verb","QANIF") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!