mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-17 05:03:28 +00:00
* Merge pull request #53937 from Rohesie/damage Turns simple mob vars into string lists and fixes string assoc lists * Turns simple mob vars into string lists and fixes string assoc lists Co-authored-by: nemvar <47324920+nemvar@users.noreply.github.com>
15 lines
288 B
Plaintext
15 lines
288 B
Plaintext
GLOBAL_LIST_EMPTY(string_lists)
|
|
|
|
/**
|
|
* Caches lists with non-numeric stringify-able values (text or typepath).
|
|
*/
|
|
/datum/proc/string_list(list/values)
|
|
var/string_id = values.Join("-")
|
|
|
|
. = GLOB.string_lists[string_id]
|
|
|
|
if(.)
|
|
return
|
|
|
|
return GLOB.string_lists[string_id] = values
|