Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature pages: Sort spells by level and name #170

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PJBrs
Copy link
Contributor

@PJBrs PJBrs commented Aug 23, 2024

These four patches help optionally sorting spells by both level and name, instead of by name only. I'll admit that the first patch is slightly off-topic.

The first patch adds a short overview of a character's spellcasting details to the spellcasting section of the feature pages, see example:

image

The second patch adds an commandline option to sort spells by level and name:
--spells-by-level, -S Order spells by level in the feature pages and implements it.

The third patch implements headers and pdf bookmarks for each spell level in the feature pages.

The fourth patch adds documentation.

These patches work for both the regular and the fancy latex pages.

Previously, spells were one long list organised alphabatically. This
patch makes it possible to either sort spells alphabetically or by
level (and then alphabetically within each level).

The patch implements this feature using command-line options. Either
the user can specify --spell-order or -S to order by level and name.
Default is alphabetical order.

Furthermore, this patch removes two places in character.py in which
spells were ordered, but the resulting order wasn't used anywhere
anyway.
This patch adds a subsection for each spell level when the user
has selected to order spells by level.

The patch keeps count of the spell level and adds a new header
with every increase of spell level in the list of spells (i.e., headers
like: Cantrips; 1st Level Spells; 2nd Level Spells, and so on).

Add a test as well to check that the right spell headers also
show up for the spells sorted by level.
This patch documents the makesheets commandline option
to order spells by level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant