open5e/open5e-api

Refactor ItemCategory to be more generic, and fit Creatures.

Closed this issue · 2 comments

Refactor ItemCategory to be more generic, and fit Creatures.

The word "Category" is used with many different purposes in the SRD. For example [Light, Medium, Heavy] are listed as categories of armor, [Small,Medium,Large] are listed as Size Categories, etc.

What if... any Object (which both Creature and Item inherit from), has a category? And this would map to:
[Monster, Miscellaneous Creatures, Nonplayer Characters] based on the appendix they are in for the SRD and
[Armor, Jewelry, Gem, Tools, etc.] for items. I think that's a pretty good idea actually. Maybe I can refactor ItemCategory to be ObjectCategory and have all of this.

Eh actually I'm rethinking this. While "category" is used in both scenarios, I can't think of a real use case for this overall. This just adds complexity.