mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-05 04:18:28 +02:00
Epub for gm notes now prints monster spells, if specified.
This commit is contained in:
@@ -64,7 +64,17 @@
|
||||
<dt>Challenge<dd>[[ monster.challenge_rating ]] </dd>
|
||||
</dl>
|
||||
|
||||
[% if monster.spells | length > 0 %]
|
||||
<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>
|
||||
[% endfor %]
|
||||
</dl>
|
||||
[% endif %]
|
||||
|
||||
[[ monster.__doc__ | rst_to_html(top_heading_level=2) ]]
|
||||
|
||||
|
||||
|
||||
[% endfor %]
|
||||
|
||||
Reference in New Issue
Block a user