Adding spellcasting with ADD:SPELLCASTER displays a class with level 0

Description

When adding an ability which uses ADD:SPELLCASTER to give spellcasting ability, a spurious level 0 class is added to the class line in the preview OS, and on the PDF export csheet_fantasy_std_grey.xslt.

Example: A soulknife with the gifted blade archetype gets the spellcasting of a first-level gifted blade. The class line in the preview reads "Soulknife1 Gifted Blade0". The export PDF's class line reads "Soulknife (Gifted Blade), Gifted Blade".

The gifted blade archetype can be found in NFD/pathfinder/dreamscarred_press/psionics_expanded, if you want to try it yourself.

Environment

None

Activity

Show:
Andrew Maitland
July 20, 2014, 10:22 PM

This would be tricky to implement, since I have to tell the output to count the class, and yet ignore level 0 value. I'll have to see what says about this and if it is possible.

James Dempsey
July 20, 2014, 10:34 PM

What about filtering the classes on the class line with a level > 0 test?

It could be done in base.xml.ftl to sort out all of the pdf sheets.

It would need individual application to the htm sheets. They would need to be migrated to ftl first though.

Andrew Maitland
July 20, 2014, 10:49 PM

It's the count that concerns me, but yeah, add an IF right below that? Sounds like a plan.

Andrew Maitland
July 20, 2014, 11:16 PM

Completed: At revision: 24632
PDF only till Freemarker is ported to HTM/TXT

Assignee

Andrew Maitland

Reporter

Douglas Limmer

Labels

None

Epic/Theme

None

Pending User Input

None

Fix versions

Priority

Minor
Configure