Character.spells_known.maximum is the maximum number of spells a character can know. Same for spells_prepared and cantrips_known. If you try to exceed the spell list, you get a ValueError. Only exception is if you add spells while the character is serialized -- I think it makes sense to allow this as a workaround.
This closes #18
Character.spells_known.maximum
is the maximum number of spells a character can know. Same forspells_prepared
andcantrips_known
. If you try to exceed the spell list, you get a ValueError. Only exception is if you add spells while the character is serialized -- I think it makes sense to allow this as a workaround.