Moved all stats to stats tab, implemented hit dice

This commit is contained in:
Thaum
2015-02-24 13:40:50 +00:00
parent 08f02d9b36
commit 83186ec38a
19 changed files with 249 additions and 471 deletions

View File

@@ -1,10 +1,14 @@
<template name="abilityCards">
{{> strengthCard}}
{{> dexterityCard}}
{{> constitutionCard}}
{{> intelligenceCard}}
{{> wisdomCard}}
{{> charismaCard}}
<template name="abilityMiniCard">
<paper-shadow class="card double">
<div class="abilityScore white-text {{color}}">
{{> ripple color="#eee"}}
<h1 class="display1">{{../attributeValue ability}}</h1>
<h2>{{../abilityMod ability}}</h2>
</div>
<div class="abilityCardRight subhead" layout horizontal center>
{{title}}
</div>
</paper-shadow>
</template>
<template name="strengthCard">
@@ -33,7 +37,6 @@
<div class="abilityCardRight">
<h1>Dexterity</h1>
{{> skillRow name="Save" skill="dexteritySave"}}
{{> skillRow name="Initiative" skill="initiative"}}
<hr>
{{> skillRow name="Acrobatics" skill="acrobatics"}}
{{> skillRow name="Sleight of Hand" skill="sleightOfHand"}}
@@ -53,18 +56,6 @@
<h1>Constitution</h1>
{{> skillRow name="Save" skill="constitutionSave"}}
<hr>
<h1 class="attribute" hero-id="d6HitDice">
{{> hitDice hitDice="d6HitDice" d="6"}}
</h1>
<h1 class="attribute" hero-id="d8HitDice">
{{> hitDice hitDice="d8HitDice" d="8"}}
</h1>
<h1 class="attribute" hero-id="d10HitDice">
{{> hitDice hitDice="d10HitDice" d="10"}}
</h1>
<h1 class="attribute" hero-id="d12HitDice">
{{> hitDice hitDice="d12HitDice" d="12"}}
</h1>
</div>
</paper-shadow>
</template>
@@ -126,10 +117,4 @@
{{> skillRow name="Persuasion" skill="persuasion"}}
</div>
</paper-shadow>
</template>
<template name="hitDice">
{{# if ../attributeBase hitDice}}
{{../attributeValue hitDice}}d{{d}} {{../abilityMod "constitution"}}
{{/if}}
</template>