harbingerofme / DebugToolkit

Debugging commands for Risk of Rain 2. Previously known as RoR2Cheats.
https://thunderstore.io/package/IHarbHD/DebugToolkit/
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Added filtering to listing commands (list_item, etc) #129

Closed DestroyedClone closed 1 year ago

DestroyedClone commented 1 year ago

Modified Lists.CCList_interactables, Lists.CCListAI, Lists.CCListBody, Lists.CCListDirectorCards, Items.CCListItem, and Items.CCListEquip to accept one argument to use filter out results based on the string. Updated Lang for the associated lists Added StringFinder.GetEquipsFromPartial, StringFinder.GetItemsFromPartial, and StringFinder.GetInteractableSpawnCards based off their existing individual methods for use in list_equip, list_item for code clarity.

I didn't use an external method for list_body and list_ai since I was unsure of how to implement their external StringFinder methods (since their original methods returned a string). I didn't include list_player with the queries since I did not feel it as useful as the rest. I was also unsure about list_Directorcards. image

DestroyedClone commented 1 year ago

I edited it instead of removing it, otherwise the output would be undesirable: list_interactables isc => Would list everything, since all of them had isc spawn_interactable isc => Would spawn the first instance in list