\section*{Magic Items}

[% if use_dnd_decorations %]
    [% for mitem in character.magic_items %]
        \DndItemHeader{[[ mitem.name ]]}{[% if mitem.item_type %][[ mitem.item_type ]], [[ mitem.rarity.lower() ]][% else %][[ mitem.rarity ]] item[% endif %][% if mitem.requires_attunement %] (requires attunement)[% endif %]}
        [% if mitem.needs_implementation %] %
            \textbf{**Not included in stats on Character Sheet} %
        [% endif %] %
                    
        [[ mitem.__doc__|rst_to_latex ]]
    [% endfor %]
[% else %]
    [% for mitem in character.magic_items %]

    \subsection*{[[ mitem.name ]]}

    \noindent
    \textbf{Requires Attunement:} [[ mitem.requires_attunement ]] \\
    \textbf{Rarity:} [[ mitem.rarity ]] \\

    [% if mitem.needs_implementation %] %
        \textbf{**Not included in stats on Character Sheet} %
    [% endif %] %
                
    [[ mitem.__doc__|rst_to_latex ]]

    [% endfor %]
[% endif %]