I created a Monster dataclass to be a thin wrapper on top of SRD_monsters. It's not necessarily complete yet but dataclasses seem promising.
They will all be serializable similar to the Character object. They can have some new fields like UUID for telling copies apart. In future maybe they could be improved on more, but the goal for now is to give more confidence in the structure of the data. Hopefully this will make the library easier to use.
todo
[x] Monster dataclass
[x] Equipment/Item dataclass
[x] Spell dataclass
[x] Class dataclass
[x] Change Character inventory to use new Item objects
I created a Monster dataclass to be a thin wrapper on top of
SRD_monsters
. It's not necessarily complete yet but dataclasses seem promising.They will all be serializable similar to the Character object. They can have some new fields like UUID for telling copies apart. In future maybe they could be improved on more, but the goal for now is to give more confidence in the structure of the data. Hopefully this will make the library easier to use.
todo