adds a brain damage button to prayer and player panel (#17047)

This commit is contained in:
MadmanMartian
2018-01-12 01:20:09 +00:00
committed by DamianX
parent 221e5c5aab
commit 1138d9e6da
3 changed files with 15 additions and 1 deletions

View File

@@ -2346,6 +2346,19 @@
else
to_chat(usr, "This target has already lost their butt in some unfortunate circumstance.")
else if(href_list["DealBrainDam"])
if(!check_rights(R_ADMIN|R_FUN))
return
var/mob/living/M = locate(href_list["DealBrainDam"])
if(!isliving(M))
to_chat(usr, "<span class = 'warning'>\The [M] is not of type /mob/living.</span>")
return
var/choice = input("How much brain damage would you like to deal to the subject?", "Instant Lobotomy", 1) as null|num
if(choice)
log_admin("[key_name(M)] was dealt [choice] amount of brain damage by [src.owner]")
message_admins("[key_name(M)] was dealt [choice] amount of brain damage by [src.owner]")
M.adjustBrainLoss(choice)
else if (href_list["PrayerReply"])
if(!check_rights(R_ADMIN))
return