DnDGen / DnDGen.Web

This will be the website through which people can use the dice roller, the equipment generator, the NPC generator, and the dungeon generator
http://dndgen.com
MIT License
4 stars 0 forks source link

TreasureGen API: Make item name case insensitive #1971

Closed cidthecoatrack closed 1 year ago

cidthecoatrack commented 1 year ago

We should be able to pass an item name with different casing (all lower, camel, all upper, etc.) and still have it match/read as valid.

cidthecoatrack commented 1 year ago

Also, ideally, make the enum parsing case insensitive as well - should be a boolean flag we set on the Enum.Parse method: https://stackoverflow.com/questions/8922930/net-custom-configuration-how-to-case-insensitive-parse-an-enum-configurationpro

cidthecoatrack commented 1 year ago

And if we've done the item type, treasure type, and name case insensitive, then we might as well do Power as well for consistency