Newer
Older
\newcounter{season}
\setcounter{season}{\month}
\setcounter{cycle}{\month}
\roundUp{cycle}
\newcommand\cycleDesc{}
\newcommand\setCycle[2]{%
\setcounter{cycle}{#1}% Month
\ifnum\value{cycle}>6%
\addtocounter{cycle}{-6}%
\fi%
\ifnum\value{cycle}>3%
\addtocounter{cycle}{-3}%
\fi%
\addtocounter{cycle}{-1}%
\multiply\value{cycle} by 30%
\addtocounter{cycle}{#2}% Day
\divide\value{cycle} by 14%
\addtocounter{cycle}{0}%
\ifnum\value{cycle}>5%
\setcounter{cycle}{0}%
\fi%
\setTemperature%
%%% State a Cycle's name.
\newcommand\showCycle[1][\value{cycle}]{%
\ifcase#1%
\glsentrytext{cOne}%
\renewcommand\cycleDesc{\glsentrydesc{cOne}}%
\or%
\glsentrytext{cTwo}%
\renewcommand\cycleDesc{\glsentrydesc{cTwo}}%
\or%
\glsentrytext{cThree}%
\renewcommand\cycleDesc{\glsentrydesc{cThree}}%
\or%
\glsentrytext{cFour}%
\renewcommand\cycleDesc{\glsentrydesc{cFour}}%
\or%
\glsentrytext{cFive}%
\renewcommand\cycleDesc{\glsentrydesc{cFive}}%
\else
\glsentrytext{cSix}%
\renewcommand\cycleDesc{\glsentrydesc{cSix}}%
\fi%
}
%%% Remove %%%
\newcommand\showSeason[1][\value{season}]{%
\ifcase#1\or%
\fi%
}
\newcommand\showAstroEvents{%
\or%
\or%
eclipse%
\or%
\or%
\or%
\or%
\or%
\or%
\or%
\or%
eclipse%
\else%
\fi%
}
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{0}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{2}%
\or%
\setcounter{temperature}{3}%
\else
\fi%
}
\newcommand\showTemperature{%
\ifcase\value{temperature}%
cold%
hot%
\else%
scorching%
\newcommand\showInterval[1]{%
\ifcase#1%