GM notes EPUB now contains monster spell descriptions.

This commit is contained in:
Mark Wolfman
2021-07-13 21:43:28 -05:00
parent d26f520666
commit 3df1906156
5 changed files with 64 additions and 40 deletions
+12 -1
View File
@@ -68,7 +68,10 @@
<dl class="monster-spell-list">
[% for level, spells in monster.spells | groupby('level') %]
<dt>[% if level == 0 %]Cantrips[% else %]Level [[ level ]][% endif %]</dt>
<dd>[[ spells | map(attribute='name') | join(', ') ]]</dd>
<dd>
[% for spell in spells %][% if not loop.first %], [% endif %]
<a href="#monster-spells-[[ spell.name | to_heading_id ]]">[[ spell.name ]]</a>[% endfor %]
</dd>
[% endfor %]
</dl>
[% endif %]
@@ -77,4 +80,12 @@
[% endfor %]
<h1 id="monster-spells">Monster Spells</h1>
[% from "spellblock.html" import spellblock %]
[% for spell in spell_list | sort(attribute="name") %]
[[ spellblock(spell, id_base="monster-spells") ]]
[% endfor %]