tassaron / dnd-character

library for making Dungeons & Dragons 5e characters as serializable data
https://pypi.org/project/dnd-character/
Eclipse Public License 2.0
44 stars 17 forks source link

Initiative score calculation #11

Open gergo-szabo opened 1 year ago

gergo-szabo commented 1 year ago

It would be a nice feature but implementation seems problematic.

Basic calculation: score = D20 + modifiers

Advantages + Modifiers:

1, Dexterity modifier

2, Alert feat (+5)

3, Class features - Some are not passive ...

4, Items - There might be more!

5, Active spells - Might not be the full list. Also seems tricky to implement

tassaron commented 1 year ago

Thanks for that list. As you said, it would be tricky to implement with the current state of the library, but this gives a good idea of what the long-term goal could be.

All this stuff could be implemented and tests written for it, and eventually such properties could be more 'automatically' handled when more code is written around class features, feats, spells, etc. But that would be a large project.