Allow PCGen to identify ability score bonuses from ability objects granted by equipment as equipment bonuses

Description

Currently PCGen can only identify ability score bonuses directly granted by equipment objects or equipment modifier objects as coming from equipment. If the bonus is delegated into an ability, is loses this association, and the skews the output of the STAT.NOEQUIP output token.

PCGen must be able to identify these delegated bonuses as coming from equipment.

Environment

None

Activity

Show:
Stefan Radermacher
June 29, 2016, 11:45 AM

Unfortunately there seems to be no programmatic way to identify how the object that granted a certain ability object to the character.

However, there is a workaround. PCGen can test if a bonus comes from an ability, and if so, if that ability has TYPE:Equipment. This is a hard-code, but for the time being it makes sense, especially considering that the STAT output token is destined to become deprecated in the long run anyway.

Stefan Radermacher
June 29, 2016, 12:15 PM

#1347

Assignee

Stefan Radermacher

Reporter

Stefan Radermacher

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

No

Components

Fix versions

Affects versions

Priority

Minor
Configure