diff --git a/code/__DEFINES/mobs.dm b/code/__DEFINES/mobs.dm index 60ce4333ee7..37c6615f253 100644 --- a/code/__DEFINES/mobs.dm +++ b/code/__DEFINES/mobs.dm @@ -319,6 +319,8 @@ #define SPECIES_SKELETON "Skeleton" #define SPECIES_GOLEM "Golem" #define SPECIES_EVENT1 "X Occursus" +#define SPECIES_EVENT2 "X Anomalous" +#define SPECIES_EVENT3 "X Unowas" // Replicant types. Currently only used for alien pods and events. #define SPECIES_REPLICANT "Replicant" diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index 2ef3035f829..718cca01e8b 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -21,13 +21,6 @@ var/global/list/joblist = list() //list of all jobstypes, minus borg and AI #define all_genders_define_list list(MALE,FEMALE,PLURAL,NEUTER,HERM) //VOREStaton Edit #define all_genders_text_list list("Male","Female","Plural","Neuter","Herm") //VOREStation Edit -//Languages/species/whitelist. -var/global/list/all_species[0] -var/global/list/all_languages[0] -var/global/list/language_keys[0] // Table of say codes for all languages -var/global/list/whitelisted_species = list(SPECIES_HUMAN) // Species that require a whitelist check. -var/global/list/playable_species = list(SPECIES_CUSTOM, SPECIES_HUMAN) // A list of ALL playable species, whitelisted, latejoin or otherwise. //VOREStation Edit - Making sure custom species is obvious. - var/list/mannequins_ // Posters @@ -160,12 +153,12 @@ var/global/list/string_slot_flags = list( paths = typesof(/datum/language)-/datum/language for(var/T in paths) var/datum/language/L = new T - all_languages[L.name] = L + GLOB.all_languages[L.name] = L - for (var/language_name in all_languages) - var/datum/language/L = all_languages[language_name] + for (var/language_name in GLOB.all_languages) + var/datum/language/L = GLOB.all_languages[language_name] if(!(L.flags & NONGLOBAL)) - language_keys[lowertext(L.key)] = L + GLOB.language_keys[lowertext(L.key)] = L var/rkey = 0 paths = typesof(/datum/species) @@ -179,12 +172,12 @@ var/global/list/string_slot_flags = list( S = new T S.race_key = rkey //Used in mob icon caching. - all_species[S.name] = S + GLOB.all_species[S.name] = S if(!(S.spawn_flags & SPECIES_IS_RESTRICTED)) - playable_species += S.name + GLOB.playable_species += S.name if(S.spawn_flags & SPECIES_IS_WHITELISTED) - whitelisted_species += S.name + GLOB.whitelisted_species += S.name //Posters paths = typesof(/datum/poster) - /datum/poster diff --git a/code/__HELPERS/global_lists_vr.dm b/code/__HELPERS/global_lists_vr.dm index c8bf60f1433..cc5289acaf6 100644 --- a/code/__HELPERS/global_lists_vr.dm +++ b/code/__HELPERS/global_lists_vr.dm @@ -469,10 +469,10 @@ var/global/list/remainless_species = list(SPECIES_PROMETHEAN, // Custom species icon bases var/list/blacklisted_icons = list(SPECIES_CUSTOM,SPECIES_PROMETHEAN) //Just ones that won't work well. - for(var/species_name in playable_species) + for(var/species_name in GLOB.playable_species) if(species_name in blacklisted_icons) continue - var/datum/species/S = all_species[species_name] + var/datum/species/S = GLOB.all_species[species_name] if(S.spawn_flags & SPECIES_IS_WHITELISTED) continue custom_species_bases += species_name diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index 8b3ae7e1932..d7fd3cc8ab7 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -75,7 +75,7 @@ proc/random_facial_hair_style(gender, species = SPECIES_HUMAN) proc/sanitize_name(name, species = SPECIES_HUMAN, robot = 0) var/datum/species/current_species if(species) - current_species = all_species[species] + current_species = GLOB.all_species[species] return current_species ? current_species.sanitize_name(name, robot) : sanitizeName(name, MAX_NAME_LEN, robot) @@ -83,7 +83,7 @@ proc/random_name(gender, species = SPECIES_HUMAN) var/datum/species/current_species if(species) - current_species = all_species[species] + current_species = GLOB.all_species[species] if(!current_species || current_species.name_language == null) if(gender==FEMALE) diff --git a/code/__HELPERS/species.dm b/code/__HELPERS/species.dm new file mode 100644 index 00000000000..a38ed01af41 --- /dev/null +++ b/code/__HELPERS/species.dm @@ -0,0 +1,6 @@ +//Languages/species/whitelist. +GLOBAL_LIST_INIT(all_species, list()) +GLOBAL_LIST_INIT(all_languages, list()) +GLOBAL_LIST_INIT(language_keys, list()) // Table of say codes for all languages +GLOBAL_LIST_INIT(whitelisted_species, list(SPECIES_HUMAN)) // Species that require a whitelist check. +GLOBAL_LIST_INIT(playable_species, list(SPECIES_HUMAN)) // A list of ALL playable species, whitelisted, latejoin or otherwise. \ No newline at end of file diff --git a/code/_globalvars/lists/species.dm b/code/_globalvars/lists/species.dm new file mode 100644 index 00000000000..a38ed01af41 --- /dev/null +++ b/code/_globalvars/lists/species.dm @@ -0,0 +1,6 @@ +//Languages/species/whitelist. +GLOBAL_LIST_INIT(all_species, list()) +GLOBAL_LIST_INIT(all_languages, list()) +GLOBAL_LIST_INIT(language_keys, list()) // Table of say codes for all languages +GLOBAL_LIST_INIT(whitelisted_species, list(SPECIES_HUMAN)) // Species that require a whitelist check. +GLOBAL_LIST_INIT(playable_species, list(SPECIES_HUMAN)) // A list of ALL playable species, whitelisted, latejoin or otherwise. \ No newline at end of file diff --git a/code/controllers/subsystems/jobs.dm b/code/controllers/subsystems/jobs.dm index 4640149c489..f5797e2ec52 100644 --- a/code/controllers/subsystems/jobs.dm +++ b/code/controllers/subsystems/jobs.dm @@ -389,7 +389,7 @@ SUBSYSTEM_DEF(jobs) else permitted = 1 - if(G.whitelisted && !is_alien_whitelisted(H, all_species[G.whitelisted])) + if(G.whitelisted && !is_alien_whitelisted(H, GLOB.all_species[G.whitelisted])) //if(G.whitelisted && (G.whitelisted != H.species.name || !is_alien_whitelisted(H, G.whitelisted))) permitted = 0 diff --git a/code/game/antagonist/station/changeling.dm b/code/game/antagonist/station/changeling.dm index 326c9071ab2..264cd1415bd 100644 --- a/code/game/antagonist/station/changeling.dm +++ b/code/game/antagonist/station/changeling.dm @@ -69,7 +69,7 @@ return 1 else if(isnewplayer(player.current)) if(player.current.client && player.current.client.prefs) - var/datum/species/S = all_species[player.current.client.prefs.species] + var/datum/species/S = GLOB.all_species[player.current.client.prefs.species] if(S && (S.flags & NO_SCAN)) return 0 if(player.current.client.prefs.organ_data["torso"] == "cyborg") // Full synthetic. diff --git a/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm b/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm index e0f5b0ed700..bd21a3e7bcb 100644 --- a/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm @@ -23,7 +23,7 @@ var/list/nearby_things = range(round(calculate_spell_power(4)),owner) var/temp_change = calculate_spell_power(25) - var/datum/species/baseline = all_species["Human"] + var/datum/species/baseline = GLOB.all_species["Human"] var/temp_cap = baseline.heat_level_3 * 1.5 var/fire_power = calculate_spell_power(2) diff --git a/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm b/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm index 4b629977de9..1761205e0a8 100644 --- a/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm @@ -23,7 +23,7 @@ var/list/nearby_mobs = range(round(calculate_spell_power(4)),owner) var/temp_change = calculate_spell_power(40) - var/datum/species/baseline = all_species["Human"] + var/datum/species/baseline = GLOB.all_species["Human"] var/temp_cap = baseline.cold_level_2 - 5 if(check_for_scepter()) diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm index 29af140094f..ef0e7b7e7ce 100644 --- a/code/game/jobs/job_controller.dm +++ b/code/game/jobs/job_controller.dm @@ -381,7 +381,7 @@ var/global/datum/controller/occupations/job_master else permitted = 1 - if(G.whitelisted && !is_alien_whitelisted(H, all_species[G.whitelisted])) + if(G.whitelisted && !is_alien_whitelisted(H, GLOB.all_species[G.whitelisted])) //if(G.whitelisted && (G.whitelisted != H.species.name || !is_alien_whitelisted(H, G.whitelisted))) permitted = 0 diff --git a/code/game/machinery/bioprinter.dm b/code/game/machinery/bioprinter.dm index 18dd0e28148..69520eb7eb9 100644 --- a/code/game/machinery/bioprinter.dm +++ b/code/game/machinery/bioprinter.dm @@ -236,9 +236,9 @@ malfunctioned = TRUE var/possible_species = list(SPECIES_HUMAN, SPECIES_VOX, SPECIES_SKRELL, SPECIES_ZADDAT, SPECIES_UNATHI, SPECIES_GOLEM, SPECIES_SHADOW) var/new_species = pick(possible_species) - if(!all_species[new_species]) + if(!GLOB.all_species[new_species]) new_species = SPECIES_HUMAN - O.species = all_species[new_species] + O.species = GLOB.all_species[new_species] if(istype(O, /obj/item/organ/external) && !malfunctioned) var/obj/item/organ/external/E = O diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index 4535287e4be..d5b5360cd32 100755 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -49,10 +49,10 @@ /obj/item/radio/headset/handle_message_mode(mob/living/M as mob, message, channel) if (channel == "special") if (translate_binary) - var/datum/language/binary = all_languages["Robot Talk"] + var/datum/language/binary = GLOB.all_languages["Robot Talk"] binary.broadcast(M, message) if (translate_hive) - var/datum/language/hivemind = all_languages["Hivemind"] + var/datum/language/hivemind = GLOB.all_languages["Hivemind"] hivemind.broadcast(M, message) return null diff --git a/code/game/objects/structures/mirror.dm b/code/game/objects/structures/mirror.dm index ced177a54e5..4d6240ba0a0 100644 --- a/code/game/objects/structures/mirror.dm +++ b/code/game/objects/structures/mirror.dm @@ -134,7 +134,7 @@ spawn(1) var/newname = sanitizeSafe(input(vox,"Enter a name, or leave blank for the default name.", "Name change","") as text, MAX_NAME_LEN) if(!newname || newname == "") - var/datum/language/L = all_languages[vox.species.default_language] + var/datum/language/L = GLOB.all_languages[vox.species.default_language] newname = L.get_random_name() vox.real_name = newname vox.name = vox.real_name diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 7caee70fd94..8fac6045715 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -192,8 +192,8 @@ proc/admin_notice(var/message, var/rights) // language toggles body += "

Languages:
" var/f = 1 - for(var/k in all_languages) - var/datum/language/L = all_languages[k] + for(var/k in GLOB.all_languages) + var/datum/language/L = GLOB.all_languages[k] if(!(L.flags & INNATE)) if(!f) body += " | " else f = 0 diff --git a/code/modules/admin/secrets/fun_secrets/paintball_mode.dm b/code/modules/admin/secrets/fun_secrets/paintball_mode.dm index 46446b06fc2..d17d648ea9d 100644 --- a/code/modules/admin/secrets/fun_secrets/paintball_mode.dm +++ b/code/modules/admin/secrets/fun_secrets/paintball_mode.dm @@ -6,8 +6,8 @@ if(!.) return - for(var/species in all_species) - var/datum/species/S = all_species[species] + for(var/species in GLOB.all_species) + var/datum/species/S = GLOB.all_species[species] S.blood_color = "rainbow" for(var/obj/effect/decal/cleanable/blood/B in world) B.basecolor = "rainbow" diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 7977da3ea16..741bc877a0c 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1913,7 +1913,7 @@ to_chat(usr, "[M] is illegal type, must be /mob!") return var/lang2toggle = href_list["lang"] - var/datum/language/L = all_languages[lang2toggle] + var/datum/language/L = GLOB.all_languages[lang2toggle] if(L in M.languages) if(!M.remove_language(lang2toggle)) diff --git a/code/modules/admin/view_variables/topic.dm b/code/modules/admin/view_variables/topic.dm index a2fa3a8e4df..df3b52bb250 100644 --- a/code/modules/admin/view_variables/topic.dm +++ b/code/modules/admin/view_variables/topic.dm @@ -441,7 +441,7 @@ to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human") return - var/new_species = input("Please choose a new species.","Species",null) as null|anything in all_species + var/new_species = input("Please choose a new species.","Species",null) as null|anything in GLOB.all_species if(!H) to_chat(usr, "Mob doesn't exist anymore") @@ -460,7 +460,7 @@ to_chat(usr, "This can only be done to instances of type /mob") return - var/new_language = input("Please choose a language to add.","Language",null) as null|anything in all_languages + var/new_language = input("Please choose a language to add.","Language",null) as null|anything in GLOB.all_languages if(!new_language) return diff --git a/code/modules/blob2/overmind/types.dm b/code/modules/blob2/overmind/types.dm index 5cdcdea6cd5..3a42dce08fa 100644 --- a/code/modules/blob2/overmind/types.dm +++ b/code/modules/blob2/overmind/types.dm @@ -423,7 +423,7 @@ var/protection = H.get_cold_protection(50) if(protection < 1) var/temp_change = 80 // Each hit can reduce temperature by up to 80 kelvin. - var/datum/species/baseline = all_species["Human"] + var/datum/species/baseline = GLOB.all_species["Human"] var/temp_cap = baseline.cold_level_3 - 5 // Can't go lower than this. var/cold_factor = abs(protection - 1) diff --git a/code/modules/client/preference_setup/general/01_basic.dm b/code/modules/client/preference_setup/general/01_basic.dm index 9d6fb49f2c0..f05d7e717cf 100644 --- a/code/modules/client/preference_setup/general/01_basic.dm +++ b/code/modules/client/preference_setup/general/01_basic.dm @@ -150,9 +150,9 @@ datum/preferences/proc/set_biological_gender(var/gender) /datum/category_item/player_setup_item/general/basic/proc/get_genders() var/datum/species/S if(pref.species) - S = all_species[pref.species] + S = GLOB.all_species[pref.species] else - S = all_species[SPECIES_HUMAN] + S = GLOB.all_species[SPECIES_HUMAN] var/list/possible_genders = S.genders if(!pref.organ_data || pref.organ_data[BP_TORSO] != "cyborg") return possible_genders diff --git a/code/modules/client/preference_setup/general/02_language.dm b/code/modules/client/preference_setup/general/02_language.dm index 10e8cc6483b..e3757cb1a13 100644 --- a/code/modules/client/preference_setup/general/02_language.dm +++ b/code/modules/client/preference_setup/general/02_language.dm @@ -13,7 +13,7 @@ /datum/category_item/player_setup_item/general/language/sanitize_character() if(!islist(pref.alternate_languages)) pref.alternate_languages = list() if(pref.species) - var/datum/species/S = all_species[pref.species] + var/datum/species/S = GLOB.all_species[pref.species] if(S && pref.alternate_languages.len > S.num_alternate_languages) pref.alternate_languages.len = S.num_alternate_languages // Truncate to allowed length if(isnull(pref.language_prefixes) || !pref.language_prefixes.len) @@ -21,7 +21,7 @@ /datum/category_item/player_setup_item/general/language/content() . += "Languages
" - var/datum/species/S = all_species[pref.species] + var/datum/species/S = GLOB.all_species[pref.species] if(S.language) . += "- [S.language]
" if(S.default_language && S.default_language != S.language) @@ -46,13 +46,13 @@ pref.alternate_languages.Cut(index, index+1) return TOPIC_REFRESH else if(href_list["add_language"]) - var/datum/species/S = all_species[pref.species] + var/datum/species/S = GLOB.all_species[pref.species] if(pref.alternate_languages.len >= S.num_alternate_languages) alert(user, "You have already selected the maximum number of alternate languages for this species!") else var/list/available_languages = S.secondary_langs.Copy() - for(var/L in all_languages) - var/datum/language/lang = all_languages[L] + for(var/L in GLOB.all_languages) + var/datum/language/lang = GLOB.all_languages[L] if(!(lang.flags & RESTRICTED) && (is_lang_whitelisted(user, lang))) available_languages |= L diff --git a/code/modules/client/preference_setup/general/03_body.dm b/code/modules/client/preference_setup/general/03_body.dm index bc750075268..94eb6c0759c 100644 --- a/code/modules/client/preference_setup/general/03_body.dm +++ b/code/modules/client/preference_setup/general/03_body.dm @@ -72,7 +72,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O S["body_descriptors"] << pref.body_descriptors /datum/category_item/player_setup_item/general/body/sanitize_character(var/savefile/S) - if(!pref.species || !(pref.species in playable_species)) + if(!pref.species || !(pref.species in GLOB.playable_species)) pref.species = SPECIES_HUMAN pref.r_hair = sanitize_integer(pref.r_hair, 0, 255, initial(pref.r_hair)) pref.g_hair = sanitize_integer(pref.g_hair, 0, 255, initial(pref.g_hair)) @@ -174,7 +174,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O last_descriptors = pref.body_descriptors.Copy() pref.body_descriptors = list() - var/datum/species/mob_species = all_species[pref.species] + var/datum/species/mob_species = GLOB.all_species[pref.species] if(LAZYLEN(mob_species.descriptors)) for(var/entry in mob_species.descriptors) var/datum/mob_descriptor/descriptor = mob_species.descriptors[entry] @@ -192,7 +192,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O pref.update_preview_icon() user << browse_rsc(pref.preview_icon, "previewicon.png") - var/datum/species/mob_species = all_species[pref.species] + var/datum/species/mob_species = GLOB.all_species[pref.species] . += "
Body " . += "(®)" . += "
" @@ -355,7 +355,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O return mob_species && (mob_species.appearance_flags & flag) /datum/category_item/player_setup_item/general/body/OnTopic(var/href,var/list/href_list, var/mob/user) - var/datum/species/mob_species = all_species[pref.species] + var/datum/species/mob_species = GLOB.all_species[pref.species] if(href_list["random"]) pref.randomize_appearance_and_body_for() @@ -379,7 +379,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O else if(href_list["show_species"]) // Actual whitelist checks are handled elsewhere, this is just for accessing the preview window. - var/choice = input("Which species would you like to look at?") as null|anything in playable_species + var/choice = input("Which species would you like to look at?") as null|anything in GLOB.playable_species if(!choice) return pref.species_preview = choice SetSpecies(preference_mob()) @@ -388,13 +388,13 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O else if(href_list["set_species"]) user << browse(null, "window=species") - if(!pref.species_preview || !(pref.species_preview in all_species)) + if(!pref.species_preview || !(pref.species_preview in GLOB.all_species)) return TOPIC_NOACTION var/datum/species/setting_species - if(all_species[href_list["set_species"]]) - setting_species = all_species[href_list["set_species"]] + if(GLOB.all_species[href_list["set_species"]]) + setting_species = GLOB.all_species[href_list["set_species"]] else return TOPIC_NOACTION @@ -595,7 +595,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O var/list/limb_selection_list = list("Left Leg","Right Leg","Left Arm","Right Arm","Left Foot","Right Foot","Left Hand","Right Hand","Full Body") // Full prosthetic bodies without a brain are borderline unkillable so make sure they have a brain to remove/destroy. - var/datum/species/current_species = all_species[pref.species] + var/datum/species/current_species = GLOB.all_species[pref.species] if(!current_species.has_organ["brain"]) limb_selection_list -= "Full Body" else if(pref.organ_data[BP_TORSO] == "cyborg") @@ -827,9 +827,9 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O pref.real_name = random_name(pref.identifying_gender, pref.species) /datum/category_item/player_setup_item/general/body/proc/SetSpecies(mob/user) - if(!pref.species_preview || !(pref.species_preview in all_species)) + if(!pref.species_preview || !(pref.species_preview in GLOB.all_species)) pref.species_preview = SPECIES_HUMAN - var/datum/species/current_species = all_species[pref.species_preview] + var/datum/species/current_species = GLOB.all_species[pref.species_preview] var/dat = "" dat += "

[current_species.name] \[change\]


" dat += "" diff --git a/code/modules/client/preference_setup/loadout/loadout.dm b/code/modules/client/preference_setup/loadout/loadout.dm index 7593a7cb8cd..424f11c6735 100644 --- a/code/modules/client/preference_setup/loadout/loadout.dm +++ b/code/modules/client/preference_setup/loadout/loadout.dm @@ -66,7 +66,7 @@ var/list/gear_datums = list() for(var/gear_name in gear_datums) var/datum/gear/G = gear_datums[gear_name] - if(G.whitelisted && !is_alien_whitelisted(preference_mob, all_species[G.whitelisted])) + if(G.whitelisted && !is_alien_whitelisted(preference_mob, GLOB.all_species[G.whitelisted])) continue if(max_cost && G.cost > max_cost) continue diff --git a/code/modules/client/preference_setup/preference_setup.dm b/code/modules/client/preference_setup/preference_setup.dm index 57cb0480c92..2fbd381ee4e 100644 --- a/code/modules/client/preference_setup/preference_setup.dm +++ b/code/modules/client/preference_setup/preference_setup.dm @@ -271,7 +271,7 @@ return 0 //Something went wrong! /datum/category_item/player_setup_item/proc/get_min_age() - var/datum/species/S = all_species[pref.species ? pref.species : "Human"] + var/datum/species/S = GLOB.all_species[pref.species ? pref.species : "Human"] if(!is_FBP()) return S.min_age // If they're not a robot, we can just use the species var. var/FBP_type = get_FBP_type() @@ -285,7 +285,7 @@ return S.min_age // welp /datum/category_item/player_setup_item/proc/get_max_age() - var/datum/species/S = all_species[pref.species ? pref.species : "Human"] + var/datum/species/S = GLOB.all_species[pref.species ? pref.species : "Human"] if(!is_FBP()) return S.max_age // If they're not a robot, we can just use the species var. var/FBP_type = get_FBP_type() diff --git a/code/modules/client/preference_setup/preference_setup_vr.dm b/code/modules/client/preference_setup/preference_setup_vr.dm index 67c1d1792a8..2379875910a 100644 --- a/code/modules/client/preference_setup/preference_setup_vr.dm +++ b/code/modules/client/preference_setup/preference_setup_vr.dm @@ -1,7 +1,7 @@ //Minimum limit is 18 /datum/category_item/player_setup_item/get_min_age() var/min_age = 18 - var/datum/species/S = all_species[pref.species ? pref.species : "Human"] + var/datum/species/S = GLOB.all_species[pref.species ? pref.species : "Human"] if(!is_FBP() && S.min_age > 18) min_age = S.min_age return min_age diff --git a/code/modules/client/preference_setup/vore/07_traits.dm b/code/modules/client/preference_setup/vore/07_traits.dm index a2da155c16e..bbce12cc085 100644 --- a/code/modules/client/preference_setup/vore/07_traits.dm +++ b/code/modules/client/preference_setup/vore/07_traits.dm @@ -73,7 +73,7 @@ if(!(path in negative_traits)) pref.neg_traits -= path - var/datum/species/selected_species = all_species[pref.species] + var/datum/species/selected_species = GLOB.all_species[pref.species] if(selected_species.selects_bodytype) // Allowed! else if(!pref.custom_base || !(pref.custom_base in custom_species_bases)) @@ -81,7 +81,7 @@ /datum/category_item/player_setup_item/vore/traits/copy_to_mob(var/mob/living/carbon/human/character) character.custom_species = pref.custom_species - var/datum/species/selected_species = all_species[pref.species] + var/datum/species/selected_species = GLOB.all_species[pref.species] if(selected_species.selects_bodytype) var/datum/species/custom/CS = character.species var/S = pref.custom_base ? pref.custom_base : "Human" @@ -99,7 +99,7 @@ . += "Custom Species Name: " . += "[pref.custom_species ? pref.custom_species : "-Input Name-"]
" - var/datum/species/selected_species = all_species[pref.species] + var/datum/species/selected_species = GLOB.all_species[pref.species] if(selected_species.selects_bodytype) . += "Icon Base: " . += "[pref.custom_base ? pref.custom_base : "Human"]
" diff --git a/code/modules/integrated_electronics/subtypes/input.dm b/code/modules/integrated_electronics/subtypes/input.dm index dad5d4b925b..f27ab9e0cc9 100644 --- a/code/modules/integrated_electronics/subtypes/input.dm +++ b/code/modules/integrated_electronics/subtypes/input.dm @@ -571,7 +571,7 @@ /obj/item/integrated_circuit/input/microphone/sign/Initialize() ..() for(var/lang in readable_langs) - var/datum/language/newlang = all_languages[lang] + var/datum/language/newlang = GLOB.all_languages[lang] my_langs |= newlang /obj/item/integrated_circuit/input/microphone/sign/hear_talk(mob/living/M, msg, var/verb="says", datum/language/speaking=null) diff --git a/code/modules/mob/language/language.dm b/code/modules/mob/language/language.dm index 926e3c94855..87746131016 100644 --- a/code/modules/mob/language/language.dm +++ b/code/modules/mob/language/language.dm @@ -179,7 +179,7 @@ // Language handling. /mob/proc/add_language(var/language) - var/datum/language/new_language = all_languages[language] + var/datum/language/new_language = GLOB.all_languages[language] if(!istype(new_language) || (new_language in languages)) return 0 @@ -188,12 +188,12 @@ return 1 /mob/proc/remove_language(var/rem_language) - var/datum/language/L = all_languages[rem_language] + var/datum/language/L = GLOB.all_languages[rem_language] . = (L in languages) languages.Remove(L) /mob/living/remove_language(rem_language) - var/datum/language/L = all_languages[rem_language] + var/datum/language/L = GLOB.all_languages[rem_language] if(default_language == L) default_language = null return ..() @@ -205,10 +205,10 @@ log_debug("[src] attempted to speak a null language.") return 0 - if(speaking == all_languages["Noise"]) + if(speaking == GLOB.all_languages["Noise"]) return 1 - if (only_species_language && speaking != all_languages[species_language]) + if (only_species_language && speaking != GLOB.all_languages[species_language]) return 0 if(speaking.can_speak_special(src)) @@ -268,7 +268,7 @@ if(href_list["default_lang"]) if(href_list["default_lang"] == "reset") if (species_language) - set_default_language(all_languages[species_language]) + set_default_language(GLOB.all_languages[species_language]) else set_default_language(null) else diff --git a/code/modules/mob/living/bot/bot.dm b/code/modules/mob/living/bot/bot.dm index 3edf4cc1886..cdfc044884d 100644 --- a/code/modules/mob/living/bot/bot.dm +++ b/code/modules/mob/living/bot/bot.dm @@ -45,7 +45,7 @@ ..() update_icons() - default_language = all_languages[LANGUAGE_GALCOM] + default_language = GLOB.all_languages[LANGUAGE_GALCOM] botcard = new /obj/item/card/id(src) botcard.access = botcard_access.Copy() diff --git a/code/modules/mob/living/carbon/alien/diona/diona.dm b/code/modules/mob/living/carbon/alien/diona/diona.dm index 7aeb98a5d0a..9c68bfc2a23 100644 --- a/code/modules/mob/living/carbon/alien/diona/diona.dm +++ b/code/modules/mob/living/carbon/alien/diona/diona.dm @@ -23,7 +23,7 @@ /mob/living/carbon/alien/diona/New() ..() - species = all_species[SPECIES_DIONA] + species = GLOB.all_species[SPECIES_DIONA] add_language(LANGUAGE_ROOTGLOBAL) add_language(LANGUAGE_GALCOM) verbs += /mob/living/carbon/alien/diona/proc/merge diff --git a/code/modules/mob/living/carbon/alien/diona/progression.dm b/code/modules/mob/living/carbon/alien/diona/progression.dm index d0a5c3795d1..84c3c8083ff 100644 --- a/code/modules/mob/living/carbon/alien/diona/progression.dm +++ b/code/modules/mob/living/carbon/alien/diona/progression.dm @@ -1,6 +1,6 @@ /mob/living/carbon/alien/diona/confirm_evolution() - if(!is_alien_whitelisted(src, all_species[SPECIES_DIONA])) + if(!is_alien_whitelisted(src, GLOB.all_species[SPECIES_DIONA])) src << alert("You are currently not whitelisted to play as a full diona.") return null diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 545bf2ce84f..10c6b4fe5c2 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -6,7 +6,7 @@ touching = new/datum/reagents/metabolism/touch(500, src) reagents = bloodstr if (!default_language && species_language) - default_language = all_languages[species_language] + default_language = GLOB.all_languages[species_language] /mob/living/carbon/Life() ..() @@ -338,12 +338,12 @@ if(can_speak(default_language)) return default_language else - return all_languages[LANGUAGE_GIBBERISH] + return GLOB.all_languages[LANGUAGE_GIBBERISH] if(!species) return null - return species.default_language ? all_languages[species.default_language] : null + return species.default_language ? GLOB.all_languages[species.default_language] : null /mob/living/carbon/proc/should_have_organ(var/organ_check) return 0 diff --git a/code/modules/mob/living/carbon/human/appearance.dm b/code/modules/mob/living/carbon/human/appearance.dm index efc296e8c91..e5db3940694 100644 --- a/code/modules/mob/living/carbon/human/appearance.dm +++ b/code/modules/mob/living/carbon/human/appearance.dm @@ -10,7 +10,7 @@ if(species == new_species) return - if(!(new_species in all_species)) + if(!(new_species in GLOB.all_species)) return set_species(new_species) @@ -144,8 +144,8 @@ /mob/living/carbon/human/proc/generate_valid_species(var/check_whitelist = 1, var/list/whitelist = list(), var/list/blacklist = list()) var/list/valid_species = new() - for(var/current_species_name in all_species) - var/datum/species/current_species = all_species[current_species_name] + for(var/current_species_name in GLOB.all_species) + var/datum/species/current_species = GLOB.all_species[current_species_name] if(check_whitelist && config_legacy.usealienwhitelist && !check_rights(R_ADMIN, 0, src)) //If we're using the whitelist, make sure to check it! if(!(current_species.spawn_flags & SPECIES_CAN_JOIN)) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 86d44aaa9c3..9f2f2939d2c 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1114,7 +1114,7 @@ dna.species = new_species // No more invisible screaming wheelchairs because of set_species() typos. - if(!all_species[new_species]) + if(!GLOB.all_species[new_species]) new_species = SPECIES_HUMAN if(species) @@ -1131,7 +1131,7 @@ species.remove_inherent_verbs(src) holder_type = null - species = all_species[new_species] + species = GLOB.all_species[new_species] if(species.language) add_language(species.language) diff --git a/code/modules/mob/living/carbon/human/species/outsider/event.dm b/code/modules/mob/living/carbon/human/species/outsider/event.dm index 477b14c0c46..f7488e8ff40 100644 --- a/code/modules/mob/living/carbon/human/species/outsider/event.dm +++ b/code/modules/mob/living/carbon/human/species/outsider/event.dm @@ -220,3 +220,11 @@ Variables you may want to make use of are: /datum/species/event1/can_fall(var/mob/living/carbon/human/H) return hover + +/datum/species/event1/sub1 + name = SPECIES_EVENT2 + name_plural = SPECIES_EVENT2 + +/datum/species/event1/sub2 + name = SPECIES_EVENT3 + name_plural = SPECIES_EVENT3 \ No newline at end of file diff --git a/code/modules/mob/living/carbon/human/species/outsider/vox.dm b/code/modules/mob/living/carbon/human/species/outsider/vox.dm index 177bc3572b1..460da86b3ef 100644 --- a/code/modules/mob/living/carbon/human/species/outsider/vox.dm +++ b/code/modules/mob/living/carbon/human/species/outsider/vox.dm @@ -89,7 +89,7 @@ ) /datum/species/vox/get_random_name(var/gender) - var/datum/language/species_language = all_languages[default_language] + var/datum/language/species_language = GLOB.all_languages[default_language] return species_language.get_random_name(gender) /datum/species/vox/equip_survival_gear(var/mob/living/carbon/human/H, var/extendedtank = 0,var/comprehensive = 0) diff --git a/code/modules/mob/living/carbon/human/species/species_getters.dm b/code/modules/mob/living/carbon/human/species/species_getters.dm index a203d0d6cc8..9e455460228 100644 --- a/code/modules/mob/living/carbon/human/species/species_getters.dm +++ b/code/modules/mob/living/carbon/human/species/species_getters.dm @@ -97,9 +97,9 @@ else return capitalize(pick(first_names_male)) + " " + capitalize(pick(last_names)) - var/datum/language/species_language = all_languages[name_language] + var/datum/language/species_language = GLOB.all_languages[name_language] if(!species_language) - species_language = all_languages[default_language] + species_language = GLOB.all_languages[default_language] if(!species_language) return "unknown" return species_language.get_random_name(gender) diff --git a/code/modules/mob/living/carbon/human/species/species_shapeshift.dm b/code/modules/mob/living/carbon/human/species/species_shapeshift.dm index fd167fc2da4..48e7cb8375e 100644 --- a/code/modules/mob/living/carbon/human/species/species_shapeshift.dm +++ b/code/modules/mob/living/carbon/human/species/species_shapeshift.dm @@ -20,7 +20,7 @@ var/list/wrapped_species_by_ref = list() /datum/species/shapeshifter/get_icobase(var/mob/living/carbon/human/H, var/get_deform) if(!H) return ..(null, get_deform) - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_icobase(H, get_deform) /datum/species/shapeshifter/get_race_key(var/mob/living/carbon/human/H) @@ -28,37 +28,37 @@ var/list/wrapped_species_by_ref = list() /datum/species/shapeshifter/get_bodytype(var/mob/living/carbon/human/H) if(!H) return ..() - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_bodytype(H) /datum/species/shapeshifter/get_blood_mask(var/mob/living/carbon/human/H) if(!H) return ..() - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_blood_mask(H) /datum/species/shapeshifter/get_damage_mask(var/mob/living/carbon/human/H) if(!H) return ..() - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_damage_mask(H) /datum/species/shapeshifter/get_damage_overlays(var/mob/living/carbon/human/H) if(!H) return ..() - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_damage_overlays(H) /datum/species/shapeshifter/get_tail(var/mob/living/carbon/human/H) if(!H) return ..() - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_tail(H) /datum/species/shapeshifter/get_tail_animation(var/mob/living/carbon/human/H) if(!H) return ..() - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_tail_animation(H) /datum/species/shapeshifter/get_tail_hair(var/mob/living/carbon/human/H) if(!H) return ..() - var/datum/species/S = all_species[wrapped_species_by_ref["\ref[H]"]] + var/datum/species/S = GLOB.all_species[wrapped_species_by_ref["\ref[H]"]] return S.get_tail_hair(H) /datum/species/shapeshifter/handle_post_spawn(var/mob/living/carbon/human/H) @@ -151,7 +151,7 @@ var/list/wrapped_species_by_ref = list() var/new_species = null new_species = input("Please select a species to emulate.", "Shapeshifter Body") as null|anything in species.get_valid_shapeshifter_forms(src) - if(!new_species || !all_species[new_species] || wrapped_species_by_ref["\ref[src]"] == new_species) + if(!new_species || !GLOB.all_species[new_species] || wrapped_species_by_ref["\ref[src]"] == new_species) return shapeshifter_change_shape(new_species) @@ -268,14 +268,14 @@ var/list/wrapped_species_by_ref = list() limb_exists[O.organ_tag] = 1 wounds_by_limb[O.organ_tag] = O.wounds - species = all_species[new_species] + species = GLOB.all_species[new_species] species.create_organs(src) // species.handle_post_spawn(src) for(var/limb in organs_by_name) var/obj/item/organ/external/O = organs_by_name[limb] if(limb_exists[O.organ_tag]) - O.species = all_species[new_species] + O.species = GLOB.all_species[new_species] O.wounds = wounds_by_limb[O.organ_tag] // sync the organ's damage with its wounds O.update_damages() diff --git a/code/modules/mob/living/carbon/human/species/station/alraune.dm b/code/modules/mob/living/carbon/human/species/station/alraune.dm index 40461a68cfa..c3af5b07c8d 100644 --- a/code/modules/mob/living/carbon/human/species/station/alraune.dm +++ b/code/modules/mob/living/carbon/human/species/station/alraune.dm @@ -462,7 +462,7 @@ if(ispath(to_copy)) to_copy = "[initial(to_copy.name)]" if(istext(to_copy)) - to_copy = all_species[to_copy] + to_copy = GLOB.all_species[to_copy] var/datum/species/alraune/new_copy = new() @@ -498,5 +498,5 @@ return base_species /datum/species/alraune/get_race_key() - var/datum/species/real = all_species[base_species] + var/datum/species/real = GLOB.all_species[base_species] return real.race_key diff --git a/code/modules/mob/living/carbon/human/species/station/blank_vr.dm b/code/modules/mob/living/carbon/human/species/station/blank_vr.dm index 9ccb2296888..bf0c7913589 100644 --- a/code/modules/mob/living/carbon/human/species/station/blank_vr.dm +++ b/code/modules/mob/living/carbon/human/species/station/blank_vr.dm @@ -54,7 +54,7 @@ return base_species /datum/species/custom/get_race_key() - var/datum/species/real = all_species[base_species] + var/datum/species/real = GLOB.all_species[base_species] return real.race_key /datum/species/custom/proc/produceCopy(var/datum/species/to_copy,var/list/traits,var/mob/living/carbon/human/H) @@ -64,7 +64,7 @@ if(ispath(to_copy)) to_copy = "[initial(to_copy.name)]" if(istext(to_copy)) - to_copy = all_species[to_copy] + to_copy = GLOB.all_species[to_copy] var/datum/species/custom/new_copy = new() diff --git a/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_powers.dm b/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_powers.dm index 888e54c105e..bda7d2150aa 100644 --- a/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_powers.dm +++ b/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_powers.dm @@ -279,7 +279,7 @@ to_chat(src,"You must be awake and standing to perform this action!") return - var/new_species = input("Please select a species to emulate.", "Shapeshifter Body") as null|anything in playable_species + var/new_species = input("Please select a species to emulate.", "Shapeshifter Body") as null|anything in GLOB.playable_species if(new_species) impersonate_bodytype = new_species regenerate_icons() //Expensive, but we need to recrunch all the icons we're wearing diff --git a/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm b/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm index e01172b3879..fd370b3b123 100644 --- a/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm +++ b/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm @@ -339,7 +339,7 @@ if(ispath(to_copy)) to_copy = "[initial(to_copy.name)]" if(istext(to_copy)) - to_copy = all_species[to_copy] + to_copy = GLOB.all_species[to_copy] var/datum/species/xenochimera/new_copy = new() @@ -375,7 +375,7 @@ return base_species /datum/species/xenochimera/get_race_key() - var/datum/species/real = all_species[base_species] + var/datum/species/real = GLOB.all_species[base_species] return real.race_key /datum/species/xenochimera/proc/update_xenochimera_hud(var/mob/living/carbon/human/H, var/danger, var/feral) diff --git a/code/modules/mob/living/default_language.dm b/code/modules/mob/living/default_language.dm index 32ce7b125e8..df25980298f 100644 --- a/code/modules/mob/living/default_language.dm +++ b/code/modules/mob/living/default_language.dm @@ -5,11 +5,11 @@ set name = "Set Default Language" set category = "IC" - if (only_species_language && language != all_languages[src.species_language]) + if (only_species_language && language != GLOB.all_languages[src.species_language]) to_chat(src, "You can only speak your species language, [src.species_language].") return 0 - if(language == all_languages[src.species_language]) + if(language == GLOB.all_languages[src.species_language]) to_chat(src, "You will now speak your standard default language, [language], if you do not specify a language when speaking.") else if (language) diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 6a484920846..76f16a3308b 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -183,7 +183,7 @@ proc/get_radio_key_from_channel(var/channel) speaking = get_default_language() if(!can_speak(speaking)) - speaking = all_languages[LANGUAGE_GIBBERISH] + speaking = GLOB.all_languages[LANGUAGE_GIBBERISH] var/babble_key = ",r" message = babble_key + message diff --git a/code/modules/mob/living/silicon/robot/drone/drone_say.dm b/code/modules/mob/living/silicon/robot/drone/drone_say.dm index 861d75e5e23..bf544dfb186 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_say.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_say.dm @@ -14,7 +14,7 @@ return emote(copytext(message,2)) if(copytext(message,1,2) == ";") - var/datum/language/L = all_languages["Drone Talk"] + var/datum/language/L = GLOB.all_languages["Drone Talk"] if(istype(L)) return L.broadcast(src,trim(copytext(message,2))) diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index f619d229657..3d6f47b0090 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -31,7 +31,7 @@ silicon_mob_list |= src ..() add_language(LANGUAGE_GALCOM) - set_default_language(all_languages[LANGUAGE_GALCOM]) + set_default_language(GLOB.all_languages[LANGUAGE_GALCOM]) init_id() init_subsystems() @@ -196,7 +196,7 @@ return universal_speak || (speaking in src.speech_synthesizer_langs) || (speaking.name == "Noise") //need speech synthesizer support to vocalize a language /mob/living/silicon/add_language(var/language, var/can_speak=1) - var/var/datum/language/added_language = all_languages[language] + var/var/datum/language/added_language = GLOB.all_languages[language] if(!added_language) return @@ -206,7 +206,7 @@ return 1 /mob/living/silicon/remove_language(var/rem_language) - var/var/datum/language/removed_language = all_languages[rem_language] + var/var/datum/language/removed_language = GLOB.all_languages[rem_language] if(!removed_language) return diff --git a/code/modules/mob/living/simple_animal/animals/spiderbot.dm b/code/modules/mob/living/simple_animal/animals/spiderbot.dm index 9a63171940e..74161c06a38 100644 --- a/code/modules/mob/living/simple_animal/animals/spiderbot.dm +++ b/code/modules/mob/living/simple_animal/animals/spiderbot.dm @@ -56,7 +56,7 @@ /mob/living/simple_mob/spiderbot/New() ..() add_language(LANGUAGE_GALCOM) - default_language = all_languages[LANGUAGE_GALCOM] + default_language = GLOB.all_languages[LANGUAGE_GALCOM] verbs |= /mob/living/proc/ventcrawl verbs |= /mob/living/proc/hide diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 24a290c94de..936bd6d8f29 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -190,7 +190,7 @@ maxHealth = health for(var/L in has_langs) - languages |= all_languages[L] + languages |= GLOB.all_languages[L] if(languages.len) default_language = languages[1] diff --git a/code/modules/mob/living/simple_mob/simple_mob.dm b/code/modules/mob/living/simple_mob/simple_mob.dm index 80258c346b2..d669245e9bb 100644 --- a/code/modules/mob/living/simple_mob/simple_mob.dm +++ b/code/modules/mob/living/simple_mob/simple_mob.dm @@ -160,7 +160,7 @@ health = maxHealth for(var/L in has_langs) - languages |= all_languages[L] + languages |= GLOB.all_languages[L] if(languages.len) default_language = languages[1] diff --git a/code/modules/mob/living/voice/voice.dm b/code/modules/mob/living/voice/voice.dm index d481d77b8e2..2f22f35bafa 100644 --- a/code/modules/mob/living/voice/voice.dm +++ b/code/modules/mob/living/voice/voice.dm @@ -9,7 +9,7 @@ /mob/living/voice/New(loc) add_language(LANGUAGE_GALCOM) - set_default_language(all_languages[LANGUAGE_GALCOM]) + set_default_language(GLOB.all_languages[LANGUAGE_GALCOM]) if(istype(loc, /obj/item/communicator)) comm = loc diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 3dd352d82e0..c16d12fc585 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -191,11 +191,11 @@ to_chat(usr, "The station is currently exploding. Joining would go poorly.") return /* - if(!is_alien_whitelisted(src, all_species[client.prefs.species])) + if(!is_alien_whitelisted(src, GLOB.all_species[client.prefs.species])) src << alert("You are currently not whitelisted to play [client.prefs.species].") return 0 */ - var/datum/species/S = all_species[client.prefs.species] + var/datum/species/S = GLOB.all_species[client.prefs.species] if(!(S.spawn_flags & SPECIES_CAN_JOIN)) src << alert("Your current species, [client.prefs.species], is not available for play on the station.") return 0 @@ -472,7 +472,7 @@ var/use_species_name var/datum/species/chosen_species if(client.prefs.species) - chosen_species = all_species[client.prefs.species] + chosen_species = GLOB.all_species[client.prefs.species] use_species_name = chosen_species.get_station_variant() //Only used by pariahs atm. if(chosen_species && use_species_name) @@ -519,7 +519,7 @@ new_character.disabilities |= NEARSIGHTED for(var/lang in client.prefs.alternate_languages) - var/datum/language/chosen_language = all_languages[lang] + var/datum/language/chosen_language = GLOB.all_languages[lang] if(chosen_language) if(is_lang_whitelisted(src,chosen_language) || (new_character.species && (chosen_language.name in new_character.species.secondary_langs))) new_character.add_language(lang) @@ -559,7 +559,7 @@ /mob/new_player/get_species() var/datum/species/chosen_species if(client.prefs.species) - chosen_species = all_species[client.prefs.species] + chosen_species = GLOB.all_species[client.prefs.species] if(!chosen_species) return SPECIES_HUMAN diff --git a/code/modules/mob/new_player/new_player_vr.dm b/code/modules/mob/new_player/new_player_vr.dm index 1ff1eeb638c..8568310d482 100644 --- a/code/modules/mob/new_player/new_player_vr.dm +++ b/code/modules/mob/new_player/new_player_vr.dm @@ -22,7 +22,7 @@ to_chat(src,"You have not set your scale yet. Do this on the VORE tab in character setup.") //Can they play? - if(!is_alien_whitelisted(src,all_species[client.prefs.species]) && !check_rights(R_ADMIN, 0)) + if(!is_alien_whitelisted(src,GLOB.all_species[client.prefs.species]) && !check_rights(R_ADMIN, 0)) pass = FALSE to_chat(src,"You are not allowed to spawn in as this species.") diff --git a/code/modules/mob/new_player/preferences_setup.dm b/code/modules/mob/new_player/preferences_setup.dm index f8f31796d32..19b174e0446 100644 --- a/code/modules/mob/new_player/preferences_setup.dm +++ b/code/modules/mob/new_player/preferences_setup.dm @@ -1,7 +1,7 @@ /datum/preferences //The mob should have a gender you want before running this proc. Will run fine without H /datum/preferences/proc/randomize_appearance_and_body_for(var/mob/living/carbon/human/H) - var/datum/species/current_species = all_species[species ? species : "Human"] + var/datum/species/current_species = GLOB.all_species[species ? species : "Human"] set_biological_gender(pick(current_species.genders)) h_style = random_hair_style(biological_gender, species) diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index c75c3b296cc..3209e0253eb 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -153,13 +153,13 @@ var/prefix = copytext_char(message,1,2) // This is for audible emotes if(length_char(message) >= 1 && prefix == "!") - return all_languages["Noise"] + return GLOB.all_languages["Noise"] if(length_char(message) >= 2 && is_language_prefix(prefix)) var/language_prefix = lowertext(copytext_char(message, 2 ,3)) - var/datum/language/L = language_keys[language_prefix] + var/datum/language/L = GLOB.language_keys[language_prefix] if (can_speak(L)) return L else - return all_languages[LANGUAGE_GIBBERISH] + return GLOB.all_languages[LANGUAGE_GIBBERISH] return null diff --git a/code/modules/organs/internal/voicebox.dm b/code/modules/organs/internal/voicebox.dm index 2cf264f7805..a9bad7dcd8c 100644 --- a/code/modules/organs/internal/voicebox.dm +++ b/code/modules/organs/internal/voicebox.dm @@ -18,7 +18,7 @@ /obj/item/organ/internal/voicebox/proc/amend_assist_langs() // Adds the list of language datums assisted by the voicebox to the list used in speaking for(var/L in will_assist_languages) - assists_languages |= all_languages[L] + assists_languages |= GLOB.all_languages[L] /obj/item/organ/internal/voicebox/proc/add_assistable_langs(var/language) // Adds a new language (by string/define) to the list of things the voicebox can assist will_assist_languages |= language diff --git a/code/modules/organs/organ.dm b/code/modules/organs/organ.dm index 63b0c96d399..c88732d1a28 100644 --- a/code/modules/organs/organ.dm +++ b/code/modules/organs/organ.dm @@ -65,7 +65,7 @@ var/list/organ_cache = list() if(istype(holder)) src.owner = holder src.w_class = max(src.w_class + mob_size_difference(holder.mob_size, MOB_MEDIUM), 1) //smaller mobs have smaller organs. - species = all_species[SPECIES_HUMAN] + species = GLOB.all_species[SPECIES_HUMAN] if(holder.dna) dna = holder.dna.Clone() species = holder.species //VOREStation Edit - For custom species @@ -87,7 +87,7 @@ var/list/organ_cache = list() if(internal) holder.internal_organs |= src else - species = all_species["Human"] + species = GLOB.all_species["Human"] handle_organ_mod_special() diff --git a/code/modules/organs/robolimbs_vr.dm b/code/modules/organs/robolimbs_vr.dm index 379f04e7c06..602a809702b 100644 --- a/code/modules/organs/robolimbs_vr.dm +++ b/code/modules/organs/robolimbs_vr.dm @@ -185,7 +185,7 @@ END OF CITADEL CHANGES */ suggested_species = "Teshari" /datum/robolimb/dsi_teshari/New() - species_cannot_use = all_species.Copy() + species_cannot_use = GLOB.all_species.Copy() species_cannot_use -= SPECIES_TESHARI ..() diff --git a/code/modules/projectiles/projectile/change.dm b/code/modules/projectiles/projectile/change.dm index 3b5c5a67e36..81af565dc55 100644 --- a/code/modules/projectiles/projectile/change.dm +++ b/code/modules/projectiles/projectile/change.dm @@ -32,7 +32,7 @@ var/mob/living/new_mob var/options = list("robot", "slime") - for(var/t in all_species) + for(var/t in GLOB.all_species) options += t if(ishuman(M)) var/mob/living/carbon/human/H = M diff --git a/code/modules/research/prosfab_designs.dm b/code/modules/research/prosfab_designs.dm index 872744ae353..aa71a7dd05a 100644 --- a/code/modules/research/prosfab_designs.dm +++ b/code/modules/research/prosfab_designs.dm @@ -16,7 +16,7 @@ if(prosfab.manufacturer) var/datum/robolimb/manf = all_robolimbs[prosfab.manufacturer] newspecies = manf.suggested_species - O.species = all_species[newspecies] + O.species = GLOB.all_species[newspecies] if(istype(O,/obj/item/organ/external)) var/obj/item/organ/external/EO = O if(EO.species.base_color) @@ -54,7 +54,7 @@ EO.remove_rejuv() for(var/obj/item/organ/external/O in H.organs) - O.species = all_species[newspecies] //VOREStation Edit with species suggestion above + O.species = GLOB.all_species[newspecies] //VOREStation Edit with species suggestion above O.robotize(prosfab.manufacturer) O.dna = new/datum/dna() O.dna.ResetUI() diff --git a/code/modules/resleeving/designer.dm b/code/modules/resleeving/designer.dm index 5c9d311cbc8..713d720bf86 100644 --- a/code/modules/resleeving/designer.dm +++ b/code/modules/resleeving/designer.dm @@ -68,8 +68,8 @@ if(menu == "3") var/stock_bodyrecords_list_ui[0] - for (var/N in all_species) - var/datum/species/S = all_species[N] + for (var/N in GLOB.all_species) + var/datum/species/S = GLOB.all_species[N] if((S.spawn_flags & (SPECIES_IS_WHITELISTED|SPECIES_CAN_JOIN)) != SPECIES_CAN_JOIN) continue stock_bodyrecords_list_ui += N if(stock_bodyrecords_list_ui.len) @@ -172,7 +172,7 @@ temp = "ERROR: Record missing." else if(href_list["view_stock_brec"]) - var/datum/species/S = all_species[href_list["view_stock_brec"]] + var/datum/species/S = GLOB.all_species[href_list["view_stock_brec"]] if(S && (S.spawn_flags & (SPECIES_IS_WHITELISTED|SPECIES_CAN_JOIN)) == SPECIES_CAN_JOIN) // Generate body record from species! mannequin = new(null, S.name) diff --git a/code/modules/resleeving/infocore_records.dm b/code/modules/resleeving/infocore_records.dm index 134d2be87d6..e32c28e66bb 100644 --- a/code/modules/resleeving/infocore_records.dm +++ b/code/modules/resleeving/infocore_records.dm @@ -108,7 +108,7 @@ locked = ckeylock //Prevent people from printing restricted and whitelisted species - var/datum/species/S = all_species["[M.dna.species]"] + var/datum/species/S = GLOB.all_species["[M.dna.species]"] if(S) toocomplex = (S.spawn_flags & SPECIES_IS_WHITELISTED) || (S.spawn_flags & SPECIES_IS_RESTRICTED) diff --git a/code/modules/virus2/admin.dm b/code/modules/virus2/admin.dm index 1061212e850..cafa968c1ee 100644 --- a/code/modules/virus2/admin.dm +++ b/code/modules/virus2/admin.dm @@ -88,8 +88,8 @@ Infectable Species:
"} var/f = 1 - for(var/k in all_species) - var/datum/species/S = all_species[k] + for(var/k in GLOB.all_species) + var/datum/species/S = GLOB.all_species[k] if(S.get_virus_immune()) continue if(!f) H += " | " diff --git a/code/modules/virus2/disease2.dm b/code/modules/virus2/disease2.dm index df6b7493553..a1997ab8191 100644 --- a/code/modules/virus2/disease2.dm +++ b/code/modules/virus2/disease2.dm @@ -42,14 +42,14 @@ if(severity >= 2 && prob(33)) resistance += 10 - if(all_species.len) + if(GLOB.all_species.len) affected_species = get_infectable_species() /proc/get_infectable_species() var/list/meat = list() var/list/res = list() - for (var/specie in all_species) - var/datum/species/S = all_species[specie] + for (var/specie in GLOB.all_species) + var/datum/species/S = GLOB.all_species[specie] if(!S.get_virus_immune()) meat += S if(meat.len) @@ -158,7 +158,7 @@ if (prob(5) && prob(100-resistance)) // The more resistant the disease,the lower the chance of randomly developing the antibodies antigen = list(pick(ALL_ANTIGENS)) antigen |= pick(ALL_ANTIGENS) - if (prob(5) && all_species.len) + if (prob(5) && GLOB.all_species.len) affected_species = get_infectable_species() if (prob(10)) resistance += rand(1,9) diff --git a/vorestation.dme b/vorestation.dme index 6e7a22a0e05..b62e3579560 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -171,6 +171,7 @@ #include "code\_globalvars\lists\keybindings.dm" #include "code\_globalvars\lists\mapping.dm" #include "code\_globalvars\lists\medical.dm" +#include "code\_globalvars\lists\species.dm" #include "code\_onclick\_defines.dm" #include "code\_onclick\adjacent.dm" #include "code\_onclick\ai.dm"