From f6f114af122827301c3fce47f866979ccea14ab1 Mon Sep 17 00:00:00 2001 From: AnturK Date: Sat, 14 Oct 2017 07:49:29 +0200 Subject: [PATCH 1/2] Removes unused list (#31662) --- code/game/gamemodes/brother/traitor_bro.dm | 1 - code/game/gamemodes/changeling/changeling.dm | 1 - code/game/gamemodes/changeling/traitor_chan.dm | 1 - code/game/gamemodes/clock_cult/clock_cult.dm | 1 - code/game/gamemodes/cult/cult.dm | 1 - code/game/gamemodes/devil/devil_game_mode.dm | 1 - code/game/gamemodes/game_mode.dm | 1 - code/game/gamemodes/revolution/revolution.dm | 1 - code/game/gamemodes/traitor/traitor.dm | 1 - code/game/gamemodes/wizard/wizard.dm | 1 - 10 files changed, 10 deletions(-) diff --git a/code/game/gamemodes/brother/traitor_bro.dm b/code/game/gamemodes/brother/traitor_bro.dm index 0dd3d6be0f..ca2c858310 100644 --- a/code/game/gamemodes/brother/traitor_bro.dm +++ b/code/game/gamemodes/brother/traitor_bro.dm @@ -92,7 +92,6 @@ team.forge_brother_objectives() for(var/datum/mind/M in team.members) M.add_antag_datum(ANTAG_DATUM_BROTHER, team) - modePlayer += M brother_teams += pre_brother_teams return ..() diff --git a/code/game/gamemodes/changeling/changeling.dm b/code/game/gamemodes/changeling/changeling.dm index eafc5cd717..5a177b80c4 100644 --- a/code/game/gamemodes/changeling/changeling.dm +++ b/code/game/gamemodes/changeling/changeling.dm @@ -99,7 +99,6 @@ GLOBAL_LIST_INIT(slot2type, list("head" = /obj/item/clothing/head/changeling, "w forge_changeling_objectives(changeling) greet_changeling(changeling) SSticker.mode.update_changeling_icons_added(changeling) - modePlayer += changelings ..() /datum/game_mode/changeling/make_antag_chance(mob/living/carbon/human/character) //Assigns changeling to latejoiners diff --git a/code/game/gamemodes/changeling/traitor_chan.dm b/code/game/gamemodes/changeling/traitor_chan.dm index f951e31c08..bd4c522477 100644 --- a/code/game/gamemodes/changeling/traitor_chan.dm +++ b/code/game/gamemodes/changeling/traitor_chan.dm @@ -55,7 +55,6 @@ return 0 /datum/game_mode/traitor/changeling/post_setup() - modePlayer += changelings for(var/datum/mind/changeling in changelings) changeling.current.make_changeling() forge_changeling_objectives(changeling) diff --git a/code/game/gamemodes/clock_cult/clock_cult.dm b/code/game/gamemodes/clock_cult/clock_cult.dm index e312f51319..803514adcb 100644 --- a/code/game/gamemodes/clock_cult/clock_cult.dm +++ b/code/game/gamemodes/clock_cult/clock_cult.dm @@ -124,7 +124,6 @@ Credit where due: var/datum/mind/servant = pick(antag_candidates) servants_to_serve += servant antag_candidates -= servant - modePlayer += servant servant.assigned_role = "Servant of Ratvar" servant.special_role = "Servant of Ratvar" starter_servants-- diff --git a/code/game/gamemodes/cult/cult.dm b/code/game/gamemodes/cult/cult.dm index 01773f1ea6..917b5a81a4 100644 --- a/code/game/gamemodes/cult/cult.dm +++ b/code/game/gamemodes/cult/cult.dm @@ -81,7 +81,6 @@ /datum/game_mode/cult/post_setup() - modePlayer += cultists_to_cult if("sacrifice" in cult_objectives) var/list/possible_targets = get_unconvertables() if(!possible_targets.len) diff --git a/code/game/gamemodes/devil/devil_game_mode.dm b/code/game/gamemodes/devil/devil_game_mode.dm index 844b027e93..25922a1bfa 100644 --- a/code/game/gamemodes/devil/devil_game_mode.dm +++ b/code/game/gamemodes/devil/devil_game_mode.dm @@ -52,7 +52,6 @@ /datum/game_mode/devil/post_setup() for(var/datum/mind/devil in devils) post_setup_finalize(devil) - modePlayer += devils ..() return 1 diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 9f67693613..1bf8eadb2f 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -20,7 +20,6 @@ var/false_report_weight = 0 //How often will this show up incorrectly in a centcom report? var/station_was_nuked = 0 //see nuclearbomb.dm and malfunction.dm var/round_ends_with_antag_death = 0 //flags the "one verse the station" antags as such - var/list/datum/mind/modePlayer = new var/list/datum/mind/antag_candidates = list() // List of possible starting antags goes here var/list/restricted_jobs = list() // Jobs it doesn't make sense to be. I.E chaplain or AI cultist var/list/protected_jobs = list() // Jobs that can't be traitors because diff --git a/code/game/gamemodes/revolution/revolution.dm b/code/game/gamemodes/revolution/revolution.dm index 7840aff8a4..ce5d2b7f4b 100644 --- a/code/game/gamemodes/revolution/revolution.dm +++ b/code/game/gamemodes/revolution/revolution.dm @@ -105,7 +105,6 @@ for(var/datum/mind/rev_mind in head_revolutionaries) greet_revolutionary(rev_mind) - modePlayer += head_revolutionaries SSshuttle.registerHostileEnvironment(src) ..() diff --git a/code/game/gamemodes/traitor/traitor.dm b/code/game/gamemodes/traitor/traitor.dm index 9e62d13a3e..258b7ab59f 100644 --- a/code/game/gamemodes/traitor/traitor.dm +++ b/code/game/gamemodes/traitor/traitor.dm @@ -63,7 +63,6 @@ addtimer(CALLBACK(traitor, /datum/mind.proc/add_antag_datum, antag_datum), rand(10,100)) if(!exchange_blue) exchange_blue = -1 //Block latejoiners from getting exchange objectives - modePlayer += traitors ..() return TRUE diff --git a/code/game/gamemodes/wizard/wizard.dm b/code/game/gamemodes/wizard/wizard.dm index a5bd17bc8c..027e6e4856 100644 --- a/code/game/gamemodes/wizard/wizard.dm +++ b/code/game/gamemodes/wizard/wizard.dm @@ -21,7 +21,6 @@ /datum/game_mode/wizard/pre_setup() var/datum/mind/wizard = pick(antag_candidates) wizards += wizard - modePlayer += wizard wizard.assigned_role = "Wizard" wizard.special_role = "Wizard" log_game("[wizard.key] (ckey) has been selected as a Wizard") //TODO: Move these to base antag datum