From 76eddfa59ff5cac2cb6da4bb754b61ef63cf3d39 Mon Sep 17 00:00:00 2001 From: CesarBaylina <72105993+CesarBaylina@users.noreply.github.com> Date: Wed, 22 Feb 2023 22:10:02 +0100 Subject: [PATCH] Adds clarity to the associative list data type in wiremod (#73536) ## About The Pull Request Once pulled, these changes will adjust how the associative list data type is shown like on circuits and the description of the index table component. ![assoclists1](https://user-images.githubusercontent.com/72105993/219969642-e9d76aa7-4f8e-40e5-a864-ae473b78c34e.png) ![assoclists2](https://user-images.githubusercontent.com/72105993/219969644-00b570ea-0c43-4190-9eb9-c8ac97bd1522.png) ## Why It's Good For The Game Given the entry difficulty level of the circuits system, some players may find themselves overwhelmed and frustrated seeing that their index table component's output is not connecting to the index list component's input, despite there being an index associative list component they may not be aware of. These changes should hopefully lead players to learn more about associative lists and how different they are from normal lists. Just adding "assoc." to the descriptor should lead players to search the term in the component printer and find the index associative table. ## Changelog :cl: qol: Made associative lists more apparent in circuits. /:cl: --- code/modules/wiremod/components/list/index_table.dm | 4 ++-- code/modules/wiremod/datatypes/composite/assoc_list.dm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/wiremod/components/list/index_table.dm b/code/modules/wiremod/components/list/index_table.dm index 66d8968b339..b5afc89fb3f 100644 --- a/code/modules/wiremod/components/list/index_table.dm +++ b/code/modules/wiremod/components/list/index_table.dm @@ -1,11 +1,11 @@ /** * # Index Table Component * - * Gets the row of a table using the index inputted. Will return no value if the index is invalid or a proper table is not returned. + * Gets the row of a table as an associative list using the index inputted. Will return no value if the index is invalid or a proper table is not returned. */ /obj/item/circuit_component/index_table display_name = "Index Table" - desc = "Gets the row of a table using the index inputted. Will return no value if the index is invalid or a proper table is not returned." + desc = "Gets the row of a table as an associative list using the index inputted. Will return no value if the index is invalid or a proper table is not returned." category = "List" circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL diff --git a/code/modules/wiremod/datatypes/composite/assoc_list.dm b/code/modules/wiremod/datatypes/composite/assoc_list.dm index 23cc36acf83..1a603a5ff9c 100644 --- a/code/modules/wiremod/datatypes/composite/assoc_list.dm +++ b/code/modules/wiremod/datatypes/composite/assoc_list.dm @@ -4,7 +4,7 @@ expected_types = 2 /datum/circuit_composite_template/assoc_list/generate_name(list/composite_datatypes) - return "[composite_datatypes[1]], [composite_datatypes[2]] list" + return "[composite_datatypes[1]], [composite_datatypes[2]] assoc. list" /datum/circuit_datatype/composite_instance/assoc_list color = "white"