-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.hbs
87 lines (79 loc) · 1.99 KB
/
template.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{{#*inline "classFeature"}}
<div class="class-feature">
<h3>{{ name }}</h3>
<div class="class-feature--description">
{{{ description }}}
</div>
{{#if choices}}
<ul class="class-feature--choices">
{{#each choices}}
<li>{{ . }}</li>
{{/each}}
</ul>
{{/if}}
{{#if options}}
{{#each options}}
<h5>{{ name }}</h6>
<p>{{{ description }}}</p>
{{/each}}
{{/if}}
</div>
{{/inline}}
{{#*inline "spellBlock"}}
<div class="spell-block">
<div class="spell-block--section">
<h4>{{ name }}</h4>
<em>
{{#if isCantrip}}
{{ school }} Cantrip
{{else}}
Level {{ level }} {{ school }}
{{/if}}
</em>
<hr>
<ul>
<li><strong> Casting Time: </strong> {{ castingTime.castingTimeInterval }} {{ castingTime.castingTimeUnit }}</li>
<li>
<strong> Range: </strong>
{{#with range}}
{{#equals origin "Ranged"}}
{{ rangeValue }}ft
{{/equals}}
{{#equals origin "Touch"}}
Touch
{{/equals}}
{{#if aoeType}}/{{aoeValue}}ft {{aoeType}}{{/if}}
{{/with}}
</li>
<li><strong> Components: </strong> {{ components }} {{ componentsDescription }}</li>
<li>
<strong> Duration: </strong>
{{#with duration}}
{{#if durationType}} {{durationType}} {{/if}}
{{#if durationInterval}} {{durationInterval}} {{/if}}
{{#if durationUnit}} {{durationUnit}} {{/if}}
{{/with}}
</li>
</ul>
</div>
{{{ description }}}
</div>
{{/inline}}
<div class="phb-sheet">
<h2>Class Features</h2>
{{#each classFeatures}}
{{>classFeature}}
{{/each}}
{{#present feats}}
<h2>Feats</h2>
{{/present}}
{{#each feats}}
{{>classFeature}}
{{/each}}
{{#present spells}}
<h2>Spells</h2>
{{/present}}
{{#each spells}}
{{>spellBlock}}
{{/each}}
</div>