Merge pull request #9487 from Citadel-Station-13/spooky

adds an easy way for admins to force enable halloween races without the rest of halloween's code
This commit is contained in:
nik707
2019-11-20 23:00:09 -06:00
committed by GitHub
2 changed files with 12 additions and 2 deletions
@@ -118,11 +118,14 @@ GLOBAL_LIST_EMPTY(roundstart_race_names)
..()
/proc/generate_selectable_species()
/proc/generate_selectable_species(clear = FALSE)
if(clear)
GLOB.roundstart_races = list()
GLOB.roundstart_race_names = list()
for(var/I in subtypesof(/datum/species))
var/datum/species/S = new I
if(S.check_roundstart_eligible())
GLOB.roundstart_races += S.id
GLOB.roundstart_races |= S.id
GLOB.roundstart_race_names["[S.name]"] = S.id
qdel(S)
if(!GLOB.roundstart_races.len)