diff --git a/code/__HELPERS/logging.dm b/code/__HELPERS/logging.dm index 93d046a7289..c1812e6b0d6 100644 --- a/code/__HELPERS/logging.dm +++ b/code/__HELPERS/logging.dm @@ -35,16 +35,16 @@ /proc/log_admin(text) admin_log.Add(text) - if (config.log_admin) + if (config_legacy.log_admin) WRITE_LOG(diary, "ADMIN: [text]") /proc/log_adminpm(text, client/source, client/dest) admin_log.Add(text) - if (config.log_admin) + if (config_legacy.log_admin) WRITE_LOG(diary, "ADMINPM: [key_name(source)]->[key_name(dest)]: [html_decode(text)]") /proc/log_debug(text) - if (config.log_debug) + if (config_legacy.log_debug) WRITE_LOG(debug_log, "DEBUG: [text]") for(var/client/C in admins) @@ -52,64 +52,64 @@ C << "DEBUG: [text]" /proc/log_game(text) - if (config.log_game) + if (config_legacy.log_game) WRITE_LOG(diary, "GAME: [text]") /proc/log_vote(text) - if (config.log_vote) + if (config_legacy.log_vote) WRITE_LOG(diary, "VOTE: [text]") /proc/log_access_in(client/new_client) - if (config.log_access) + if (config_legacy.log_access) var/message = "[key_name(new_client)] - IP:[new_client.address] - CID:[new_client.computer_id] - BYOND v[new_client.byond_version]" WRITE_LOG(diary, "ACCESS IN: [message]") /proc/log_access_out(mob/last_mob) - if (config.log_access) + if (config_legacy.log_access) var/message = "[key_name(last_mob)] - IP:[last_mob.lastKnownIP] - CID:Logged Out - BYOND Logged Out" WRITE_LOG(diary, "ACCESS OUT: [message]") /proc/log_say(text, mob/speaker) - if (config.log_say) + if (config_legacy.log_say) WRITE_LOG(diary, "SAY: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_ooc(text, client/user) - if (config.log_ooc) + if (config_legacy.log_ooc) WRITE_LOG(diary, "OOC: [user.simple_info_line()]: [html_decode(text)]") /proc/log_aooc(text, client/user) - if (config.log_ooc) + if (config_legacy.log_ooc) WRITE_LOG(diary, "AOOC: [user.simple_info_line()]: [html_decode(text)]") /proc/log_looc(text, client/user) - if (config.log_ooc) + if (config_legacy.log_ooc) WRITE_LOG(diary, "LOOC: [user.simple_info_line()]: [html_decode(text)]") /proc/log_whisper(text, mob/speaker) - if (config.log_whisper) + if (config_legacy.log_whisper) WRITE_LOG(diary, "WHISPER: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_access(text) WRITE_LOG(diary, "ACCESS: [text]") /proc/log_emote(text, mob/speaker) - if (config.log_emote) + if (config_legacy.log_emote) WRITE_LOG(diary, "EMOTE: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_attack(attacker, defender, message) - if (config.log_attack) + if (config_legacy.log_attack) WRITE_LOG(diary, "ATTACK: [attacker] against [defender]: [message]") /proc/log_adminsay(text, mob/speaker) - if (config.log_adminchat) + if (config_legacy.log_adminchat) WRITE_LOG(diary, "ADMINSAY: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_modsay(text, mob/speaker) - if (config.log_adminchat) + if (config_legacy.log_adminchat) WRITE_LOG(diary, "MODSAY: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_eventsay(text, mob/speaker) - if (config.log_adminchat) + if (config_legacy.log_adminchat) WRITE_LOG(diary, "EVENTSAY: [speaker.simple_info_line()]: [html_decode(text)]") /* Log to the logfile only. */ @@ -117,24 +117,24 @@ WRITE_LOG(error_log, text) /proc/log_ghostsay(text, mob/speaker) - if (config.log_say) + if (config_legacy.log_say) WRITE_LOG(diary, "DEADCHAT: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_ghostemote(text, mob/speaker) - if (config.log_emote) + if (config_legacy.log_emote) WRITE_LOG(diary, "DEADEMOTE: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_adminwarn(text) - if (config.log_adminwarn) + if (config_legacy.log_adminwarn) WRITE_LOG(diary, "ADMINWARN: [html_decode(text)]") /proc/log_pda(text, mob/speaker) - if (config.log_pda) + if (config_legacy.log_pda) WRITE_LOG(diary, "PDA: [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_to_dd(text) world.log << text //this comes before the config check because it can't possibly runtime - if(config.log_world_output) + if(config_legacy.log_world_output) WRITE_LOG(diary, "DD_OUTPUT: [text]") /proc/log_error(text) diff --git a/code/__HELPERS/logging_vr.dm b/code/__HELPERS/logging_vr.dm index aa117125dc7..cb9f5fc3ff4 100644 --- a/code/__HELPERS/logging_vr.dm +++ b/code/__HELPERS/logging_vr.dm @@ -1,11 +1,11 @@ /proc/log_nsay(text, inside, mob/speaker) - if (config.log_say) + if (config_legacy.log_say) WRITE_LOG(diary, "NSAY (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_nme(text, inside, mob/speaker) - if (config.log_emote) + if (config_legacy.log_emote) WRITE_LOG(diary, "NME (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]") /proc/log_subtle(text, mob/speaker) - if (config.log_emote) + if (config_legacy.log_emote) WRITE_LOG(diary, "SUBTLE: [speaker.simple_info_line()]: [html_decode(text)]") diff --git a/code/__HELPERS/names.dm b/code/__HELPERS/names.dm index c03705359c3..ab0c223e571 100644 --- a/code/__HELPERS/names.dm +++ b/code/__HELPERS/names.dm @@ -92,8 +92,8 @@ var/religion_name = null new_station_name += pick("13","XIII","Thirteen") - if (config && config.server_name) - world.name = "[config.server_name]: [name]" + if (config && config_legacy.server_name) + world.name = "[config_legacy.server_name]: [name]" else world.name = new_station_name @@ -104,8 +104,8 @@ var/religion_name = null using_map.station_name = name - if (config && config.server_name) - world.name = "[config.server_name]: [name]" + if (config && config_legacy.server_name) + world.name = "[config_legacy.server_name]: [name]" else world.name = name diff --git a/code/__HELPERS/unsorted_vr.dm b/code/__HELPERS/unsorted_vr.dm index 9c9939ffd0c..54a30c31dcd 100644 --- a/code/__HELPERS/unsorted_vr.dm +++ b/code/__HELPERS/unsorted_vr.dm @@ -44,13 +44,13 @@ /proc/admin_chat_message(var/message = "Debug Message", var/color = "#FFFFFF", var/sender) if(message) //CITADEL CHANGE - adds TGS3 integration to those fancy verbose round event messages world.TgsTargetedChatBroadcast(message, TRUE) //CITADEL CHANGE - ditto - if (!config.chat_webhook_url || !message) + if (!config_legacy.chat_webhook_url || !message) return spawn(0) var/query_string = "type=adminalert" - query_string += "&key=[url_encode(config.chat_webhook_key)]" + query_string += "&key=[url_encode(config_legacy.chat_webhook_key)]" query_string += "&msg=[url_encode(message)]" query_string += "&color=[url_encode(color)]" if(sender) query_string += "&from=[url_encode(sender)]" - world.Export("[config.chat_webhook_url]?[query_string]") + world.Export("[config_legacy.chat_webhook_url]?[query_string]") diff --git a/code/__defines/mobs.dm b/code/__defines/mobs.dm index 679962b2107..61af7447319 100644 --- a/code/__defines/mobs.dm +++ b/code/__defines/mobs.dm @@ -141,11 +141,11 @@ #define FLASH_PROTECTION_MODERATE 1 #define FLASH_PROTECTION_MAJOR 2 -#define ANIMAL_SPAWN_DELAY round(config.respawn_delay / 6) -#define DRONE_SPAWN_DELAY round(config.respawn_delay / 3) +#define ANIMAL_SPAWN_DELAY round(config_legacy.respawn_delay / 6) +#define DRONE_SPAWN_DELAY round(config_legacy.respawn_delay / 3) -#define ANIMAL_SPAWN_DELAY round(config.respawn_delay / 6) -#define DRONE_SPAWN_DELAY round(config.respawn_delay / 3) +#define ANIMAL_SPAWN_DELAY round(config_legacy.respawn_delay / 6) +#define DRONE_SPAWN_DELAY round(config_legacy.respawn_delay / 3) // Incapacitation flags, used by the mob/proc/incapacitated() proc #define INCAPACITATION_RESTRAINED 1 diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 6ef8f326994..ad933c85cca 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -146,7 +146,7 @@ next_move = max(world.time + timeout, next_move) /mob/proc/canClick() - if(config.no_click_cooldown || next_move <= world.time) + if(config_legacy.no_click_cooldown || next_move <= world.time) return 1 return 0 diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index f34a68a742f..d126649855d 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -33,7 +33,7 @@ return if(!canClick()) return setClickCooldown(4) - // You are responsible for checking config.ghost_interaction when you override this function + // You are responsible for checking config_legacy.ghost_interaction when you override this function // Not all of them require checking, see below A.attack_ghost(src) diff --git a/code/controllers/Processes/inactivity.dm b/code/controllers/Processes/inactivity.dm index 7684b59087b..898db237404 100644 --- a/code/controllers/Processes/inactivity.dm +++ b/code/controllers/Processes/inactivity.dm @@ -3,11 +3,11 @@ schedule_interval = 600 // Once every minute (approx.) /datum/controller/process/inactivity/doWork() - if(config.kick_inactive) + if(config_legacy.kick_inactive) for(last_object in clients) var/client/C = last_object - if(C.is_afk(config.kick_inactive MINUTES) && !C.holder) // VOREStation Edit - Allow admins to idle - to_chat(C,"You have been inactive for more than [config.kick_inactive] minute\s and have been disconnected.") + if(C.is_afk(config_legacy.kick_inactive MINUTES) && !C.holder) // VOREStation Edit - Allow admins to idle + to_chat(C,"You have been inactive for more than [config_legacy.kick_inactive] minute\s and have been disconnected.") var/information if(C.mob) diff --git a/code/controllers/Processes/radiation.dm b/code/controllers/Processes/radiation.dm index 71d9c60233e..d09d68da386 100644 --- a/code/controllers/Processes/radiation.dm +++ b/code/controllers/Processes/radiation.dm @@ -20,8 +20,8 @@ sources.Remove(S) continue if(S.decay) - S.update_rad_power(S.rad_power - config.radiation_decay_rate) - if(S.rad_power <= config.radiation_lower_limit) + S.update_rad_power(S.rad_power - config_legacy.radiation_decay_rate) + if(S.rad_power <= config_legacy.radiation_lower_limit) sources.Remove(S) SCHECK // This scheck probably just wastes resources, but better safe than sorry in this case. diff --git a/code/controllers/autotransfer.dm b/code/controllers/autotransfer.dm index 4dbc004d293..d47795e2958 100644 --- a/code/controllers/autotransfer.dm +++ b/code/controllers/autotransfer.dm @@ -8,9 +8,9 @@ datum/controller/transfer_controller var/shift_hard_end = 0 //VOREStation Edit var/shift_last_vote = 0 //Citadel Edit datum/controller/transfer_controller/New() - timerbuffer = config.vote_autotransfer_initial - shift_hard_end = config.vote_autotransfer_initial + (config.vote_autotransfer_interval * NUMBER_OF_VOTE_EXTENSIONS) //VOREStation Edit //Change this "1" to how many extend votes you want there to be. - shift_last_vote = shift_hard_end - config.vote_autotransfer_interval //VOREStation Edit + timerbuffer = config_legacy.vote_autotransfer_initial + shift_hard_end = config_legacy.vote_autotransfer_initial + (config_legacy.vote_autotransfer_interval * NUMBER_OF_VOTE_EXTENSIONS) //VOREStation Edit //Change this "1" to how many extend votes you want there to be. + shift_last_vote = shift_hard_end - config_legacy.vote_autotransfer_interval //VOREStation Edit processing_objects += src datum/controller/transfer_controller/Destroy() @@ -25,9 +25,9 @@ datum/controller/transfer_controller/process() */ if (round_duration_in_ticks >= shift_hard_end - 1 MINUTE) init_shift_change(null, 1) - shift_hard_end = timerbuffer + config.vote_autotransfer_interval //If shuttle somehow gets recalled, let's force it to call again next time a vote would occur. - timerbuffer = timerbuffer + config.vote_autotransfer_interval //Just to make sure a vote doesn't occur immediately afterwords. + shift_hard_end = timerbuffer + config_legacy.vote_autotransfer_interval //If shuttle somehow gets recalled, let's force it to call again next time a vote would occur. + timerbuffer = timerbuffer + config_legacy.vote_autotransfer_interval //Just to make sure a vote doesn't occur immediately afterwords. else if (round_duration_in_ticks >= timerbuffer - 1 MINUTE) SSvote.autotransfer() //VOREStation Edit END - timerbuffer = timerbuffer + config.vote_autotransfer_interval + timerbuffer = timerbuffer + config_legacy.vote_autotransfer_interval diff --git a/code/controllers/configuration_old/configuration.dm b/code/controllers/configuration_old/configuration.dm index cd322f96f2d..2ecc097c09b 100644 --- a/code/controllers/configuration_old/configuration.dm +++ b/code/controllers/configuration_old/configuration.dm @@ -166,8 +166,8 @@ var/list/gamemode_cache = list() var/footstep_volume = 0 - var/admin_legacy_system = 0 //Defines whether the server uses the legacy admin system with admins.txt or the SQL system. Config option in config.txt - var/ban_legacy_system = 0 //Defines whether the server uses the legacy banning system with the files in /data or the SQL system. Config option in config.txt + var/admin_legacy_system = 0 //Defines whether the server uses the legacy admin system with admins.txt or the SQL system. Config option in config_legacy.txt + var/ban_legacy_system = 0 //Defines whether the server uses the legacy banning system with the files in /data or the SQL system. Config option in config_legacy.txt var/use_age_restriction_for_jobs = 0 //Do jobs use account age restrictions? --requires database var/use_age_restriction_for_antags = 0 //Do antags use account age restrictions? --requires database @@ -283,25 +283,25 @@ var/list/gamemode_cache = list() if(type == "config") switch (name) if ("resource_urls") - config.resource_urls = splittext(value, " ") + config_legacy.resource_urls = splittext(value, " ") if ("admin_legacy_system") - config.admin_legacy_system = 1 + config_legacy.admin_legacy_system = 1 if ("ban_legacy_system") - config.ban_legacy_system = 1 + config_legacy.ban_legacy_system = 1 if ("hub_visibility") //CITADEL CHANGE - ADDS HUB CONFIG - config.hub_visibility = 1 + config_legacy.hub_visibility = 1 if ("use_age_restriction_for_jobs") - config.use_age_restriction_for_jobs = 1 + config_legacy.use_age_restriction_for_jobs = 1 if ("use_age_restriction_for_antags") - config.use_age_restriction_for_antags = 1 + config_legacy.use_age_restriction_for_antags = 1 if ("jobs_have_minimal_access") - config.jobs_have_minimal_access = 1 + config_legacy.jobs_have_minimal_access = 1 if ("use_recursive_explosions") use_recursive_explosions = 1 @@ -310,205 +310,205 @@ var/list/gamemode_cache = list() multi_z_explosion_scalar = text2num(value) if ("log_ooc") - config.log_ooc = 1 + config_legacy.log_ooc = 1 if ("log_access") - config.log_access = 1 + config_legacy.log_access = 1 if ("sql_enabled") - config.sql_enabled = 1 + config_legacy.sql_enabled = 1 if ("log_say") - config.log_say = 1 + config_legacy.log_say = 1 if ("debug_paranoid") - config.debugparanoid = 1 + config_legacy.debugparanoid = 1 if ("log_admin") - config.log_admin = 1 + config_legacy.log_admin = 1 if ("log_debug") - config.log_debug = text2num(value) + config_legacy.log_debug = text2num(value) if ("log_game") - config.log_game = 1 + config_legacy.log_game = 1 if ("log_vote") - config.log_vote = 1 + config_legacy.log_vote = 1 if ("log_whisper") - config.log_whisper = 1 + config_legacy.log_whisper = 1 if ("log_attack") - config.log_attack = 1 + config_legacy.log_attack = 1 if ("log_emote") - config.log_emote = 1 + config_legacy.log_emote = 1 if ("log_adminchat") - config.log_adminchat = 1 + config_legacy.log_adminchat = 1 if ("log_adminwarn") - config.log_adminwarn = 1 + config_legacy.log_adminwarn = 1 if ("log_pda") - config.log_pda = 1 + config_legacy.log_pda = 1 if ("log_world_output") - config.log_world_output = 1 + config_legacy.log_world_output = 1 if ("log_hrefs") - config.log_hrefs = 1 + config_legacy.log_hrefs = 1 if ("log_runtime") - config.log_runtime = 1 + config_legacy.log_runtime = 1 if ("generate_map") - config.generate_map = 1 + config_legacy.generate_map = 1 if ("no_click_cooldown") - config.no_click_cooldown = 1 + config_legacy.no_click_cooldown = 1 if("allow_admin_ooccolor") - config.allow_admin_ooccolor = 1 + config_legacy.allow_admin_ooccolor = 1 if ("allow_vote_restart") - config.allow_vote_restart = 1 + config_legacy.allow_vote_restart = 1 if ("allow_vote_mode") - config.allow_vote_mode = 1 + config_legacy.allow_vote_mode = 1 if ("allow_admin_jump") - config.allow_admin_jump = 1 + config_legacy.allow_admin_jump = 1 if("allow_admin_rev") - config.allow_admin_rev = 1 + config_legacy.allow_admin_rev = 1 if ("allow_admin_spawning") - config.allow_admin_spawning = 1 + config_legacy.allow_admin_spawning = 1 if ("no_dead_vote") - config.vote_no_dead = 1 + config_legacy.vote_no_dead = 1 if ("default_no_vote") - config.vote_no_default = 1 + config_legacy.vote_no_default = 1 if ("vote_delay") - config.vote_delay = text2num(value) + config_legacy.vote_delay = text2num(value) if("comms_key") - config.comms_key = value + config_legacy.comms_key = value if ("vote_period") - config.vote_period = text2num(value) + config_legacy.vote_period = text2num(value) if ("vote_autotransfer_initial") - config.vote_autotransfer_initial = text2num(value) + config_legacy.vote_autotransfer_initial = text2num(value) if ("vote_autotransfer_interval") - config.vote_autotransfer_interval = text2num(value) + config_legacy.vote_autotransfer_interval = text2num(value) if ("vote_autogamemode_timeleft") - config.vote_autogamemode_timeleft = text2num(value) + config_legacy.vote_autogamemode_timeleft = text2num(value) if("ert_admin_only") - config.ert_admin_call_only = 1 + config_legacy.ert_admin_call_only = 1 if ("allow_ai") - config.allow_ai = 1 + config_legacy.allow_ai = 1 if ("allow_ai_drones") - config.allow_ai_drones = 1 + config_legacy.allow_ai_drones = 1 // if ("authentication") -// config.enable_authentication = 1 +// config_legacy.enable_authentication = 1 if ("norespawn") - config.respawn = 0 + config_legacy.respawn = 0 if ("servername") - config.server_name = value + config_legacy.server_name = value if ("serversuffix") - config.server_suffix = 1 + config_legacy.server_suffix = 1 if ("nudge_script_path") - config.nudge_script_path = value + config_legacy.nudge_script_path = value if ("hostedby") - config.hostedby = value + config_legacy.hostedby = value if ("serverurl") - config.serverurl = value + config_legacy.serverurl = value if ("server") - config.server = value + config_legacy.server = value if ("banappeals") - config.banappeals = value + config_legacy.banappeals = value if ("wikiurl") - config.wikiurl = value + config_legacy.wikiurl = value if ("wikisearchurl") - config.wikisearchurl = value + config_legacy.wikisearchurl = value if ("forumurl") - config.forumurl = value + config_legacy.forumurl = value if ("rulesurl") - config.rulesurl = value + config_legacy.rulesurl = value if ("mapurl") - config.mapurl = value + config_legacy.mapurl = value if ("githuburl") - config.githuburl = value + config_legacy.githuburl = value if ("guest_jobban") - config.guest_jobban = 1 + config_legacy.guest_jobban = 1 if ("guest_ban") - config.guests_allowed = 0 + config_legacy.guests_allowed = 0 if ("disable_ooc") - config.ooc_allowed = 0 - config.looc_allowed = 0 + config_legacy.ooc_allowed = 0 + config_legacy.looc_allowed = 0 if ("disable_entry") - config.enter_allowed = 0 + config_legacy.enter_allowed = 0 if ("disable_dead_ooc") - config.dooc_allowed = 0 + config_legacy.dooc_allowed = 0 if ("disable_dsay") - config.dsay_allowed = 0 + config_legacy.dsay_allowed = 0 if ("disable_respawn") - config.abandon_allowed = 0 + config_legacy.abandon_allowed = 0 if ("usewhitelist") - config.usewhitelist = 1 + config_legacy.usewhitelist = 1 if ("feature_object_spell_system") - config.feature_object_spell_system = 1 + config_legacy.feature_object_spell_system = 1 if ("allow_metadata") - config.allow_Metadata = 1 + config_legacy.allow_Metadata = 1 if ("traitor_scaling") - config.traitor_scaling = 1 + config_legacy.traitor_scaling = 1 if ("aliens_allowed") - config.aliens_allowed = 1 + config_legacy.aliens_allowed = 1 if ("ninjas_allowed") - config.ninjas_allowed = 1 + config_legacy.ninjas_allowed = 1 if ("objectives_disabled") - config.objectives_disabled = 1 + config_legacy.objectives_disabled = 1 if("protect_roles_from_antagonist") - config.protect_roles_from_antagonist = 1 + config_legacy.protect_roles_from_antagonist = 1 if ("probability") var/prob_pos = findtext(value, " ") @@ -518,66 +518,66 @@ var/list/gamemode_cache = list() if (prob_pos) prob_name = lowertext(copytext(value, 1, prob_pos)) prob_value = copytext(value, prob_pos + 1) - if (prob_name in config.modes) - config.probabilities[prob_name] = text2num(prob_value) + if (prob_name in config_legacy.modes) + config_legacy.probabilities[prob_name] = text2num(prob_value) else log_misc("Unknown game mode probability configuration definition: [prob_name].") else log_misc("Incorrect probability configuration definition: [prob_name] [prob_value].") if("allow_random_events") - config.allow_random_events = 1 + config_legacy.allow_random_events = 1 if("kick_inactive") - config.kick_inactive = text2num(value) + config_legacy.kick_inactive = text2num(value) if("show_mods") - config.show_mods = 1 + config_legacy.show_mods = 1 if("show_devs") - config.show_devs = 1 + config_legacy.show_devs = 1 if("show_event_managers") - config.show_event_managers = 1 + config_legacy.show_event_managers = 1 if("mods_can_tempban") - config.mods_can_tempban = 1 + config_legacy.mods_can_tempban = 1 if("mods_can_job_tempban") - config.mods_can_job_tempban = 1 + config_legacy.mods_can_job_tempban = 1 if("mod_tempban_max") - config.mod_tempban_max = text2num(value) + config_legacy.mod_tempban_max = text2num(value) if("mod_job_tempban_max") - config.mod_job_tempban_max = text2num(value) + config_legacy.mod_job_tempban_max = text2num(value) if("load_jobs_from_txt") load_jobs_from_txt = 1 if("alert_red_upto") - config.alert_desc_red_upto = value + config_legacy.alert_desc_red_upto = value if("alert_red_downto") - config.alert_desc_red_downto = value + config_legacy.alert_desc_red_downto = value if("alert_blue_downto") - config.alert_desc_blue_downto = value + config_legacy.alert_desc_blue_downto = value if("alert_blue_upto") - config.alert_desc_blue_upto = value + config_legacy.alert_desc_blue_upto = value if("alert_green") - config.alert_desc_green = value + config_legacy.alert_desc_green = value if("alert_delta") - config.alert_desc_delta = value + config_legacy.alert_desc_delta = value if("forbid_singulo_possession") forbid_singulo_possession = 1 if("popup_admin_pm") - config.popup_admin_pm = 1 + config_legacy.popup_admin_pm = 1 if("allow_holidays") Holiday = 1 @@ -589,7 +589,7 @@ var/list/gamemode_cache = list() use_node_bot = 1 if("irc_bot_port") - config.irc_bot_port = value + config_legacy.irc_bot_port = value if("irc_bot_export") irc_bot_export = 1 @@ -603,9 +603,9 @@ var/list/gamemode_cache = list() tick_limit_mc_init = text2num(value) if("allow_antag_hud") - config.antag_hud_allowed = 1 + config_legacy.antag_hud_allowed = 1 if("antag_hud_restricted") - config.antag_hud_restricted = 1 + config_legacy.antag_hud_restricted = 1 if("socket_talk") socket_talk = text2num(value) @@ -630,65 +630,65 @@ var/list/gamemode_cache = list() alien_to_human_ratio = text2num(value) if("assistant_maint") - config.assistant_maint = 1 + config_legacy.assistant_maint = 1 if("gateway_delay") - config.gateway_delay = text2num(value) + config_legacy.gateway_delay = text2num(value) if("continuous_rounds") - config.continous_rounds = 1 + config_legacy.continous_rounds = 1 if("ghost_interaction") - config.ghost_interaction = 1 + config_legacy.ghost_interaction = 1 if("disable_player_mice") - config.disable_player_mice = 1 + config_legacy.disable_player_mice = 1 if("uneducated_mice") - config.uneducated_mice = 1 + config_legacy.uneducated_mice = 1 if("comms_password") - config.comms_password = value + config_legacy.comms_password = value if("irc_bot_host") - config.irc_bot_host = value + config_legacy.irc_bot_host = value if("main_irc") - config.main_irc = value + config_legacy.main_irc = value if("admin_irc") - config.admin_irc = value + config_legacy.admin_irc = value if("python_path") if(value) - config.python_path = value + config_legacy.python_path = value if("use_lib_nudge") - config.use_lib_nudge = 1 + config_legacy.use_lib_nudge = 1 if("allow_cult_ghostwriter") - config.cult_ghostwriter = 1 + config_legacy.cult_ghostwriter = 1 if("req_cult_ghostwriter") - config.cult_ghostwriter_req_cultists = text2num(value) + config_legacy.cult_ghostwriter_req_cultists = text2num(value) if("character_slots") - config.character_slots = text2num(value) + config_legacy.character_slots = text2num(value) if("loadout_slots") - config.loadout_slots = text2num(value) + config_legacy.loadout_slots = text2num(value) if("allow_drone_spawn") - config.allow_drone_spawn = text2num(value) + config_legacy.allow_drone_spawn = text2num(value) if("drone_build_time") - config.drone_build_time = text2num(value) + config_legacy.drone_build_time = text2num(value) if("max_maint_drones") - config.max_maint_drones = text2num(value) + config_legacy.max_maint_drones = text2num(value) if("use_overmap") - config.use_overmap = 1 + config_legacy.use_overmap = 1 /* if("station_levels") using_map.station_levels = text2numlist(value, ";") @@ -703,52 +703,52 @@ var/list/gamemode_cache = list() using_map.player_levels = text2numlist(value, ";") */ if("expected_round_length") - config.expected_round_length = MinutesToTicks(text2num(value)) + config_legacy.expected_round_length = MinutesToTicks(text2num(value)) if("disable_welder_vision") - config.welder_vision = 0 + config_legacy.welder_vision = 0 if("allow_extra_antags") - config.allow_extra_antags = 1 + config_legacy.allow_extra_antags = 1 if("event_custom_start_mundane") var/values = text2numlist(value, ";") - config.event_first_run[EVENT_LEVEL_MUNDANE] = list("lower" = MinutesToTicks(values[1]), "upper" = MinutesToTicks(values[2])) + config_legacy.event_first_run[EVENT_LEVEL_MUNDANE] = list("lower" = MinutesToTicks(values[1]), "upper" = MinutesToTicks(values[2])) if("event_custom_start_moderate") var/values = text2numlist(value, ";") - config.event_first_run[EVENT_LEVEL_MODERATE] = list("lower" = MinutesToTicks(values[1]), "upper" = MinutesToTicks(values[2])) + config_legacy.event_first_run[EVENT_LEVEL_MODERATE] = list("lower" = MinutesToTicks(values[1]), "upper" = MinutesToTicks(values[2])) if("event_custom_start_major") var/values = text2numlist(value, ";") - config.event_first_run[EVENT_LEVEL_MAJOR] = list("lower" = MinutesToTicks(values[1]), "upper" = MinutesToTicks(values[2])) + config_legacy.event_first_run[EVENT_LEVEL_MAJOR] = list("lower" = MinutesToTicks(values[1]), "upper" = MinutesToTicks(values[2])) if("event_delay_lower") var/values = text2numlist(value, ";") - config.event_delay_lower[EVENT_LEVEL_MUNDANE] = MinutesToTicks(values[1]) - config.event_delay_lower[EVENT_LEVEL_MODERATE] = MinutesToTicks(values[2]) - config.event_delay_lower[EVENT_LEVEL_MAJOR] = MinutesToTicks(values[3]) + config_legacy.event_delay_lower[EVENT_LEVEL_MUNDANE] = MinutesToTicks(values[1]) + config_legacy.event_delay_lower[EVENT_LEVEL_MODERATE] = MinutesToTicks(values[2]) + config_legacy.event_delay_lower[EVENT_LEVEL_MAJOR] = MinutesToTicks(values[3]) if("event_delay_upper") var/values = text2numlist(value, ";") - config.event_delay_upper[EVENT_LEVEL_MUNDANE] = MinutesToTicks(values[1]) - config.event_delay_upper[EVENT_LEVEL_MODERATE] = MinutesToTicks(values[2]) - config.event_delay_upper[EVENT_LEVEL_MAJOR] = MinutesToTicks(values[3]) + config_legacy.event_delay_upper[EVENT_LEVEL_MUNDANE] = MinutesToTicks(values[1]) + config_legacy.event_delay_upper[EVENT_LEVEL_MODERATE] = MinutesToTicks(values[2]) + config_legacy.event_delay_upper[EVENT_LEVEL_MAJOR] = MinutesToTicks(values[3]) if("starlight") value = text2num(value) - config.starlight = value >= 0 ? value : 0 + config_legacy.starlight = value >= 0 ? value : 0 if("ert_species") - config.ert_species = splittext(value, ";") - if(!config.ert_species.len) - config.ert_species += SPECIES_HUMAN + config_legacy.ert_species = splittext(value, ";") + if(!config_legacy.ert_species.len) + config_legacy.ert_species += SPECIES_HUMAN if("law_zero") law_zero = value if("aggressive_changelog") - config.aggressive_changelog = 1 + config_legacy.aggressive_changelog = 1 if("default_language_prefixes") var/list/values = splittext(value, " ") @@ -759,25 +759,25 @@ var/list/gamemode_cache = list() radiation_lower_limit = text2num(value) if ("panic_bunker") - config.panic_bunker = 1 + config_legacy.panic_bunker = 1 if ("panic_bunker_message") - config.panic_bunker_message = value + config_legacy.panic_bunker_message = value if ("paranoia_logging") - config.paranoia_logging = 1 + config_legacy.paranoia_logging = 1 if("minute_click_limit") - config.minute_click_limit = text2num(value) + config_legacy.minute_click_limit = text2num(value) if("second_click_limit") - config.second_click_limit = text2num(value) + config_legacy.second_click_limit = text2num(value) if("minute_topic_limit") - config.minute_topic_limit = text2num(value) + config_legacy.minute_topic_limit = text2num(value) if("second_topic_limit") - config.second_topic_limit = text2num(value) + config_legacy.second_topic_limit = text2num(value) else log_misc("Unknown setting in configuration: '[name]'") @@ -789,59 +789,59 @@ var/list/gamemode_cache = list() switch(name) if("health_threshold_crit") - config.health_threshold_crit = value + config_legacy.health_threshold_crit = value if("health_threshold_softcrit") - config.health_threshold_softcrit = value + config_legacy.health_threshold_softcrit = value if("health_threshold_dead") - config.health_threshold_dead = value + config_legacy.health_threshold_dead = value if("show_human_death_message") - config.show_human_death_message = 1 + config_legacy.show_human_death_message = 1 if("revival_pod_plants") - config.revival_pod_plants = value + config_legacy.revival_pod_plants = value if("revival_cloning") - config.revival_cloning = value + config_legacy.revival_cloning = value if("revival_brain_life") - config.revival_brain_life = value + config_legacy.revival_brain_life = value if("organ_health_multiplier") - config.organ_health_multiplier = value / 100 + config_legacy.organ_health_multiplier = value / 100 if("organ_regeneration_multiplier") - config.organ_regeneration_multiplier = value / 100 + config_legacy.organ_regeneration_multiplier = value / 100 if("organ_damage_spillover_multiplier") - config.organ_damage_spillover_multiplier = value / 100 + config_legacy.organ_damage_spillover_multiplier = value / 100 if("organs_can_decay") - config.organs_decay = 1 + config_legacy.organs_decay = 1 if("default_brain_health") - config.default_brain_health = text2num(value) - if(!config.default_brain_health || config.default_brain_health < 1) - config.default_brain_health = initial(config.default_brain_health) + config_legacy.default_brain_health = text2num(value) + if(!config_legacy.default_brain_health || config_legacy.default_brain_health < 1) + config_legacy.default_brain_health = initial(config_legacy.default_brain_health) if("bones_can_break") - config.bones_can_break = value + config_legacy.bones_can_break = value if("limbs_can_break") - config.limbs_can_break = value + config_legacy.limbs_can_break = value if("run_speed") - config.run_speed = value + config_legacy.run_speed = value if("walk_speed") - config.walk_speed = value + config_legacy.walk_speed = value if("human_delay") - config.human_delay = value + config_legacy.human_delay = value if("robot_delay") - config.robot_delay = value + config_legacy.robot_delay = value if("monkey_delay") - config.monkey_delay = value + config_legacy.monkey_delay = value if("alien_delay") - config.alien_delay = value + config_legacy.alien_delay = value if("slime_delay") - config.slime_delay = value + config_legacy.slime_delay = value if("animal_delay") - config.animal_delay = value + config_legacy.animal_delay = value if("footstep_volume") - config.footstep_volume = text2num(value) + config_legacy.footstep_volume = text2num(value) if("use_loyalty_implants") - config.use_loyalty_implants = 1 + config_legacy.use_loyalty_implants = 1 else log_misc("Unknown setting in configuration: '[name]'") @@ -947,15 +947,15 @@ var/list/gamemode_cache = list() var/list/runnable_modes = list() for(var/game_mode in gamemode_cache) var/datum/game_mode/M = gamemode_cache[game_mode] - if(M && M.can_start() && !isnull(config.probabilities[M.config_tag]) && config.probabilities[M.config_tag] > 0) + if(M && M.can_start() && !isnull(config_legacy.probabilities[M.config_tag]) && config_legacy.probabilities[M.config_tag] > 0) runnable_modes |= M return runnable_modes /datum/configuration/legacy/proc/post_load() - //apply a default value to config.python_path, if needed - if (!config.python_path) + //apply a default value to config_legacy.python_path, if needed + if (!config_legacy.python_path) if(world.system_type == UNIX) - config.python_path = "/usr/bin/env python2" + config_legacy.python_path = "/usr/bin/env python2" else //probably windows, if not this should work anyway - config.python_path = "python" + config_legacy.python_path = "python" world.update_hub_visibility(hub_visibility) //CITADEL CHANGE - HUB CONFIG diff --git a/code/controllers/configuration_old/configuration_vr.dm b/code/controllers/configuration_old/configuration_vr.dm index 71cdd3dff3e..223822b42e9 100644 --- a/code/controllers/configuration_old/configuration_vr.dm +++ b/code/controllers/configuration_old/configuration_vr.dm @@ -11,7 +11,7 @@ var/pto_cap = 100 //Hours /hook/startup/proc/read_vs_config() - var/list/Lines = file2list("config/config.txt") + var/list/Lines = file2list("config/config_legacy.txt") for(var/t in Lines) if(!t) continue @@ -36,23 +36,23 @@ switch (name) if ("chat_webhook_url") - config.chat_webhook_url = value + config_legacy.chat_webhook_url = value if ("chat_webhook_key") - config.chat_webhook_key = value + config_legacy.chat_webhook_key = value if ("engine_map") - config.engine_map = splittext(value, ",") + config_legacy.engine_map = splittext(value, ",") if ("fax_export_dir") - config.fax_export_dir = value + config_legacy.fax_export_dir = value if ("items_survive_digestion") - config.items_survive_digestion = 1 + config_legacy.items_survive_digestion = 1 if ("limit_interns") - config.limit_interns = text2num(value) + config_legacy.limit_interns = text2num(value) if ("limit_visitors") - config.limit_visitors = text2num(value) + config_legacy.limit_visitors = text2num(value) if ("pto_cap") - config.pto_cap = text2num(value) + config_legacy.pto_cap = text2num(value) if ("time_off") - config.time_off = TRUE + config_legacy.time_off = TRUE if ("pto_job_change") - config.pto_job_change = TRUE + config_legacy.pto_job_change = TRUE return 1 diff --git a/code/controllers/master.dm b/code/controllers/master.dm index cb696997e63..53e05a72230 100644 --- a/code/controllers/master.dm +++ b/code/controllers/master.dm @@ -184,7 +184,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new var/start_timeofday = REALTIMEOFDAY // Initialize subsystems. - current_ticklimit = config.tick_limit_mc_init + current_ticklimit = config_legacy.tick_limit_mc_init for (var/datum/controller/subsystem/SS in subsystems) if (SS.flags & SS_NO_INIT) continue @@ -210,7 +210,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new world.sleep_offline = 1 #endif - world.fps = config.fps + world.fps = config_legacy.fps var/initialized_tod = REALTIMEOFDAY /* if(sleep_offline_after_initializations) diff --git a/code/controllers/subsystems/mapping_vr.dm b/code/controllers/subsystems/mapping_vr.dm index 0a94cc46348..e238ab14298 100644 --- a/code/controllers/subsystems/mapping_vr.dm +++ b/code/controllers/subsystems/mapping_vr.dm @@ -35,8 +35,8 @@ SUBSYSTEM_DEF(mapping) // Choose an engine type var/datum/map_template/engine/chosen_type = null - if (LAZYLEN(config.engine_map)) - var/chosen_name = pick(config.engine_map) + if (LAZYLEN(config_legacy.engine_map)) + var/chosen_name = pick(config_legacy.engine_map) chosen_type = map_templates[chosen_name] if(!istype(chosen_type)) error("Configured engine map [chosen_name] is not a valid engine map name!") diff --git a/code/controllers/subsystems/persist_vr.dm b/code/controllers/subsystems/persist_vr.dm index b2bcc4b2c0a..f30cc86b216 100644 --- a/code/controllers/subsystems/persist_vr.dm +++ b/code/controllers/subsystems/persist_vr.dm @@ -16,7 +16,7 @@ SUBSYSTEM_DEF(persist) // Do PTO Accruals /datum/controller/subsystem/persist/proc/update_department_hours(var/resumed = FALSE) - if(!config.time_off) + if(!config_legacy.time_off) return establish_db_connection() @@ -52,7 +52,7 @@ SUBSYSTEM_DEF(persist) dept_hours[J.department] = wait_in_hours //Cap it - dept_hours[J.department] = min(config.pto_cap, dept_hours[J.department]) + dept_hours[J.department] = min(config_legacy.pto_cap, dept_hours[J.department]) // Okay we figured it out, lets update database! diff --git a/code/controllers/subsystems/vote.dm b/code/controllers/subsystems/vote.dm index 576c4ff88c8..50e096942f4 100644 --- a/code/controllers/subsystems/vote.dm +++ b/code/controllers/subsystems/vote.dm @@ -60,7 +60,7 @@ SUBSYSTEM_DEF(vote) if(votes > greatest_votes) greatest_votes = votes - if(!config.vote_no_default && choices.len) // Default-vote for everyone who didn't vote + if(!config_legacy.vote_no_default && choices.len) // Default-vote for everyone who didn't vote var/non_voters = (clients.len - total_votes) if(non_voters > 0) if(mode == VOTE_RESTART) @@ -161,7 +161,7 @@ SUBSYSTEM_DEF(vote) /datum/controller/subsystem/vote/proc/submit_vote(ckey, newVote) if(mode) - if(config.vote_no_dead && usr.stat == DEAD && !usr.client.holder) + if(config_legacy.vote_no_dead && usr.stat == DEAD && !usr.client.holder) return if(current_votes[ckey]) choices[choices[current_votes[ckey]]]-- @@ -171,10 +171,10 @@ SUBSYSTEM_DEF(vote) else current_votes[ckey] = null -/datum/controller/subsystem/vote/proc/initiate_vote(vote_type, initiator_key, automatic = FALSE, time = config.vote_period) +/datum/controller/subsystem/vote/proc/initiate_vote(vote_type, initiator_key, automatic = FALSE, time = config_legacy.vote_period) if(!mode) if(started_time != null && !(check_rights(R_ADMIN) || automatic)) - var/next_allowed_time = (started_time + config.vote_delay) + var/next_allowed_time = (started_time + config_legacy.vote_delay) if(next_allowed_time > world.time) return 0 @@ -186,7 +186,7 @@ SUBSYSTEM_DEF(vote) if(VOTE_GAMEMODE) if(ticker.current_state >= GAME_STATE_SETTING_UP) return 0 - choices.Add(config.votable_modes) + choices.Add(config_legacy.votable_modes) for(var/F in choices) var/datum/game_mode/M = gamemode_cache[F] if(!M) @@ -205,7 +205,7 @@ SUBSYSTEM_DEF(vote) question = "Your PDA beeps with a message from Central. Would you like an additional hour to finish ongoing projects?" //Citadel change in line with player vote. choices.Add("Initiate Crew Transfer", "Extend the Shift") //Citadel change in line with player vote. if(VOTE_ADD_ANTAGONIST) - if(!config.allow_extra_antags || ticker.current_state >= GAME_STATE_SETTING_UP) + if(!config_legacy.allow_extra_antags || ticker.current_state >= GAME_STATE_SETTING_UP) return 0 for(var/antag_type in all_antag_types) var/datum/antagonist/antag = all_antag_types[antag_type] @@ -234,7 +234,7 @@ SUBSYSTEM_DEF(vote) log_vote(text) - world << "[text]\nType vote or click here to place your votes.\nYou have [config.vote_period / 10] seconds to vote." + world << "[text]\nType vote or click here to place your votes.\nYou have [config_legacy.vote_period / 10] seconds to vote." if(vote_type == VOTE_CREW_TRANSFER || vote_type == VOTE_GAMEMODE || vote_type == VOTE_CUSTOM) world << sound('sound/ambience/alarm4.ogg', repeat = 0, wait = 0, volume = 50, channel = 3) @@ -242,7 +242,7 @@ SUBSYSTEM_DEF(vote) round_progressing = 0 world << "Round start has been delayed." - time_remaining = round(config.vote_period / 10) + time_remaining = round(config_legacy.vote_period / 10) return 1 return 0 @@ -286,31 +286,31 @@ SUBSYSTEM_DEF(vote) . += "(Cancel Vote) " else . += "

Start a vote: