mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
[SEMI-MODULAR][READY] Recreates the admin verb 'Create Antagonist(s)' (#5473)
* Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Here we go This, surprisingly, only took like six hours of coding. * whoops forgot to comment out the debug code that helped my find out two hours of my life was wasted; also, forgot the trailing newline. * you're ugly and I hate you * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * code cleanup, three more antag types * more code cleanup * don't give antag to people who've had it removed * Automatic changelog compile [ci skip] * Automatic changelog compile [ci skip] * Fixes the possibility for some security personnel to roll antag. Most notably the Blueshield. * haha, we gucci now * why are you in here Co-authored-by: Changelogs <action@github.com> Co-authored-by: Matthew <matthew@tfaluc.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
co-authored by
Changelogs
Matthew
Gandalf
parent
15cbd4c2cf
commit
f3c68d723d
@@ -47,6 +47,48 @@
|
||||
to_chat(usr, "<span class='danger'>ERROR: Mob not found.</span>", confidential = TRUE)
|
||||
return
|
||||
cmd_show_exp_panel(M.client)
|
||||
|
||||
// SKYRAT EDIT BEGIN -- ONE CLICK ANTAG
|
||||
else if(href_list["makeAntag"])
|
||||
|
||||
message_admins("[key_name_admin(usr)] is attempting to make [href_list["makeAntag"]]")
|
||||
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
if (!SSticker.mode)
|
||||
to_chat(usr, "<span class='danger'>Not until the round starts!</span>", confidential = TRUE)
|
||||
return
|
||||
|
||||
var/opt = null
|
||||
switch(href_list["makeAntag"])
|
||||
if(ROLE_BLOB)
|
||||
opt = input("Set Blob Resource Gain Rate","Set Resource Rate",1) as num|null
|
||||
if(ROLE_TRAITOR)
|
||||
opt = input("How Many", ROLE_TRAITOR, 1) as num|null
|
||||
if(ROLE_CHANGELING)
|
||||
opt = input("How Many", ROLE_CHANGELING, 1) as num|null
|
||||
if(ROLE_CULTIST)
|
||||
opt = input("How Many", ROLE_CULTIST, 2) as num|null
|
||||
if(ROLE_HERETIC)
|
||||
opt = input("How Many", ROLE_HERETIC, 2) as num|null
|
||||
if(ROLE_MONKEY)
|
||||
opt = input("How Many", ROLE_MONKEY, 1) as num|null
|
||||
if(ROLE_REV)
|
||||
opt = input("How Many", ROLE_REV, 1) as num|null
|
||||
if(ROLE_OPERATIVE)
|
||||
opt = input("How Many", ROLE_OPERATIVE, 3) as num|null
|
||||
if(ROLE_FAMILIES)
|
||||
opt = input("How Many", ROLE_FAMILIES, 2) as num|null
|
||||
if(ROLE_INTERNAL_AFFAIRS)
|
||||
opt = input("How Many", ROLE_INTERNAL_AFFAIRS, 1) as num|null
|
||||
if(ROLE_BROTHER)
|
||||
opt = input("How Many", ROLE_BROTHER, 2) as num|null
|
||||
if(src.make_antag(href_list["makeAntag"], opt))
|
||||
message_admins("[key_name_admin(usr)] created '[href_list["makeAntag"]]' with a parameter of '[opt]'.")
|
||||
else message_admins("[key_name_admin(usr)] FAILED to create '[href_list["makeAntag"]]' with a parameter of '[opt]'.")
|
||||
// SKYRAT EDIT END -- ONE CLICK ANTAG
|
||||
|
||||
else if(href_list["forceevent"])
|
||||
if(!check_rights(R_FUN))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user