You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the "view inventory" and "view inventory [inventory-item]" commands don't support uppercase letters in inventory item names. This is because the CLI team lowercases all strings inputted by the user before passing them to our do_action functions. This causes our display_inventory and display_inventory_item functions in game-state/player.c to be unable to find items with capital letters, given that they are passed lowercased strings. This should be a fairly simple fix that involves ignoring capitalization in the display_inventory and display_inventory_item functions.
The same applies to skills in the display_tree and display_skill_description functions in skilltrees/skilltree.c for the "view skills" and "view skills [skill-name]" commands.
The text was updated successfully, but these errors were encountered:
HarrisonD123
changed the title
Support uppercase letters in inventory item names for "view inventory" command
Support uppercase letters in inventory item names for the "view inventory" command and skill names for the "view skills" command
Jun 3, 2022
Currently, the "view inventory" and "view inventory [inventory-item]" commands don't support uppercase letters in inventory item names. This is because the CLI team lowercases all strings inputted by the user before passing them to our do_action functions. This causes our display_inventory and display_inventory_item functions in game-state/player.c to be unable to find items with capital letters, given that they are passed lowercased strings. This should be a fairly simple fix that involves ignoring capitalization in the display_inventory and display_inventory_item functions.
The same applies to skills in the display_tree and display_skill_description functions in skilltrees/skilltree.c for the "view skills" and "view skills [skill-name]" commands.
The text was updated successfully, but these errors were encountered: