Skip to content

Commit

Permalink
Add boolean option for Single Stresss Track
Browse files Browse the repository at this point in the history
  • Loading branch information
kbaird committed Mar 19, 2018
1 parent b51da60 commit bd07bb2
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 57 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Currently supported variants include
- [Skill Modes](http://fate-srd.com/fate-system-toolkit/skill-modes) (from
[Fate System Toolkit](http://fate-srd.com/fate-system-toolkit/))
- Credit Stress and Systems Stress (as in [Mindjammer](https://mindjammerpress.com/mindjammer/))
- Single Stress Track and Stress Base Count

### Other useful URLs
- http://www.faterpg.com/
Expand Down
13 changes: 7 additions & 6 deletions characters/FateCore/character.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@
<!ATTLIST consequence severity (Mild|Moderate|Severe|Mild-Physical|Mild-Mental) #REQUIRED>

<!ELEMENT hacks (#PCDATA)>
<!ATTLIST hacks conditions (true|false) "false"> <!-- Fate System Toolkit -->
<!ATTLIST hacks corruption (true|false) "false"> <!-- Fate Freeport Companion -->
<!ATTLIST hacks credit-stress (true|false) "false"> <!-- Mostly for Mindjammer -->
<!ATTLIST hacks skill-modes (true|false) "false"> <!-- Fate System Toolkit -->
<!ATTLIST hacks stress-base-count CDATA #IMPLIED>
<!ATTLIST hacks systems-stress (true|false) "false"> <!-- Mostly for Mindjammer -->
<!ATTLIST hacks conditions (true|false) "false"> <!-- Fate System Toolkit -->
<!ATTLIST hacks corruption (true|false) "false"> <!-- Fate Freeport Companion -->
<!ATTLIST hacks credit-stress (true|false) "false"> <!-- Mostly for Mindjammer -->
<!ATTLIST hacks skill-modes (true|false) "false"> <!-- Fate System Toolkit -->
<!ATTLIST hacks single-stress-track (true|false) "false">
<!ATTLIST hacks stress-base-count CDATA #IMPLIED>
<!ATTLIST hacks systems-stress (true|false) "false"> <!-- Mostly for Mindjammer -->

<!ELEMENT phase-trio (phase*)>
<!ELEMENT phase (events*)>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
you can justify having read about the action you’re attempting.
</stunt>
</stunts>
<hacks conditions="true"/>
<hacks conditions="true" single-stress-track="true" stress-base-count="3"/>
<phase-trio>
<phase num="1">
<events>Some events</events>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ <h1>Zird the Arcane</h1>
</dd>
</dl></fieldset></td></tr>
</table></section><wbr></wbr><section id="stress"><table id="stress_table">
<tr><th class="sectionheader" colspan="4">Physical Stress</th></tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr><th class="sectionheader" colspan="4">Mental Stress</th></tr>
<tr><th class="sectionheader" colspan="5">Stress</th></tr>
<tr>
<td>1</td>
<td>2</td>
Expand Down
100 changes: 56 additions & 44 deletions xslt/html/fcs/stress.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,62 @@
</xsl:choose>
</xsl:variable>
<table id="stress_table">
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Physical Stress</xsl:with-param>
<xsl:with-param name="skillName">Physique</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Mental Stress</xsl:with-param>
<xsl:with-param name="skillName">Will</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
<xsl:if test="$useCreditStress='true'">
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Credit Stress</xsl:with-param>
<xsl:with-param name="skillName">Resources</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="$useSystemsStress='true'">
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Systems Stress</xsl:with-param>
<xsl:with-param name="skillName">Systems</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:choose>
<xsl:when test="/character/hacks/@single-stress-track='true'">
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Stress</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Physical Stress</xsl:with-param>
<xsl:with-param name="skillName">Physique</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Mental Stress</xsl:with-param>
<xsl:with-param name="skillName">Will</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
<xsl:if test="$useCreditStress='true'">
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Credit Stress</xsl:with-param>
<xsl:with-param name="skillName">Resources</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="$useSystemsStress='true'">
<xsl:call-template name="generic-stress">
<xsl:with-param name="baseCount">
<xsl:value-of select="$stressBaseCount"/>
</xsl:with-param>
<xsl:with-param name="headerName">Systems Stress</xsl:with-param>
<xsl:with-param name="skillName">Systems</xsl:with-param>
<xsl:with-param name="useSkillModes">
<xsl:value-of select="$useSkillModes"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</table>
</xsl:template>
</xsl:stylesheet>

0 comments on commit bd07bb2

Please sign in to comment.