mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Antag Panel / Check antagonists Refactor (#34236)
* Antag Panel & Friends Refactor * Prettfying * Removes abduction also blob from default configs. * Ninja fixes * Ninjafix * First draft of the new check_antags * I love coding without compiler * Yes * Fixes * Check_antags part 2 * Fixes and cleanup * Okay should be good now. * Adds simple no move & no tc syndie for events * Integrates toggle objective pr * Why i even bother. * Offer mob shows all antags * Some minor visual stuff * Proper name for the helper
This commit is contained in:
@@ -1888,10 +1888,24 @@
|
||||
|
||||
var/mob/M = locate(href_list["traitor"])
|
||||
if(!ismob(M))
|
||||
to_chat(usr, "This can only be used on instances of type /mob.")
|
||||
var/datum/mind/D = M
|
||||
if(!istype(D))
|
||||
to_chat(usr, "This can only be used on instances of type /mob and /mind")
|
||||
return
|
||||
else
|
||||
D.traitor_panel()
|
||||
else
|
||||
show_traitor_panel(M)
|
||||
|
||||
else if(href_list["initmind"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
show_traitor_panel(M)
|
||||
|
||||
var/mob/M = locate(href_list["initmind"])
|
||||
if(!ismob(M) || M.mind)
|
||||
to_chat(usr, "This can only be used on instances on mindless mobs")
|
||||
return
|
||||
M.mind_initialize()
|
||||
|
||||
else if(href_list["create_object"])
|
||||
if(!check_rights(R_SPAWN))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user