From 19448d7f9304fcf871538e7f89cb5e07fe2d1769 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 13 Dec 2019 02:54:59 +0100 Subject: make the build templates use kondou --- blocking/blocking.tex | 140 ++++++++++++++-------------- blocking/htmlconf.cfg | 17 ++++ blocking/images/druid-build.png | Bin 0 -> 459709 bytes blocking/images/druid-traits.png | Bin 155927 -> 0 bytes blocking/images/firebrand-build.png | Bin 0 -> 540546 bytes blocking/images/firebrand-skills.png | Bin 58229 -> 0 bytes blocking/images/guardian-traits.png | Bin 155737 -> 0 bytes blocking/images/mesmer-build.png | Bin 0 -> 410172 bytes blocking/images/mesmer-fullblock-build.png | Bin 0 -> 531734 bytes blocking/images/mesmer-fullblock-skills.png | Bin 62040 -> 0 bytes blocking/images/mesmer-fullblock-traits.png | Bin 154878 -> 0 bytes blocking/images/mesmer-skills.png | Bin 60286 -> 0 bytes blocking/images/mesmer-traits.png | Bin 101197 -> 0 bytes blocking/images/mirage-fullblock-build.png | Bin 0 -> 546735 bytes blocking/images/mirage-skills.png | Bin 62097 -> 0 bytes blocking/images/mirage-traits.png | Bin 156348 -> 0 bytes blocking/images/rev-skills.png | Bin 63590 -> 0 bytes blocking/images/revenant-build.png | Bin 0 -> 105985 bytes blocking/images/scrapper-build.png | Bin 0 -> 514317 bytes blocking/images/scrapper-skills.png | Bin 55701 -> 0 bytes blocking/images/scrapper-traits.png | Bin 151845 -> 0 bytes blocking/images/warrior-build.png | Bin 0 -> 351103 bytes blocking/images/warrior-traits.png | Bin 158388 -> 0 bytes blocking/kondou.sty | 28 ++++++ 24 files changed, 114 insertions(+), 71 deletions(-) create mode 100644 blocking/htmlconf.cfg create mode 100644 blocking/images/druid-build.png delete mode 100644 blocking/images/druid-traits.png create mode 100644 blocking/images/firebrand-build.png delete mode 100644 blocking/images/firebrand-skills.png delete mode 100644 blocking/images/guardian-traits.png create mode 100644 blocking/images/mesmer-build.png create mode 100644 blocking/images/mesmer-fullblock-build.png delete mode 100644 blocking/images/mesmer-fullblock-skills.png delete mode 100644 blocking/images/mesmer-fullblock-traits.png delete mode 100644 blocking/images/mesmer-skills.png delete mode 100644 blocking/images/mesmer-traits.png create mode 100644 blocking/images/mirage-fullblock-build.png delete mode 100644 blocking/images/mirage-skills.png delete mode 100644 blocking/images/mirage-traits.png delete mode 100644 blocking/images/rev-skills.png create mode 100644 blocking/images/revenant-build.png create mode 100644 blocking/images/scrapper-build.png delete mode 100644 blocking/images/scrapper-skills.png delete mode 100644 blocking/images/scrapper-traits.png create mode 100644 blocking/images/warrior-build.png delete mode 100644 blocking/images/warrior-traits.png create mode 100644 blocking/kondou.sty (limited to 'blocking') diff --git a/blocking/blocking.tex b/blocking/blocking.tex index 48fcdfa..2fab855 100644 --- a/blocking/blocking.tex +++ b/blocking/blocking.tex @@ -2,11 +2,12 @@ \input{../preamble.tex} \usepackage[normalem]{ulem} +\usepackage{kondou} % Metadata \title{Triple Trouble Eggblocking Guide} \author{Peter Parker IV \& others} -\date{2019-08-14 \color{gray}{r0}} +\date{2019-12-13 \color{gray}{r0}} \hypersetup{ pdftitle={Triple Trouble Eggblocking Guide}, @@ -292,11 +293,8 @@ As for your weapon choices or second legend choice, it doesn't really matter. As Revenant, you can rely on dodges for evading the spins, as changing your position doesn't affect the tablet's position. If you want, you can bring a \href{https://wiki.guildwars2.com/wiki/Staff#Revenant}{Staff}, which gives you access to \skill{Staff}{3}{\href{https://wiki.guildwars2.com/wiki/Warding_Rift}{Warding Rift}}, a two second long block. -\begin{figure}[ht] - \centering - \includegraphics[width=0.3\textwidth]{images/rev-skills.png} - \caption{Utility skills for Revenant blocking. Fully determined by your legend choice. \gwtskills} -\end{figure} +\kondou{images/revenant-build.png}{Skills for Revenant blocking.} + {Revenant -l "Ventari"} \subsection{Mesmer} @@ -385,17 +383,16 @@ For this build, Dueling offers some utility through \href{https://wiki.guildwars As for the actual blocking, it is \emph{exactly the same} as the base Mesmer egg blocking described in Section \ref{sss:mesmer-basic-eggblocking}. All we've done so far is to add some utility, which can help you stay in place (on the Sweet Spot) and block some AoEs through the use of Signets. -\begin{figure}[ht] - \centering - \includegraphics[width=0.5\textwidth]{images/mesmer-traits.png} - \caption{Traitlines for Mesmer blocking, with important traits selected. \gwtskills} -\end{figure} - -\begin{figure}[ht] - \centering - \includegraphics[width=0.3\textwidth]{images/mesmer-skills.png} - \caption{Utility skills for Mesmer blocking. \gwtskills} -\end{figure} +\kondou{images/mesmer-build.png}{Build for Mesmer blocking.}{ + Mesmer + -t dueling::bot: + -t inspiration::top:bot + -s "Signet of the Ether" + -s "Mimic" + -s "Signet of Midnight" + -s "Feedback" + -s "Time Warp" +} \subsubsection{Professional Mode - Full Blocking} @@ -423,17 +420,17 @@ However, \uskill{Signet of Illuisions} (due to the trait \trait{Blurred Inscript This method of blocking requires you to be on the Sweet Spot, so make sure to use your evading tools and your invulnerability from Signets to avoid moving too much. You should be able to block every big spin with either \skill{Sword}{2}{Blurred Frenzy} or \skill{Sword}{4}{Illusionary Riposte}, and every small spin with either \uskill{Signet of the Ether} or \uskill{Signet of Midnight} (which will also block the AoEs). -\begin{figure}[ht] - \centering - \includegraphics[width=0.5\textwidth]{images/mesmer-fullblock-traits.png} - \caption{Traitlines for Mesmer fullblocking. \gwtskills} -\end{figure} - -\begin{figure}[ht] - \centering - \includegraphics[width=0.3\textwidth]{images/mesmer-fullblock-skills.png} - \caption{Utility skills for Mesmer fullblocking. \gwtskills} -\end{figure} +\kondou{images/mesmer-fullblock-build.png}{Build for Mesmer fullblocking.}{ + Mesmer + -t dueling::bot: + -t inspiration::top:bot + -t illusions:bot:top: + -s "Signet of the Ether" + -s "Signet of Illusions" + -s "Signet of Midnight" + -s "Feedback" + -s "Time Warp" +} \subsubsection{Alternation - Mirage Full Blocking} @@ -449,17 +446,17 @@ Keep in mind the UI trick to cast \uskill{Jaunt} in-place, without moving! Additionally, you can take \href{https://wiki.guildwars2.com/wiki/Deceptive_Evasion}{\trait{Deceptive Evasion}} (Dueling, last column down). This will generate a clone whenever you dodge. -\begin{figure}[ht] - \centering - \includegraphics[width=0.5\textwidth]{images/mirage-traits.png} - \caption{Traitlines for Mirage blocking. \gwtskills} -\end{figure} - -\begin{figure}[ht] - \centering - \includegraphics[width=0.3\textwidth]{images/mirage-skills.png} - \caption{Utility skills for Mirage blocking. \gwtskills} -\end{figure} +\kondou{images/mirage-fullblock-build.png}{Build for Mirage fullblocking.}{ + Mesmer + -t dueling::bot:bot + -t inspiration::top:bot + -t mirage:top:: + -s "Signet of the Ether" + -s "Signet of Illusions" + -s "Signet of Midnight" + -s "Feedback" + -s "Jaunt" +} \subsection{Elementalist} @@ -630,17 +627,17 @@ Make sure however to not use the final charge, as otherwise the Mantra will go o Using Firebrand also gives you access to \href{https://wiki.guildwars2.com/wiki/Chapter_3:_Valiant_Bulwark}{\uskill{Chapter 3: Valiant Bulwark}}, the third skill in your \uskill{Tome of Courage} (F3), which is another reflect dome. However, accessing it takes some time, as it has a one second cast time in total. -\begin{figure}[ht] - \centering - \includegraphics[width=0.5\textwidth]{images/guardian-traits.png} - \caption{Traitlines for Guardian/Firebrand blocking. \gwtskills} -\end{figure} - -\begin{figure}[ht] - \centering - \includegraphics[width=0.3\textwidth]{images/firebrand-skills.png} - \caption{Utility skills for Firebrand blocking. \gwtskills} -\end{figure} +\kondou{images/firebrand-build.png}{Build for Guardian/Firebrand blocking.}{ + Guardian + -t valor::top:mid + -t honor::mid:top + -t firebrand::top: + -s "Mantra of Solace" + -s "Wall of Reflection" + -s "Retreat" + -s "Shield of the Avenger" + -s "Renewed Focus" +} \subsection{Engineer} @@ -681,17 +678,16 @@ Therefore you can take any turret to get some extra reflects, such as the \href{ Note though that the reflect takes some time before it activates, so you must be fast. And don't forget to pick up the turrets after they're no longer needed, otherwise their cooldown will not start to tick down. -\begin{figure}[ht] - \centering - \includegraphics[width=0.5\textwidth]{images/scrapper-traits.png} - \caption{Traitlines for Scrapper blocking. \gwtskills} -\end{figure} - -\begin{figure}[ht] - \centering - \includegraphics[width=0.3\textwidth]{images/scrapper-skills.png} - \caption{Utility skills for Scrapper blocking. \gwtskills} -\end{figure} +\kondou{images/scrapper-build.png}{Build for Scrapper blocking.}{ + Engineer + -t alchemy:::top + -t inventions::top: + -t scrapper::: + -s "Healing Turret" + -s "Tool Kit" + -s "Bulwark Gyro" + -s "Elixir S" +} \subsection{Ranger} @@ -718,11 +714,12 @@ If you are running Druid, you can take the trait \href{https://wiki.guildwars2.c This will cause every skill in your Celestial Avatar to generate Might for ten allies, allowing you to stack a lot of Might during burn phases. You can use \skill{CA}{4}{\href{https://wiki.guildwars2.com/wiki/Rejuvenating_Tides}{Rejuvenating Tides}} and \skill{CA}{5}{\href{https://wiki.guildwars2.com/wiki/Natural_Convergence}{Natural Convergence}} to stack Might up fast. -\begin{figure}[ht] - \centering - \includegraphics[width=0.5\textwidth]{images/druid-traits.png} - \caption{Traitlines for offensive Druids. They don't affect blocking. \gwtskills} -\end{figure} +\kondou{images/druid-build.png}{Traitlines for offensive Druids. They don't affect blocking.}{ + Ranger + -t marksmanship:bot:: + -t "nature magic::mid:top" + -t druid:::top +} \subsection{Thief} @@ -780,11 +777,12 @@ This means you are free to take whatever you like, for example, you can bring \h If you are unsure about which traitlines to take, you can take Discipline, which gives you \href{https://wiki.guildwars2.com/wiki/Fast_Hands}{\trait{Fast Hands}} (Discipline, minor trait), which reduces your weapon swap cooldown. Additionally, you can find \href{https://wiki.guildwars2.com/wiki/Blademaster}{\trait{Blademaster}} in Arms (middle column down), reducing the recharge on your Sword block. -\begin{figure}[ht] - \centering - \includegraphics[width=0.5\textwidth]{images/warrior-traits.png} - \caption{Traitlines for Warrior blocking. Only \uskill{Shield Master} is required. \gwtskills} -\end{figure} +\kondou{images/warrior-build.png}{Traitlines for Warrior blocking. Only \uskill{Shield Master} is required.}{ + Warrior + -t defense:top:bot: + -t discipline::: + -t arms::bot: +} \subsubsection{Spellbreaker} diff --git a/blocking/htmlconf.cfg b/blocking/htmlconf.cfg new file mode 100644 index 0000000..930da6d --- /dev/null +++ b/blocking/htmlconf.cfg @@ -0,0 +1,17 @@ +\Preamble{xhtml} +\Configure{graphics*} + {jpg} + {% + \Picture[pict]{\csname Gin@base\endcsname .jpg + \space width="\the\dimexpr \expandafter\csname Gin@req@width\endcsname * 1.5"}% + \special{t4ht+@File: \csname Gin@base\endcsname.jpg} + } +\Configure{graphics*} + {png} + {% + \Picture[pict]{\csname Gin@base\endcsname .png + \space width="\the\dimexpr \expandafter\csname Gin@req@width\endcsname * 1.5"}% + \special{t4ht+@File: \csname Gin@base\endcsname.png} + } +\begin{document} +\EndPreamble diff --git a/blocking/images/druid-build.png b/blocking/images/druid-build.png new file mode 100644 index 0000000..783f026 Binary files /dev/null and b/blocking/images/druid-build.png differ diff --git a/blocking/images/druid-traits.png b/blocking/images/druid-traits.png deleted file mode 100644 index a50a999..0000000 Binary files a/blocking/images/druid-traits.png and /dev/null differ diff --git a/blocking/images/firebrand-build.png b/blocking/images/firebrand-build.png new file mode 100644 index 0000000..8db3038 Binary files /dev/null and b/blocking/images/firebrand-build.png differ diff --git a/blocking/images/firebrand-skills.png b/blocking/images/firebrand-skills.png deleted file mode 100644 index bdaef13..0000000 Binary files a/blocking/images/firebrand-skills.png and /dev/null differ diff --git a/blocking/images/guardian-traits.png b/blocking/images/guardian-traits.png deleted file mode 100644 index 229af3f..0000000 Binary files a/blocking/images/guardian-traits.png and /dev/null differ diff --git a/blocking/images/mesmer-build.png b/blocking/images/mesmer-build.png new file mode 100644 index 0000000..dbf7727 Binary files /dev/null and b/blocking/images/mesmer-build.png differ diff --git a/blocking/images/mesmer-fullblock-build.png b/blocking/images/mesmer-fullblock-build.png new file mode 100644 index 0000000..34eb2b6 Binary files /dev/null and b/blocking/images/mesmer-fullblock-build.png differ diff --git a/blocking/images/mesmer-fullblock-skills.png b/blocking/images/mesmer-fullblock-skills.png deleted file mode 100644 index 7c90398..0000000 Binary files a/blocking/images/mesmer-fullblock-skills.png and /dev/null differ diff --git a/blocking/images/mesmer-fullblock-traits.png b/blocking/images/mesmer-fullblock-traits.png deleted file mode 100644 index 9caecba..0000000 Binary files a/blocking/images/mesmer-fullblock-traits.png and /dev/null differ diff --git a/blocking/images/mesmer-skills.png b/blocking/images/mesmer-skills.png deleted file mode 100644 index c86c50a..0000000 Binary files a/blocking/images/mesmer-skills.png and /dev/null differ diff --git a/blocking/images/mesmer-traits.png b/blocking/images/mesmer-traits.png deleted file mode 100644 index 88516a1..0000000 Binary files a/blocking/images/mesmer-traits.png and /dev/null differ diff --git a/blocking/images/mirage-fullblock-build.png b/blocking/images/mirage-fullblock-build.png new file mode 100644 index 0000000..b1d7e97 Binary files /dev/null and b/blocking/images/mirage-fullblock-build.png differ diff --git a/blocking/images/mirage-skills.png b/blocking/images/mirage-skills.png deleted file mode 100644 index 92fba76..0000000 Binary files a/blocking/images/mirage-skills.png and /dev/null differ diff --git a/blocking/images/mirage-traits.png b/blocking/images/mirage-traits.png deleted file mode 100644 index 4c113f9..0000000 Binary files a/blocking/images/mirage-traits.png and /dev/null differ diff --git a/blocking/images/rev-skills.png b/blocking/images/rev-skills.png deleted file mode 100644 index 5be9349..0000000 Binary files a/blocking/images/rev-skills.png and /dev/null differ diff --git a/blocking/images/revenant-build.png b/blocking/images/revenant-build.png new file mode 100644 index 0000000..f9a003a Binary files /dev/null and b/blocking/images/revenant-build.png differ diff --git a/blocking/images/scrapper-build.png b/blocking/images/scrapper-build.png new file mode 100644 index 0000000..c816f91 Binary files /dev/null and b/blocking/images/scrapper-build.png differ diff --git a/blocking/images/scrapper-skills.png b/blocking/images/scrapper-skills.png deleted file mode 100644 index 98d6456..0000000 Binary files a/blocking/images/scrapper-skills.png and /dev/null differ diff --git a/blocking/images/scrapper-traits.png b/blocking/images/scrapper-traits.png deleted file mode 100644 index 0381229..0000000 Binary files a/blocking/images/scrapper-traits.png and /dev/null differ diff --git a/blocking/images/warrior-build.png b/blocking/images/warrior-build.png new file mode 100644 index 0000000..42ad166 Binary files /dev/null and b/blocking/images/warrior-build.png differ diff --git a/blocking/images/warrior-traits.png b/blocking/images/warrior-traits.png deleted file mode 100644 index 0b00e91..0000000 Binary files a/blocking/images/warrior-traits.png and /dev/null differ diff --git a/blocking/kondou.sty b/blocking/kondou.sty new file mode 100644 index 0000000..dd5b9a8 --- /dev/null +++ b/blocking/kondou.sty @@ -0,0 +1,28 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{kondou}[2019/12/13 Kondou] + +\RequirePackage{listings} + +\newcommand{\kondou}[3]{ + \newread\myinput + % We use '\jobname.temp' to create a uniquely-named temporary file + \immediate\write18{kondou -q -o #1 #3 | tr -d '[]&' > '\jobname.temp'} + \openin\myinput=\jobname.temp + % The group localizes the change to \endlinechar + \bgroup + \endlinechar=-1 + \read\myinput to \localline + % Since everything in the group is local, we have to explicitly make the + % assignment global + \global\let\thechatcode\localline + \egroup + \closein\myinput + % Clean up after ourselves + \immediate\write18{rm -f -- '\jobname.temp'} + + \begin{figure}[ht] + \centering + \includegraphics[width=0.7\textwidth]{#1} + \caption[]{#2 \\ (\texttt{[\&\thechatcode])}} + \end{figure} +} -- cgit v1.2.3