Skip to content

Commit

Permalink
Export Conditions on all common sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
LegacyKing committed Oct 4, 2024
1 parent b0b9bb6 commit b5b59a6
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ ABILITYCATEGORY:Size VISIBLE:QUALIFY EDITABLE:YES EDITPOOL:NO FRACTIONALPOOL:NO

###Block
ABILITYCATEGORY:Save Bonus VISIBLE:NO EDITABLE:YES EDITPOOL:YES FRACTIONALPOOL:NO CATEGORY:Save Bonus

ABILITYCATEGORY:Condition VISIBLE:NO EDITABLE:YES EDITPOOL:YES FRACTIONALPOOL:NO CATEGORY:Condition
ABILITYCATEGORY:Conditions VISIBLE:NO EDITABLE:YES EDITPOOL:YES FRACTIONALPOOL:NO CATEGORY:Condition TYPE:Condition PLURAL:Conditions DISPLAYLOCATION:Misc

62 changes: 29 additions & 33 deletions outputsheets/d20/fantasy/htmlxml/csheet_fantasy_std.htm.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -2095,39 +2095,35 @@ ${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerO
</#if>
<!-- STOP Words of Power Table -->


































<!-- START Conditions Table -->
<#if (pcvar('countdistinct("ABILITIES","CATEGORY=Condition","TYPE=Condition","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>condition</b></font></th>
</tr>
<@loop from=0 to=pcvar('countdistinct("ABILITIES","CATEGORY=Condition","TYPE=Condition","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")-1') ; object , object_has_next>
<#if (object % 2 = 0)><tr bgcolor="#DDDDDD"><#else><tr bgcolor="white"></#if>
<td valign="top" width="70%" class="font8"><b>
<#assign typeOfAbility = pcstring("ABILITYALL.Condition.VISIBLE.${object}.TYPE=condition.TYPE")?lower_case />
<#if (pcstring("ABILITYALL.Condition.VISIBLE.${object}.TYPE=condition.HASASPECT.Name") = "Y")>
${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=condition.ASPECT.Name')}
<@typeOfAbilitySuffix typeOfAbility=typeOfAbility />
<#else>
${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=condition')}
<@typeOfAbilitySuffix typeOfAbility=typeOfAbility />
</#if>
</b>
</td>
<td class="font8" valign="top" width="30%" align="right">[${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=condition.SOURCE')}]</td>
<tr>
<#if (object % 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.Condition.VISIBLE.${object}.TYPE=condition.DESC')}</td>
</tr>
</@loop>
</table>
</#if>
<!-- STOP Conditions Table -->



Expand Down
18 changes: 18 additions & 0 deletions outputsheets/d20/fantasy/pdf/common_sheet/block_features.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,24 @@
</xsl:if>
</xsl:template>

<!--
====================================
====================================
TEMPLATE - CONDITIONS
====================================
====================================-->
<xsl:template match="conditions">
<xsl:if test="count(condition) &gt; 0">
<xsl:call-template name="bold.list">
<xsl:with-param name="attribute" select="'conditions'" />
<xsl:with-param name="title" select="'Conditions'" />
<xsl:with-param name="list" select="condition"/>
<xsl:with-param name="name.tag" select="'name'"/>
<xsl:with-param name="desc.tag" select="'description'"/>
</xsl:call-template>
</xsl:if>
</xsl:template>

<!-- 4e Section -->

<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@
<xsl:apply-templates select="prestige_awards"/>
<xsl:apply-templates select="intelligent_items"/>
<xsl:apply-templates select="talents"/>
<xsl:apply-templates select="conditions"/>
<xsl:apply-templates select="words_of_powers"/>
<!-- Eclipse Section - Having it's own section is creating an additional blank page -->
<xsl:apply-templates select="charcreations"/>
Expand Down Expand Up @@ -440,9 +441,9 @@
<xsl:apply-templates select="salient_divine_abilities"/>
<xsl:apply-templates select="feats"/>
<xsl:apply-templates select="pfs_chronicles"/>
<xsl:apply-templates select="pfs_boons"/>
<xsl:apply-templates select="pfs_boons"/>

<xsl:apply-templates select="domains"/>
<xsl:apply-templates select="domains"/>
<xsl:apply-templates select="weapon_proficiencies"/>
<!--> <xsl:apply-templates select="proficiency_specials"/>-->
<xsl:apply-templates select="templates"/>
Expand Down
32 changes: 29 additions & 3 deletions preview/d20/fantasy/Standard.htm.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -2234,9 +2234,35 @@ ${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerO
<!-- STOP Words of Power Table -->





<!-- START Condition Table -->
<#if (pcvar('countdistinct("ABILITIES","CATEGORY=Condition","TYPE=Condition","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>ECLIPSE ABILITIES</b></font></th>
</tr>
<@loop from=0 to=pcvar('countdistinct("ABILITIES","CATEGORY=Condition","TYPE=Condition","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")-1') ; object , object_has_next>
<#if (object % 2 = 0)><tr bgcolor="#DDDDDD"><#else><tr bgcolor="white"></#if>
<td valign="top" width="70%" class="font8"><b>
<#assign typeOfAbility = pcstring("ABILITYALL.Condition.VISIBLE.${object}.TYPE=Condition.TYPE")?lower_case />
<#if (pcstring("ABILITYALL.Condition.VISIBLE.${object}.TYPE=Condition.HASASPECT.Name") = "Y")>
${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=Condition.ASPECT.Name')}
<@typeOfAbilitySuffix typeOfAbility=typeOfAbility />
<#else>
${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=Condition')}
<@typeOfAbilitySuffix typeOfAbility=typeOfAbility />
</#if>
</b>
</td>
<td class="font8" valign="top" width="30%" align="right">[${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=Condition.SOURCE')}]</td>
<tr>
<#if (object % 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.Condition.VISIBLE.${object}.TYPE=Condition.DESC')}</td>
</tr>
</@loop>
</table>
</#if>
<!-- STOP Condition Table -->



Expand Down
58 changes: 34 additions & 24 deletions preview/d20/fantasy/troubleshooting.htm.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")') != 0)> <!-- " -->
<hr />
</#if>


<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=NORMAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=NORMAL")') != 0)> <!-- " -->
<b>Special Abilities</b>
</#if>
<blockquote>
Expand All @@ -311,7 +311,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=AUTOMATIC")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=AUTOMATIC")') != 0)> <!-- " -->
<b>Special Abilities (Automatic)</b>
</#if>
<blockquote>
Expand All @@ -320,7 +320,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=VIRTUAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=VIRTUAL")') != 0)> <!-- " -->
<b>Special Abilities (Virtual)</b>
</#if>
<blockquote>
Expand All @@ -329,11 +329,11 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY")') != 0)> <!-- " -->
<hr />
</#if>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=NORMAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=NORMAL")') != 0)> <!-- " -->
<b>Special Abilities (Hidden)</b>
</#if>
<blockquote>
Expand All @@ -342,7 +342,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=AUTOMATIC")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=AUTOMATIC")') != 0)> <!-- " -->
<b>Special Abilities (Hidden Automatic)</b>
</#if>
<blockquote>
Expand All @@ -351,7 +351,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=VIRTUAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=VIRTUAL")') != 0)> <!-- " -->
<b>Special Abilities (Hidden Virtual)</b>
</#if>
<blockquote>
Expand All @@ -360,11 +360,11 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")') != 0)> <!-- " -->
<hr />
</#if>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=NORMAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=NORMAL")') != 0)> <!-- " -->
<b>Internal Abilities</b>
</#if>
<blockquote>
Expand All @@ -373,7 +373,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=AUTOMATIC")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=AUTOMATIC")') != 0)> <!-- " -->
<b>Internal Abilities (Automatic)</b>
</#if>
<blockquote>
Expand All @@ -382,7 +382,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=VIRTUAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=VIRTUAL")') != 0)> <!-- " -->
<b>Internal Abilities (Virtual)</b>
</#if>
<blockquote>
Expand All @@ -391,11 +391,11 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY")') != 0)> <!-- " -->
<hr />
</#if>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=NORMAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=NORMAL")') != 0)> <!-- " -->
<b>Internal Abilities (Hidden)</b>
</#if>
<blockquote>
Expand All @@ -404,7 +404,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=AUTOMATIC")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=AUTOMATIC")') != 0)> <!-- " -->
<b>Internal Abilities (Hidden Automatic)</b>
</#if>
<blockquote>
Expand All @@ -413,7 +413,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=VIRTUAL")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal","VISIBILITY=HIDDEN[or]VISIBILITY=DISPLAY_ONLY","NATURE=VIRTUAL")') != 0)> <!-- " -->
<b>Internal Abilities (Hidden Virtual)</b>
</#if>
<blockquote>
Expand All @@ -422,7 +422,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Skill")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Skill")') != 0)> <!-- " -->
<b>Skill Abilities</b>
</#if>
<blockquote>
Expand All @@ -431,7 +431,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Language")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Language")') != 0)> <!-- " -->
<b>Language Abilities</b>
</#if>
<blockquote>
Expand All @@ -440,7 +440,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Weapon")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Weapon")') != 0)> <!-- " -->
<b>Weapon Abilities</b>
</#if>
<blockquote>
Expand All @@ -449,7 +449,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Class")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Class")') != 0)> <!-- " -->
<b>Class Abilities</b>
</#if>
<blockquote>
Expand All @@ -458,7 +458,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Natural Attack")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Natural Attack")') != 0)> <!-- " -->
<b>Natural Attack Abilities</b>
</#if>
<blockquote>
Expand All @@ -467,7 +467,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Domain")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Domain")') != 0)> <!-- " -->
<b>Domain Abilities</b>
</#if>
<blockquote>
Expand All @@ -476,7 +476,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability")') != 0)> <!-- " -->
<b>Special Abilities (Everything)</b>
</#if>
<blockquote>
Expand All @@ -485,10 +485,20 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
</@loop>
</blockquote>

<!-- Conditions -->

<#if (pcvar('count("ABILITIES","CATEGORY=Condition")') != 0)> <!-- " -->
<b>Conditions</b>
</#if>
<blockquote>
<@loop from=0 to=pcvar('count("ABILITIES","CATEGORY=Condition")')-1 ; ability , ability_has_next>
<b>${pcstring('ABILITYALLCondition.ALL.${ability}.KEY')}</b> ${pcstring('ABILITYALL.Condition.ALL.${ability}.ASSOCIATED')}</b> [<i>${pcstring('ABILITYALL.Condition.ALL.${ability}.SOURCE')}</i>]<br>
</@loop>
</blockquote>



<#if (pcvar('count("ABILITIES","CATEGORY=Internal")') != 0)>
<#if (pcvar('count("ABILITIES","CATEGORY=Internal")') != 0)> <!-- " -->
<b>Internal Abilities (Everything)</b>
</#if>
<blockquote>
Expand Down
Loading

0 comments on commit b5b59a6

Please sign in to comment.