%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\usepackage{xcolor}

\newfontfamily{\sw}{sw-rpg-icons.ttf}
\DeclareTextFontCommand{\textsw}{\sw}

\newcommand{\icon}[2][black]{%
    \textsw{\textcolor{#1}{\char"#2}}%
}

\newcommand{\iconbig}[2][black]{
    \hspace{-7pt}\raisebox{-3pt}{
        \textsw{\textcolor{#1}{\Large\char"#2}}
    }\hspace{-4pt}
}

\newcommand{\iconhuge}[2][black]{
    \hspace{-8pt}\raisebox{-3.5pt}{
        \textsw{\textcolor{#1}{\fontsize{16}{19}\selectfont\char"#2}}
    }\hspace{-7pt}
}

\definecolor{boostblue}{HTML}{76CDDB}
\definecolor{difficultypurple}{HTML}{52287E}
\definecolor{abilitygreen}{HTML}{13AC4E}
\definecolor{challengered}{HTML}{751317}
\definecolor{proficiencyyellow}{HTML}{FEF035}

\newcommand{\checkbox}{\icon[white]{E93D}}

\newcommand{\advantage}{\icon{E900}}
\newcommand{\despair}{\icon{E904}}
\newcommand{\failure}{\icon{E905}}
\newcommand{\success}{\icon{E90B}}
\newcommand{\threat}{\icon{E90D}}
\newcommand{\triumph}{\icon{E90F}}

\newcommand{\setback}{\icon[black]{E93D}}
\newcommand{\boost}{\icon[boostblue]{E93D}}
\newcommand{\difficulty}{\icon[difficultypurple]{E93F}}
\newcommand{\ability}{\icon[abilitygreen]{E93F}}
\newcommand{\challenge}{\icon[challengered]{E941}}
\newcommand{\proficiency}{\icon[proficiencyyellow]{E941}}
\newcommand{\force}{\icon[black]{E942}}

\newcommand{\lightforce}{\icon[black]{E909}}
\newcommand{\darkforce}{\icon[black]{E908}}
\newcommand{\forcepoint}{\icon[black]{E90A}}

\newcommand{\simple}{Simple (-)}
\newcommand{\easy}{Easy (\difficulty)}
\newcommand{\average}{Average (\difficulty\difficulty)}
\newcommand{\hard}{Hard (\difficulty\difficulty\difficulty)}
\newcommand{\daunting}{Daunting (\difficulty\difficulty\difficulty\difficulty)}
\newcommand{\formidable}{Daunting (\difficulty\difficulty\difficulty\difficulty\difficulty)}
