From a950718ed048ebf185e4feaf3c57ec22fc4084a2 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Thu, 8 Jan 2026 18:50:13 +0100 Subject: [PATCH] tg style on this (#18997) * tg style on this * not here * . --- code/_helpers/global_lists.dm | 8 ++--- code/controllers/subsystems/events.dm | 8 ++--- code/controllers/subsystems/timer.dm | 46 +++++++++++++------------- code/modules/admin/verbs/atmosdebug.dm | 2 +- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/code/_helpers/global_lists.dm b/code/_helpers/global_lists.dm index 7957ab70ea..2ec6194216 100644 --- a/code/_helpers/global_lists.dm +++ b/code/_helpers/global_lists.dm @@ -1214,10 +1214,10 @@ var/global/datum/emergency_shuttle_controller/emergency_shuttle = new GLOBAL_LIST_EMPTY(gun_choices) -GLOBAL_ALIST_INIT(severity_to_string, alist( - EVENT_LEVEL_MUNDANE = "Mundane", - EVENT_LEVEL_MODERATE = "Moderate", - EVENT_LEVEL_MAJOR = "Major" +GLOBAL_ALIST_INIT(severity_to_string, list( + /* EVENT_LEVEL_MUNDANE = */ "Mundane", + /* EVENT_LEVEL_MODERATE = */ "Moderate", + /* EVENT_LEVEL_MAJOR = */ "Major" )) //Some global icons for the examine tab to use to display some item properties. diff --git a/code/controllers/subsystems/events.dm b/code/controllers/subsystems/events.dm index f8261ed7f1..01749c2b31 100644 --- a/code/controllers/subsystems/events.dm +++ b/code/controllers/subsystems/events.dm @@ -17,10 +17,10 @@ SUBSYSTEM_DEF(events) /datum/controller/subsystem/events/Initialize() allEvents = subtypesof(/datum/event) - event_containers = alist( - EVENT_LEVEL_MUNDANE = new/datum/event_container/mundane, - EVENT_LEVEL_MODERATE = new/datum/event_container/moderate, - EVENT_LEVEL_MAJOR = new/datum/event_container/major + event_containers = list( + /*EVENT_LEVEL_MUNDANE = */ new/datum/event_container/mundane, + /*EVENT_LEVEL_MODERATE = */ new/datum/event_container/moderate, + /*EVENT_LEVEL_MAJOR = */ new/datum/event_container/major ) if(global.using_map.use_overmap) GLOB.overmap_event_handler.create_events(global.using_map.overmap_z, global.using_map.overmap_size, global.using_map.overmap_event_areas) diff --git a/code/controllers/subsystems/timer.dm b/code/controllers/subsystems/timer.dm index 4640fc1119..8d6757c0a7 100644 --- a/code/controllers/subsystems/timer.dm +++ b/code/controllers/subsystems/timer.dm @@ -379,7 +379,7 @@ SUBSYSTEM_DEF(timer) var/spent = 0 /// Holds info about this timer, stored from the moment it was created /// Used to create a visible "name" whenever the timer is stringified - var/alist/timer_info + var/list/timer_info /// Next timed event in the bucket var/datum/timedevent/next /// Previous timed event in the bucket @@ -521,31 +521,31 @@ SUBSYSTEM_DEF(timer) /datum/timedevent/proc/bucketJoin() #if defined(TIMER_DEBUG) // Generate debug-friendly list for timer, more complex but also more expensive - timer_info = alist( - 1 = id, - 2 = timeToRun, - 3 = wait, - 4 = flags, - 5 = callBack, /* Safe to hold this directly because it's never del'd */ - 6 = "[callBack.object]", - 7 = text_ref(callBack.object), - 8 = getcallingtype(), - 9 = callBack.delegate, - 10 = callBack.arguments ? callBack.arguments.Copy() : null, - 11 = "[source]" + timer_info = list( + /* 1 = */ id, + /* 2 = */ timeToRun, + /* 3 = */ wait, + /* 4 = */ flags, + /* 5 = */ callBack, /* Safe to hold this directly because it's never del'd */ + /* 6 = */ "[callBack.object]", + /* 7 = */ text_ref(callBack.object), + /* 8 = */ getcallingtype(), + /* 9 = */ callBack.delegate, + /* 10 = */ callBack.arguments ? callBack.arguments.Copy() : null, + /* 11 = */ "[source]" ) #else // Generate a debuggable list for the timer, simpler but wayyyy cheaper, string generation (and ref/copy memes) is a bitch and this saves a LOT of time - timer_info = alist( - 1 = id, - 2 = timeToRun, - 3 = wait, - 4 = flags, - 5 = callBack, /* Safe to hold this directly because it's never del'd */ - 6 = "[callBack.object]", - 7 = getcallingtype(), - 8 = callBack.delegate, - 9 = "[source]" + timer_info = list( + /* 1 = */ id, + /* 2 = */ timeToRun, + /* 3 = */ wait, + /* 4 = */ flags, + /* 5 = */ callBack, /* Safe to hold this directly because it's never del'd */ + /* 6 = */ "[callBack.object]", + /* 7 = */ getcallingtype(), + /* 8 = */ callBack.delegate, + /* 9 = */ "[source]" ) #endif diff --git a/code/modules/admin/verbs/atmosdebug.dm b/code/modules/admin/verbs/atmosdebug.dm index 2eb8d5a3ca..88d81e4243 100644 --- a/code/modules/admin/verbs/atmosdebug.dm +++ b/code/modules/admin/verbs/atmosdebug.dm @@ -30,7 +30,7 @@ next_turf: for(var/turf/T in world) for(var/dir in GLOB.cardinal) - var/alist/connect_types = alist(1 = 0, 2 = 0, 3 = 0) + var/list/connect_types = list(0, 0, 0) for(var/obj/machinery/atmospherics/pipe in T) if(dir & pipe.initialize_directions) for(var/connect_type in pipe.connect_types)