mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
Done using this command sed -Ei 's/(\s*\S+)\s*\t+/\1 /g' code/**/*.dm We have countless examples in the codebase with this style gone wrong, and defines and such being on hideously different levels of indentation. Fixing this to keep the alignment involves tainting the blames of code your PR doesn't need to be touching at all. And ultimately, it's hideous. There are some files that this sed makes uglier. I can fix these when they are pointed out, but I believe this is ultimately for the greater good of readability. I'm more concerned with if any strings relied on this. Hi codeowners! Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
GLOBAL_LIST_EMPTY(string_lists)
|
|
|
|
/**
|
|
* Caches lists with non-numeric stringify-able values (text or typepath).
|
|
*/
|
|
/proc/string_list(list/values)
|
|
var/string_id = values.Join("-")
|
|
|
|
. = GLOB.string_lists[string_id]
|
|
|
|
if(.)
|
|
return
|
|
|
|
return GLOB.string_lists[string_id] = values
|
|
|
|
///A wrapper for baseturf string lists, to offer support of non list values, and a stack_trace if we have major issues
|
|
/proc/baseturfs_string_list(list/values, turf/baseturf_holder)
|
|
if(!islist(values))
|
|
return values //baseturf things
|
|
// return values
|
|
if(length(values) > 10)
|
|
stack_trace("The baseturfs list of [baseturf_holder] at [baseturf_holder.x], [baseturf_holder.y], [baseturf_holder.x] is [length(values)], it should never be this long, investigate. I've set baseturfs to a flashing wall as a visual queue")
|
|
return string_list(list(/turf/closed/indestructible/baseturfs_ded)) //I want this reported god damn it
|
|
return string_list(values)
|
|
|
|
/turf/closed/indestructible/baseturfs_ded
|
|
name = "Report this"
|
|
desc = "It looks like base turfs went to the fucking moon, TELL YOUR LOCAL CODER TODAY"
|
|
icon = 'icons/turf/debug.dmi'
|
|
icon_state = "fucked_baseturfs"
|