From b5b59a6954b3d8c9398c43b68bc346b2273ac116 Mon Sep 17 00:00:00 2001 From: LegacyKing Date: Fri, 4 Oct 2024 13:04:39 -0700 Subject: [PATCH] Export Conditions on all common sheets --- .../core_essentials/ce_abilitycategories.lst | 4 ++ .../htmlxml/csheet_fantasy_std.htm.ftl | 62 +++++++++---------- .../pdf/common_sheet/block_features.xslt | 18 ++++++ .../pdf/fantasy_master_common_blocks.xslt | 5 +- preview/d20/fantasy/Standard.htm.ftl | 32 +++++++++- preview/d20/fantasy/troubleshooting.htm.ftl | 58 ++++++++++------- system/gameModes/Pathfinder/base.xml.ftl | 14 ++++- 7 files changed, 129 insertions(+), 64 deletions(-) diff --git a/data/pathfinder/paizo/roleplaying_game/core_essentials/ce_abilitycategories.lst b/data/pathfinder/paizo/roleplaying_game/core_essentials/ce_abilitycategories.lst index 25684a9bb77..9129beaed78 100644 --- a/data/pathfinder/paizo/roleplaying_game/core_essentials/ce_abilitycategories.lst +++ b/data/pathfinder/paizo/roleplaying_game/core_essentials/ce_abilitycategories.lst @@ -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 + diff --git a/outputsheets/d20/fantasy/htmlxml/csheet_fantasy_std.htm.ftl b/outputsheets/d20/fantasy/htmlxml/csheet_fantasy_std.htm.ftl index 16e6982cb27..c23e1444525 100644 --- a/outputsheets/d20/fantasy/htmlxml/csheet_fantasy_std.htm.ftl +++ b/outputsheets/d20/fantasy/htmlxml/csheet_fantasy_std.htm.ftl @@ -2095,39 +2095,35 @@ ${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerO - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +<#if (pcvar('countdistinct("ABILITIES","CATEGORY=Condition","TYPE=Condition","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")') > 0)> + + + + +<@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)><#else> + + + +<#if (object % 2 = 0)><#else> + + + +
condition
+<#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 /> + + +[${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=condition.SOURCE')}]
     +${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=condition.DESC')}
+ + diff --git a/outputsheets/d20/fantasy/pdf/common_sheet/block_features.xslt b/outputsheets/d20/fantasy/pdf/common_sheet/block_features.xslt index ffe0fc3d4ec..2b84af81eb3 100644 --- a/outputsheets/d20/fantasy/pdf/common_sheet/block_features.xslt +++ b/outputsheets/d20/fantasy/pdf/common_sheet/block_features.xslt @@ -530,6 +530,24 @@ + + + + + + + + + + + + + @@ -440,9 +441,9 @@ - + - + --> diff --git a/preview/d20/fantasy/Standard.htm.ftl b/preview/d20/fantasy/Standard.htm.ftl index 5e17cef15b0..0bea59d89d1 100644 --- a/preview/d20/fantasy/Standard.htm.ftl +++ b/preview/d20/fantasy/Standard.htm.ftl @@ -2234,9 +2234,35 @@ ${pcstring('ABILITYALL.Words of Power.VISIBLE.${ClassFeature}.TYPE=WordsOfPowerO - - - + +<#if (pcvar('countdistinct("ABILITIES","CATEGORY=Condition","TYPE=Condition","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")') > 0)> + + + + +<@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)><#else> + + + +<#if (object % 2 = 0)><#else> + + + +
ECLIPSE ABILITIES
+<#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 /> + + +[${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=Condition.SOURCE')}]
     +${pcstring('ABILITYALL.Condition.VISIBLE.${object}.TYPE=Condition.DESC')}
+ + diff --git a/preview/d20/fantasy/troubleshooting.htm.ftl b/preview/d20/fantasy/troubleshooting.htm.ftl index 5d4cd3be6d5..6a09665e648 100644 --- a/preview/d20/fantasy/troubleshooting.htm.ftl +++ b/preview/d20/fantasy/troubleshooting.htm.ftl @@ -297,12 +297,12 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC] -<#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)>
-<#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)> Special Abilities
@@ -311,7 +311,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Special Abilities (Automatic)
@@ -320,7 +320,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Special Abilities (Virtual)
@@ -329,11 +329,11 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)>
-<#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)> Special Abilities (Hidden)
@@ -342,7 +342,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Special Abilities (Hidden Automatic)
@@ -351,7 +351,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Special Abilities (Hidden Virtual)
@@ -360,11 +360,11 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)>
-<#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)> Internal Abilities
@@ -373,7 +373,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Internal Abilities (Automatic)
@@ -382,7 +382,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Internal Abilities (Virtual)
@@ -391,11 +391,11 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)>
-<#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)> Internal Abilities (Hidden)
@@ -404,7 +404,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Internal Abilities (Hidden Automatic)
@@ -413,7 +413,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#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)> Internal Abilities (Hidden Virtual)
@@ -422,7 +422,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#if (pcvar('count("ABILITIES","CATEGORY=Skill")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Skill")') != 0)> Skill Abilities
@@ -431,7 +431,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#if (pcvar('count("ABILITIES","CATEGORY=Language")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Language")') != 0)> Language Abilities
@@ -440,7 +440,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#if (pcvar('count("ABILITIES","CATEGORY=Weapon")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Weapon")') != 0)> Weapon Abilities
@@ -449,7 +449,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#if (pcvar('count("ABILITIES","CATEGORY=Class")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Class")') != 0)> Class Abilities
@@ -458,7 +458,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#if (pcvar('count("ABILITIES","CATEGORY=Natural Attack")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Natural Attack")') != 0)> Natural Attack Abilities
@@ -467,7 +467,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#if (pcvar('count("ABILITIES","CATEGORY=Domain")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Domain")') != 0)> Domain Abilities
@@ -476,7 +476,7 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
-<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Special Ability")') != 0)> Special Abilities (Everything)
@@ -485,10 +485,20 @@ ${pcstring('WEAPON.${weap}.MISC')}[MISC]
+ + +<#if (pcvar('count("ABILITIES","CATEGORY=Condition")') != 0)> +Conditions + +
+<@loop from=0 to=pcvar('count("ABILITIES","CATEGORY=Condition")')-1 ; ability , ability_has_next> +${pcstring('ABILITYALLCondition.ALL.${ability}.KEY')} ${pcstring('ABILITYALL.Condition.ALL.${ability}.ASSOCIATED')} [${pcstring('ABILITYALL.Condition.ALL.${ability}.SOURCE')}]
+ +
-<#if (pcvar('count("ABILITIES","CATEGORY=Internal")') != 0)> +<#if (pcvar('count("ABILITIES","CATEGORY=Internal")') != 0)> Internal Abilities (Everything)
diff --git a/system/gameModes/Pathfinder/base.xml.ftl b/system/gameModes/Pathfinder/base.xml.ftl index 950fb48c5ff..9d343492816 100644 --- a/system/gameModes/Pathfinder/base.xml.ftl +++ b/system/gameModes/Pathfinder/base.xml.ftl @@ -1560,7 +1560,7 @@ ==================================== ====================================--> - <#if (pcvar('countdistinct("ABILITIES";"CATEGORY=Archetype";"VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY";"TYPE=Archetype")') = 0)> + <#if (pcvar('countdistinct("ABILITIES";"CATEGORY=Archetype";"VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY";"TYPE=Archetype")') = 0)> <#else> @@ -1581,7 +1581,7 @@ ==================================== SPECIAL QUALITIES ==================================== - ====================================--> + ==================================== --> <@abilityBlock category="Special Ability" nature="ALL" hidden=false typeName="SpecialQuality" nodeName="special_quality" /> @@ -1868,6 +1868,16 @@ <@abilityBlock category="Special Ability" nature="ALL" hidden=false typeName="PFSBoon" nodeName="pfs_boon" /> + + + <@abilityBlock category="Condition" nature="ALL" hidden=false typeName="Condition" nodeName="condition" /> + +