Skip to content

Commit 3eb411b

Browse files
authoredJan 21, 2025
Add hacks/@wealth-stress-count (#176)
1 parent b9c626d commit 3eb411b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
 

‎characters/FateCore/character.dtd

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<!ATTLIST hacks skill-modes (true|false) "false"> <!-- Fate System Toolkit -->
8989
<!ATTLIST hacks stress-base-count CDATA #IMPLIED>
9090
<!ATTLIST hacks systems-stress (true|false) "false"> <!-- Mostly for Mindjammer -->
91+
<!ATTLIST hacks wealth-stress-count CDATA #IMPLIED> <!-- Fate System Toolkit -->
9192

9293
<!ELEMENT phase-trio (phase*)>
9394
<!ELEMENT phase (events*)>

‎xslt/html/fcs/character.xsl

+11
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
<xsl:otherwise>false</xsl:otherwise>
2929
</xsl:choose>
3030
</xsl:variable>
31+
<xsl:variable name="wealthStressCount">
32+
<xsl:choose>
33+
<xsl:when test="hacks/@wealth-stress-count">
34+
<xsl:value-of select="hacks/@wealth-stress-count"/>
35+
</xsl:when>
36+
<xsl:otherwise>0</xsl:otherwise>
37+
</xsl:choose>
38+
</xsl:variable>
3139
<html>
3240
<xsl:call-template name="head">
3341
<xsl:with-param name="baseCSS">fcs</xsl:with-param>
@@ -85,6 +93,9 @@
8593
<xsl:with-param name="useSystemsStress">
8694
<xsl:value-of select="$useSystemsStress"/>
8795
</xsl:with-param>
96+
<xsl:with-param name="wealthStressCount">
97+
<xsl:value-of select="$wealthStressCount"/>
98+
</xsl:with-param>
8899
</xsl:call-template>
89100
</section>
90101
<section id="consequences">

‎xslt/html/fcs/stress.xsl

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<xsl:param name="useCreditStress"/>
77
<xsl:param name="useSkillModes"/>
88
<xsl:param name="useSystemsStress"/>
9+
<xsl:param name="wealthStressCount"/>
910
<xsl:variable name="stressBaseCount">
1011
<xsl:choose>
1112
<xsl:when test="/character/hacks/@stress-base-count">
@@ -85,6 +86,14 @@
8586
</xsl:with-param>
8687
</xsl:call-template>
8788
</xsl:if>
89+
<xsl:if test="$wealthStressCount &gt; 0">
90+
<xsl:call-template name="generic-stress">
91+
<xsl:with-param name="baseCount">
92+
<xsl:value-of select="$wealthStressCount - 1"/>
93+
</xsl:with-param>
94+
<xsl:with-param name="headerName">Wealth Stress</xsl:with-param>
95+
</xsl:call-template>
96+
</xsl:if>
8897
<xsl:if test="/character/hacks/@corruption='true'">
8998
<xsl:call-template name="corruption-stress"/>
9099
</xsl:if>

0 commit comments

Comments
 (0)
Please sign in to comment.