Files
Bubberstation/code/__HELPERS/string_lists.dm
SkyratBot ced0a88007 [MIRROR] Turns simple mob vars into string lists and fixes string assoc lists (#1047)
* 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>
2020-09-29 12:35:03 +02:00

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