Skip to content

Commit

Permalink
OS-511 (PCGen#4301)
Browse files Browse the repository at this point in the history
Words of power spells are not shown on character sheet when taken (no output of word spells)
  • Loading branch information
LegacyKing authored Oct 7, 2018
1 parent 3132092 commit 13061dd
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
10 changes: 10 additions & 0 deletions outputsheets/base.xml.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,16 @@
<@abilityBlock category="Class Feature" nature="ALL" hidden=false typeName="Class Feature" nodeName="class_feature" />
</class_features>

<!--
====================================
====================================
Words of Power
====================================
====================================-->
<words_of_powers>
<@abilityBlock category="Words of Power" nature="ALL" hidden=false typeName="WordsOfPowerOutput" nodeName="words_of_power" />
</words_of_powers>

<!--
====================================
====================================
Expand Down
17 changes: 17 additions & 0 deletions outputsheets/d20/fantasy/pdf/common_sheet/block_features.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@
<xsl:with-param name="desc.tag" select="'description'"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!--
====================================
====================================
TEMPLATE - WORDS OF POWER
====================================
====================================-->
<xsl:template match="words_of_powers">
<xsl:if test="count(words_of_power) &gt; 0">
<xsl:call-template name="bold.list">
<xsl:with-param name="attribute" select="'class_features'" />
<xsl:with-param name="title" select="'Words of Power'" />
<xsl:with-param name="list" select="words_of_power"/>
<xsl:with-param name="name.tag" select="'name'"/>
<xsl:with-param name="desc.tag" select="'description'"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!--
====================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@
<xsl:apply-templates select="afflictions"/>
<xsl:apply-templates select="racial_traits"/>
<xsl:apply-templates select="class_features"/>
<xsl:apply-templates select="words_of_powers"/>
<xsl:apply-templates select="special_attacks"/>
<xsl:apply-templates select="special_qualities"/>
<xsl:apply-templates select="prestige_awards"/>
Expand Down
30 changes: 29 additions & 1 deletion preview/d20/fantasy/Standard.htm.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,35 @@ ${pcstring('ABILITYALL.Class Feature.VISIBLE.${ClassFeature}.TYPE=Class Feature.
</#if>
<!-- STOP Class Features Table -->


<!-- START Words of Power Table -->
<#if (pcvar('countdistinct("ABILITIES","CATEGORY=Words of Power","TYPE=WordsOfPowerOutput","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")') > 0)>
<table width="100%" cellspacing="0" cellpadding="2" summary="Feat Table">
<tr>
<th bgcolor="black" align="center" colspan="2"><font color="white" style="font-size: small"><b>Words of Power</b></font></th>
</tr>
<@loop from=0 to=pcvar('countdistinct("ABILITIES","CATEGORY=Words of Power","TYPE=WordsOfPowerOutput","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")-1') ; ClassFeature , ClassFeature_has_next>
<#if (ClassFeature % 2 = 0)><tr bgcolor="#DDDDDD"><#else><tr bgcolor="white"></#if>
<td valign="top" width="70%" class="font8"><b>
<#assign typeOfAbility = pcstring("ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerOutput.TYPE")?lower_case />
<#if (pcstring("ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerOutput.HASASPECT.Name") = "Y")>
${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerOutput.ASPECT.Name')}
<@typeOfAbilitySuffix typeOfAbility=typeOfAbility />
<#else>
${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerOutput')}
<@typeOfAbilitySuffix typeOfAbility=typeOfAbility />
</#if>
</b>
</td>
<td class="font8" valign="top" width="30%" align="right">[${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerOutput.SOURCE')}]</td>
<tr>
<#if (ClassFeature % 2 = 0)><tr bgcolor="#DDDDDD"><#else><tr bgcolor="white"></#if>
<td class="font8" valign="top" align="indent" colspan="2">&#160;&#160;&#160;&#160;
${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerOutput.DESC')}</td>
</tr>
</@loop>
</table>
</#if>
<!-- STOP Words of Power Table -->



Expand Down

0 comments on commit 13061dd

Please sign in to comment.