Display Class(es) and spelllevel(s) in spell description

Description

When a class has a spelllist containing spells originally from multiple classes (or domains) it would be convenient to see in the spell description (when selecting the spell in the spell selection tab) to be able to see what the original source of the spell was.

A line above or below the 'Schools' line similar to the following:
Level: Cleric 0, Druid 0, Ranger 1
as is the case in the descriptions of spells in the PHB and Spell Compendium would be ideal.

Environment

None

Activity

Show:
Andrew Maitland
July 4, 2013, 3:12 AM

Updated as this sounds like only for the UI and not the OS.

H
November 5, 2013, 3:15 AM

I did some coding myself and made some changes that do what I want:

-added LISTKEY members SPELL_CLASSLEVEL and SPELL_DOMAINLEVEL
-added spell.addToListFor(ListKey.SPELL_CLASSLEVEL, token + " "+ level); to code of spell/ClassToken
-added spell.addToListFor(ListKey.SPELL_DOMAINLEVEL, token + " "+ level); to code sof spell/DomainToken
-added code to GuiToInfoFactory.getHTMLInfo to display as comma seperated lists.

I will attach the appropriate files. I hope the changes will be approved and added into the repository.
If there are problems with these changes, I would like to know what's wrong so I can take that into account when I propose other changes.

Note: If making me a Java Monkey and assigning this to me would speed things up, that's OK. I have never volunteered for this because I am severely limited in my time and am only working on this because I really want this to be included.

Stefan Radermacher
November 6, 2013, 8:15 AM

If you are content with the list of abbreviations, i.e. something like "Clr1 Sor1 Wiz1", that is actually already available via the output token SPELLMEM.v.w.x.y.SOURCELEVEL.

H
November 6, 2013, 10:37 AM

Note that I want it displayed in the GUI, not in the charactersheet. See also changes I added as attachment.
(unless I can use output tokens in the GUI, and I missed that)

James Dempsey
November 8, 2013, 4:28 PM

Thanks for the contribution! I made a few changes to the provided code to fit within the parsing rules (no direct changes to the objects - they must go via the context).

Assignee

James Dempsey

Reporter

H

Labels

Theme

None

Epic/Theme

None

Pending User Input

None

Components

Fix versions

Priority

Minor
Configure