updates fancy output to use \DndSpellHeader as provided by the template

This commit is contained in:
matsavage
2021-05-04 21:37:19 +01:00
parent 508c93911f
commit ac65947750
+36 -26
View File
@@ -1,31 +1,41 @@
[% for spl in character.spells %]
[% if use_dnd_decorations %]
\DndSpellHeader
{[[ spl.name ]]}
{[% if spl.level > 0 %][[ spl.magic_school ]] Level [[ spl.level ]][% else %][[ spl.magic_school ]] Cantrip[% endif %]}
{[[ spl.casting_time ]]}
{[[ spl.casting_range ]]}
{[[ spl.component_string ]]}
{[[ spl.duration ]]}
[[ spl.__doc__ | rst_to_latex(top_heading_level=1) ]]
[% else %]
\section*{[[ spl.name ]]}
[% if spl.level > 0 %] %
\textit{[[ spl.magic_school ]] Level [[ spl.level ]]} %
[% else %] %
\textit{[[ spl.magic_school ]] Cantrip} %
[% endif %] %
[% if spl.ritual and spl.concentration %]%
(\textit{ritual}, \textit{concentration})%
[% elif spl.ritual %]%
(\textit{ritual})%
[% elif spl.concentration %]%
(\textit{concentration})%
[% endif %]%
%% \noindent
\begin{description}
\setlength{\itemsep}{\zerosep}%
\setlength{\parskip}{0pt}%
\item [Casting Time:] [[ spl.casting_time ]] \\
\item [Duration:] [[ spl.duration ]] \\
\item [Range:] [[ spl.casting_range ]] \\
\item [Components:] [[ spl.component_string ]]
\end{description}
% \vspace{\zerosep}
[% if spl.level > 0 %] %
\textit{[[ spl.magic_school ]] Level [[ spl.level ]]} %
[% else %] %
\textit{[[ spl.magic_school ]] Cantrip} %
[% endif %] %
[% if spl.ritual and spl.concentration %]%
(\textit{ritual}, \textit{concentration})%
[% elif spl.ritual %]%
(\textit{ritual})%
[% elif spl.concentration %]%
(\textit{concentration})%
[% endif %]%
%% \noindent
\begin{description}
\setlength{\itemsep}{\zerosep}%
\setlength{\parskip}{0pt}%
\item [Casting Time:] [[ spl.casting_time ]] \\
\item [Duration:] [[ spl.duration ]] \\
\item [Range:] [[ spl.casting_range ]] \\
\item [Components:] [[ spl.component_string ]]
\end{description}
% \vspace{\zerosep}
[[ spl.__doc__ | rst_to_latex(top_heading_level=1) ]]
[[ spl.__doc__ | rst_to_latex(top_heading_level=1) ]]
[% endif %]
[% endfor %]