|
| 1 | +{#with resource} |
| 2 | +{#if asYamlStatblock} |
| 3 | +- name: {name.quoted} |
| 4 | + desc: > |
| 5 | + ({#each traits}{it.withoutTitle}{#if it_hasNext}, {/if}{/each}){#if notes} {notes.join(", ")};{/if}{#if savingThrow} |
| 6 | + **Saving Throw** {savingThrow};{/if}{#if onset} |
| 7 | + **Onset** {onset};{/if}{#if maxDuration} |
| 8 | + **Maximum Duration** {maxDuration};{/if}{#if effect} |
| 9 | + **Effect** {effect};{/if} |
| 10 | + {#each stages}**{it.key}** {it.value.text}{#if it.value.duration} ({it.value.duration}){/if}{#if it_hasNext}; {/if}{/each} |
| 11 | +{#else} |
1 | 12 | ````ad-inline-affliction |
2 | | -{#if resource.name} |
3 | | -title: {resource.name}{#if resource.formattedLevel} _{resource.formattedLevel}_{/if} |
| 13 | +{#if name} |
| 14 | +title: {name}{#if formattedLevel} _{formattedLevel}_{/if} |
4 | 15 | {/if} |
5 | 16 |
|
6 | | -{#if resource.traits} |
7 | | -{#each resource.traits}{it} {/each} |
8 | | -{/if}{#if resource.text} |
9 | | -{resource.text} |
| 17 | +{#if traits} |
| 18 | +{#each traits}{it} {/each} |
| 19 | +{/if}{#if text} |
| 20 | +{text} |
10 | 21 |
|
11 | | -{/if}{#if resource.notes} |
12 | | -{#each resource.notes}{it}{#if it_hasNext}, {/if}{/each} |
| 22 | +{/if}{#if notes} |
| 23 | +{#each notes}{it}{#if it_hasNext}, {/if}{/each} |
13 | 24 |
|
14 | | -{/if}{#if resource.savingThrow} |
15 | | -- **Saving Throws**: {resource.savingThrow} |
16 | | -{/if}{#if resource.onset} |
17 | | -- **Onset**: {resource.onset} |
18 | | -{/if}{#if resource.maxDuration} |
19 | | -- **Maximum Duration**: {resource.maxDuration} |
20 | | -{/if}{#if resource.effect} |
| 25 | +{/if}{#if savingThrow} |
| 26 | +- **Saving Throws**: {savingThrow} |
| 27 | +{/if}{#if onset} |
| 28 | +- **Onset**: {onset} |
| 29 | +{/if}{#if maxDuration} |
| 30 | +- **Maximum Duration**: {maxDuration} |
| 31 | +{/if}{#if effect} |
21 | 32 |
|
22 | | -**Effect** {resource.effect} |
23 | | -{/if}{#if resource.stages} |
| 33 | +**Effect** {effect} |
| 34 | +{/if}{#if stages} |
24 | 35 |
|
25 | 36 | ## Stages |
26 | 37 |
|
27 | | -{#each resource.stages} |
| 38 | +{#each stages} |
28 | 39 | **{it.key}** {it.value.text}{#if it.value.duration } ({it.value.duration}){/if} |
29 | 40 | {/each} |
30 | | -{/if}{#if resource.source} |
31 | | -*Source: {resource.source}* |
| 41 | +{/if}{#if source} |
| 42 | +*Source: {source}* |
32 | 43 | {/if} |
33 | | -{#if resource.tags}%% {#each resource.tags}#{it} {/each}%%{/if} |
| 44 | +{#if tags}%% {#each tags}#{it} {/each}%%{/if} |
34 | 45 | ```` |
| 46 | +{/if} |
| 47 | +{/with} |
0 commit comments