mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Admin create antagonist/re-roll antagonist (#4971)
## About The Pull Request - Adds a prompt when an admin is removing someone's antagonist datum if they would like to re-roll for a new antagonist to replace them - Brings back the Create Antagonist verb - When creating an antagonist, it tells the admin who was selected ## Why It's Good For The Game Admin quality of life ## Changelog 🆑 LT3 admin: Admin button in the traitor panel to automatically re-roll antagonists admin: Admin create-antagonist verb admin: Game logs now include what player gets turned into an antagonist /🆑
This commit is contained in:
@@ -461,6 +461,17 @@
|
||||
else if (href_list["obj_announce"])
|
||||
announce_objectives()
|
||||
|
||||
// BUBBER EDIT ADDITION BEGIN - ANTAG RE-ROLLING
|
||||
else if (href_list["reroll_antag"])
|
||||
var/datum/antagonist/antag = locate(href_list["reroll_antag"]) in antag_datums
|
||||
if(!istype(antag))
|
||||
to_chat(usr, span_warning("Invalid antagonist ref to be removed."))
|
||||
return
|
||||
|
||||
SSgamemode.reroll_antagonist(antag_name = name)
|
||||
antag.admin_remove(usr)
|
||||
// BUBBER EDIT ADDITION END - ANTAG RE-ROLLING
|
||||
|
||||
//Something in here might have changed your mob
|
||||
if(self_antagging && (!usr || !usr.client) && current.client)
|
||||
usr = current
|
||||
|
||||
Reference in New Issue
Block a user