Merge pull request #5190 from Kyep/vamp_dethrall

Adds admin button to remove vamp thrall status
This commit is contained in:
Fox McCloud
2016-07-26 06:28:37 -04:00
committed by GitHub

View File

@@ -276,11 +276,10 @@
text += "<br><b>enthralled</b>"
text = "<i><b>[text]</b></i>: "
if(src in ticker.mode.vampire_enthralled)
text += "<b><font color='#FF0000'>YES</font></b>|no"
text += "<b><font color='#FF0000'>YES</font></b>|<a href='?src=\ref[src];vampthrall=clear'>no</a>"
else
text += "yes|<font color='#00FF00'>NO</font></b>"
sections["vampire"] = text
@@ -948,6 +947,13 @@
log_admin("[key_name(usr)] has automatically forged objectives for [key_name(current)]")
message_admins("[key_name_admin(usr)] has automatically forged objectives for [key_name_admin(current)]")
else if(href_list["vampthrall"])
switch(href_list["vampthrall"])
if("clear")
if(src in ticker.mode.vampire_enthralled)
ticker.mode.remove_vampire_mind(src)
log_admin("[key_name(usr)] has de-vampthralled [key_name(current)]")
message_admins("[key_name_admin(usr)] has de-vampthralled [key_name_admin(current)]")
else if(href_list["nuclear"])
var/mob/living/carbon/human/H = current