Skip to content

Commit

Permalink
[MIRROR] Tweak/protected roles
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and SierraHelper committed Sep 20, 2023
1 parent b247c2d commit 5837876
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 20 deletions.
5 changes: 0 additions & 5 deletions code/controllers/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@
/// if objectives are disabled or not
var/static/objectives_disabled = FALSE

/// If security and such can be traitor/cult/other
var/static/protect_roles_from_antagonist = FALSE

/// Gamemodes which end instantly will instead keep on going until the round ends by escape shuttle or nuke.
var/static/continous_rounds = FALSE

Expand Down Expand Up @@ -644,8 +641,6 @@
else
log_misc("Incorrect objective disabled definition: [value]")
objectives_disabled = CONFIG_OBJECTIVE_NONE
if ("protect_roles_from_antagonist")
protect_roles_from_antagonist = TRUE
if ("probability")
var/regex/flatten = new (@"\s+", "g")
for (var/entry in value)
Expand Down
3 changes: 0 additions & 3 deletions code/game/antagonist/antagonist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// Text shown when becoming this antagonist.
var/list/restricted_jobs = list() // Jobs that cannot be this antagonist at roundstart (depending on config)
var/list/protected_jobs = list() // As above.
var/list/blacklisted_jobs = list(/datum/job/submap) // Jobs that can NEVER be this antagonist

// Strings.
Expand Down Expand Up @@ -96,8 +95,6 @@
get_starting_locations()
if(!role_text_plural)
role_text_plural = role_text
if(config.protect_roles_from_antagonist)
restricted_jobs |= protected_jobs
if(antaghud_indicator)
if(!GLOB.hud_icon_reference)
GLOB.hud_icon_reference = list()
Expand Down
2 changes: 1 addition & 1 deletion code/game/antagonist/station/changeling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GLOBAL_DATUM_INIT(changelings, /datum/antagonist/changeling, new)
role_text_plural = "Changelings"
feedback_tag = "changeling_objective"
blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg, /datum/job/submap)
protected_jobs = list(/datum/job/officer, /datum/job/warden, /datum/job/detective, /datum/job/captain, /datum/job/hos)
restricted_jobs = list(/datum/job/officer, /datum/job/warden, /datum/job/detective, /datum/job/captain, /datum/job/hos)
welcome_text = "Use say \"%LANGUAGE_PREFIX%g message\" to communicate with your fellow changelings. Remember: you get all of their absorbed DNA if you absorb them."
flags = ANTAG_SUSPICIOUS | ANTAG_RANDSPAWN | ANTAG_VOTABLE
antaghud_indicator = "hudchangeling"
Expand Down
3 changes: 1 addition & 2 deletions code/game/antagonist/station/cultist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ GLOBAL_DATUM_INIT(cult, /datum/antagonist/cultist, new)
id = MODE_CULTIST
role_text = "Cultist"
role_text_plural = "Cultists"
restricted_jobs = list(/datum/job/lawyer, /datum/job/captain, /datum/job/hos)
protected_jobs = list(/datum/job/officer, /datum/job/warden, /datum/job/detective)
restricted_jobs = list(/datum/job/lawyer, /datum/job/captain, /datum/job/hos, /datum/job/officer, /datum/job/warden, /datum/job/detective)
blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg, /datum/job/chaplain, /datum/job/psychiatrist, /datum/job/submap)
feedback_tag = "cult_objective"
antag_indicator = "hudcultist"
Expand Down
3 changes: 1 addition & 2 deletions code/game/antagonist/station/revolutionary.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ GLOBAL_DATUM_INIT(revs, /datum/antagonist/revolutionary, new)
faction = "revolutionary"

blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg)
restricted_jobs = list(/datum/job/captain, /datum/job/hop, /datum/job/hos, /datum/job/chief_engineer, /datum/job/rd, /datum/job/cmo, /datum/job/lawyer)
protected_jobs = list(/datum/job/officer, /datum/job/warden, /datum/job/detective)
restricted_jobs = list(/datum/job/captain, /datum/job/hop, /datum/job/hos, /datum/job/chief_engineer, /datum/job/rd, /datum/job/cmo, /datum/job/lawyer, /datum/job/officer, /datum/job/warden, /datum/job/detective)


/datum/antagonist/revolutionary/create_global_objectives()
Expand Down
2 changes: 1 addition & 1 deletion code/game/antagonist/station/traitor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GLOBAL_DATUM_INIT(traitors, /datum/antagonist/traitor, new)
id = MODE_TRAITOR
antaghud_indicator = "hud_traitor"
blacklisted_jobs = list(/datum/job/ai, /datum/job/submap)
protected_jobs = list(/datum/job/officer, /datum/job/warden, /datum/job/detective, /datum/job/captain, /datum/job/lawyer, /datum/job/hos)
restricted_jobs = list(/datum/job/captain, /datum/job/lawyer, /datum/job/hos)
flags = ANTAG_SUSPICIOUS | ANTAG_RANDSPAWN | ANTAG_VOTABLE
skill_setter = /datum/antag_skill_setter/station

Expand Down
11 changes: 5 additions & 6 deletions maps/torch/torch_antagonism.dm
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
//Makes sure we don't get any merchant antags as a balance concern. Can also be used for future Torch specific antag restrictions.
/datum/antagonist/changeling
blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg, /datum/job/merchant, /datum/job/captain, /datum/job/hop, /datum/job/submap)
protected_jobs = list(/datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)
restricted_jobs = list(/datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)

/datum/antagonist/godcultist
blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg, /datum/job/chaplain, /datum/job/merchant, /datum/job/captain, /datum/job/hop, /datum/job/hos, /datum/job/submap)
protected_jobs = list(/datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)
restricted_jobs = list(/datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)

/datum/antagonist/cultist
blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg, /datum/job/chaplain, /datum/job/psychiatrist, /datum/job/merchant, /datum/job/captain, /datum/job/hop, /datum/job/hos, /datum/job/submap)
protected_jobs = list(/datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)
restricted_jobs = list(/datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)

/datum/antagonist/loyalists
blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg, /datum/job/submap, /datum/job/merchant)
protected_jobs = list(/datum/job/officer, /datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)
restricted_jobs = list(/datum/job/officer, /datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)

/datum/antagonist/revolutionary
blacklisted_jobs = list(/datum/job/ai, /datum/job/cyborg, /datum/job/submap, /datum/job/merchant)
restricted_jobs = list(/datum/job/captain, /datum/job/hop)
protected_jobs = list(/datum/job/officer, /datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)
restricted_jobs = list(/datum/job/captain, /datum/job/hop, /datum/job/officer, /datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)

/datum/antagonist/traitor
blacklisted_jobs = list(/datum/job/merchant, /datum/job/captain, /datum/job/hop, /datum/job/ai, /datum/job/submap, /datum/job/hos, /datum/job/medical_trainee, /datum/job/engineer_trainee, /datum/job/junior_doctor)
Expand Down

0 comments on commit 5837876

Please sign in to comment.