mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
/datum/admins/proc/quick_authentic_nif()
|
|
set category = "Fun.Add Nif"
|
|
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 = tgui_input_list(usr, "Pick a mob with a player","Quick Authentic NIF", GLOB.player_list)
|
|
|
|
if(!H)
|
|
return
|
|
|
|
if(!istype(H))
|
|
to_chat(usr,span_warning("That mob type ([H.type]) doesn't support NIFs, sorry."))
|
|
return
|
|
|
|
if(!H.get_organ(BP_HEAD))
|
|
to_chat(usr,span_warning("Target is unsuitable."))
|
|
return
|
|
|
|
if(H.nif)
|
|
to_chat(usr,span_warning("Target already has a NIF."))
|
|
return
|
|
|
|
if(H.species.flags & NO_DNA)
|
|
new /obj/item/nif/authenticbio(H)
|
|
else
|
|
new /obj/item/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!
|