mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Role datums one click antag (#19696)
* fixes one click antag - Need to test vox squad and such * tibltibltibltibl * Removes hitlers * turns out it do * Vox raiders is getting reworked, and syndie deathsquad already has a button elsewhere
This commit is contained in:
@@ -8,51 +8,57 @@
|
||||
|
||||
var/client/CLIENT = usr.client
|
||||
if(href_list["makeAntag"])
|
||||
if(!ticker.mode)
|
||||
to_chat(usr, "The round has not started yet,")
|
||||
return
|
||||
var/count = input("How many antags would you like to create?","Create Antagonists") as num|null
|
||||
if(!count)
|
||||
return
|
||||
switch(href_list["makeAntag"])
|
||||
if("1")
|
||||
log_admin("[key_name(usr)] has spawned a traitor.")
|
||||
if(!src.makeTraitors())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
log_admin("[key_name(usr)] has attempted to spawn [count] traitors.")
|
||||
var/success = makeAntag(/datum/role/traitor, null, count, FROM_PLAYERS)
|
||||
log_admin("[success] number of traitors made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of traitors made.</span>")
|
||||
if("2")
|
||||
log_admin("[key_name(usr)] has spawned a changeling.")
|
||||
if(!src.makeChanglings())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
log_admin("[key_name(usr)] has attempted to spawn [count] changelings.")
|
||||
var/success = makeAntag(/datum/role/changeling, null, count, FROM_PLAYERS)
|
||||
log_admin("[success] number of changelings made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of changelings made.</span>")
|
||||
if("3")
|
||||
log_admin("[key_name(usr)] has spawned revolutionaries.")
|
||||
if(!src.makeRevs())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
log_admin("[key_name(usr)] has attempted to spawn [count] revolutionaries.")
|
||||
var/success = makeAntag(null, /datum/faction/revolution, count, FROM_PLAYERS)
|
||||
log_admin("[success] number of revolutionaries made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of revolutionaries made.</span>")
|
||||
if("4")
|
||||
log_admin("[key_name(usr)] has spawned a cultists.")
|
||||
if(!src.makeCult())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
log_admin("[key_name(usr)] has attempted to spawn [count] cultists.")
|
||||
var/success = makeAntag(null, /datum/faction/cult, count , FROM_PLAYERS)
|
||||
log_admin("[success] number of cultists made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of cultists made..</span>")
|
||||
if("5")
|
||||
log_admin("[key_name(usr)] has spawned a malf AI.")
|
||||
if(!src.makeMalfAImode())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
log_admin("[key_name(usr)] has attempted to spawn [count] malfunctioning AI.")
|
||||
var/success = makeAntag(null, /datum/faction/malf, count, FROM_PLAYERS)
|
||||
log_admin("[success] number of angry computer screens made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of malf AIs made.</span>")
|
||||
if("6")
|
||||
log_admin("[key_name(usr)] has spawned a wizard.")
|
||||
if(!src.makeWizard())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
log_admin("[key_name(usr)] has attempted to spawn [count] wizards.")
|
||||
var/success = makeAntag(null, /datum/faction/wizard, count, FROM_GHOSTS)
|
||||
log_admin("[success] number of wizards made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of wizards made.</span>")
|
||||
if("7")
|
||||
log_admin("[key_name(usr)] has spawned a nuke team.")
|
||||
if(!src.makeNukeTeam())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
var/success = makeAntag(null, /datum/faction/syndicate/nuke_op, count, FROM_GHOSTS)
|
||||
log_admin("[success] number of nuclear operatives made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of nuclear operatives made.</span>")
|
||||
if("8")
|
||||
log_admin("[key_name(usr)] has spawned a count of vampires.")
|
||||
if(!src.makeVampires())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
log_admin("[key_name(usr)] has attempted to spawn [count] vampires.")
|
||||
var/success = makeAntag(/datum/role/vampire, null, count, FROM_PLAYERS)
|
||||
log_admin("[success] number of vampires made.")
|
||||
to_chat(usr, "<span class='notice'>[success] number of vampires made.</span>")
|
||||
if("9")
|
||||
log_admin("[key_name(usr)] has spawned aliens.")
|
||||
if(!src.makeAliens())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately, there were no candidates available.</span>")
|
||||
if("10")
|
||||
log_admin("[key_name(usr)] has spawned a death squad.")
|
||||
if(!makeDeathsquad())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately, there were no candidates available.</span>")
|
||||
if("11")
|
||||
log_admin("[key_name(usr)] has spawned vox raiders.")
|
||||
if(!src.makeVoxRaiders())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately, there weren't enough candidates available.</span>")
|
||||
|
||||
if("announce_laws" in href_list)
|
||||
var/mob/living/silicon/S = locate(href_list["mob"])
|
||||
|
||||
Reference in New Issue
Block a user