mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 20:13:45 +01:00
Add one-click for event roles. (#27855)
* Add one-click for event roles. * Apply suggestions from code review Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Review fix. * Update code/modules/admin/verbs/one_click_antag.dm Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Update code/modules/admin/verbs/one_click_antag.dm Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Update code/modules/admin/verbs/one_click_antag.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> --------- Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
if(href_list["makeAntag"])
|
||||
switch(href_list["makeAntag"])
|
||||
if("1")
|
||||
log_admin("[key_name(usr)] has spawned a traitor.")
|
||||
log_admin("[key_name(usr)] has spawned traitors.")
|
||||
if(!makeTraitors())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
if("2")
|
||||
@@ -71,6 +71,10 @@
|
||||
log_admin("[key_name(usr)] has spawned mindflayers.")
|
||||
if(!makeMindflayers())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
if("9")
|
||||
log_admin("[key_name(usr)] has spawned event characters.")
|
||||
if(!makeEventCharacters())
|
||||
to_chat(usr, "<span class='warning'>Unfortunately there weren't enough candidates available.</span>")
|
||||
|
||||
else if(href_list["dbsearchckey"] || href_list["dbsearchadmin"] || href_list["dbsearchip"] || href_list["dbsearchcid"] || href_list["dbsearchbantype"])
|
||||
var/adminckey = href_list["dbsearchadmin"]
|
||||
|
||||
Reference in New Issue
Block a user