aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2019-12-13 02:54:59 +0100
committerDaniel Schadt <kingdread@gmx.de>2019-12-13 02:54:59 +0100
commit19448d7f9304fcf871538e7f89cb5e07fe2d1769 (patch)
treee404c38b54e36881dfe657dd8a94c3eaa61c07d9
parentec9e15bc2b90a68c16ebc1104064f3adeab73dcd (diff)
downloadopen-tt-guides-19448d7f9304fcf871538e7f89cb5e07fe2d1769.tar.gz
open-tt-guides-19448d7f9304fcf871538e7f89cb5e07fe2d1769.tar.bz2
open-tt-guides-19448d7f9304fcf871538e7f89cb5e07fe2d1769.zip
make the build templates use kondou
-rw-r--r--Makefile.inc8
-rw-r--r--blocking/blocking.tex140
-rw-r--r--blocking/htmlconf.cfg17
-rw-r--r--blocking/images/druid-build.pngbin0 -> 459709 bytes
-rw-r--r--blocking/images/druid-traits.pngbin155927 -> 0 bytes
-rw-r--r--blocking/images/firebrand-build.pngbin0 -> 540546 bytes
-rw-r--r--blocking/images/firebrand-skills.pngbin58229 -> 0 bytes
-rw-r--r--blocking/images/guardian-traits.pngbin155737 -> 0 bytes
-rw-r--r--blocking/images/mesmer-build.pngbin0 -> 410172 bytes
-rw-r--r--blocking/images/mesmer-fullblock-build.pngbin0 -> 531734 bytes
-rw-r--r--blocking/images/mesmer-fullblock-skills.pngbin62040 -> 0 bytes
-rw-r--r--blocking/images/mesmer-fullblock-traits.pngbin154878 -> 0 bytes
-rw-r--r--blocking/images/mesmer-skills.pngbin60286 -> 0 bytes
-rw-r--r--blocking/images/mesmer-traits.pngbin101197 -> 0 bytes
-rw-r--r--blocking/images/mirage-fullblock-build.pngbin0 -> 546735 bytes
-rw-r--r--blocking/images/mirage-skills.pngbin62097 -> 0 bytes
-rw-r--r--blocking/images/mirage-traits.pngbin156348 -> 0 bytes
-rw-r--r--blocking/images/rev-skills.pngbin63590 -> 0 bytes
-rw-r--r--blocking/images/revenant-build.pngbin0 -> 105985 bytes
-rw-r--r--blocking/images/scrapper-build.pngbin0 -> 514317 bytes
-rw-r--r--blocking/images/scrapper-skills.pngbin55701 -> 0 bytes
-rw-r--r--blocking/images/scrapper-traits.pngbin151845 -> 0 bytes
-rw-r--r--blocking/images/warrior-build.pngbin0 -> 351103 bytes
-rw-r--r--blocking/images/warrior-traits.pngbin158388 -> 0 bytes
-rw-r--r--blocking/kondou.sty28
-rw-r--r--preamble.tex1
26 files changed, 118 insertions, 76 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 3453fd9..510a197 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -3,8 +3,8 @@ all: pdf html
pdf:
mkdir -p build
- pdflatex -output-directory build $(NAME).tex
- pdflatex -output-directory build $(NAME).tex
+ pdflatex -shell-escape -output-directory build $(NAME).tex
+ pdflatex -shell-escape -output-directory build $(NAME).tex
minify:
ps2pdf -dPrinted=false build/$(NAME).pdf build/$(NAME).min.pdf
@@ -17,8 +17,8 @@ ifeq ($(findstring htmlconf.cfg,$(wildcard *.cfg)),)
else
$(eval HTMLCONF=--config htmlconf)
endif
- make4ht -d html $(HTMLCONF) $(NAME).tex
- make4ht -d html $(HTMLCONF) $(NAME).tex
+ make4ht -s -d html $(HTMLCONF) $(NAME).tex
+ make4ht -s -d html $(HTMLCONF) $(NAME).tex
cat ../custom.css >> html/$(NAME).css
rm $(NAME).4ct $(NAME).4tc $(NAME).aux $(NAME).dvi $(NAME).idv $(NAME).lg $(NAME).log $(NAME).tmp $(NAME).xref $(NAME).css $(NAME)*.html
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
--- /dev/null
+++ b/blocking/images/druid-build.png
Binary files differ
diff --git a/blocking/images/druid-traits.png b/blocking/images/druid-traits.png
deleted file mode 100644
index a50a999..0000000
--- a/blocking/images/druid-traits.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/firebrand-build.png b/blocking/images/firebrand-build.png
new file mode 100644
index 0000000..8db3038
--- /dev/null
+++ b/blocking/images/firebrand-build.png
Binary files differ
diff --git a/blocking/images/firebrand-skills.png b/blocking/images/firebrand-skills.png
deleted file mode 100644
index bdaef13..0000000
--- a/blocking/images/firebrand-skills.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/guardian-traits.png b/blocking/images/guardian-traits.png
deleted file mode 100644
index 229af3f..0000000
--- a/blocking/images/guardian-traits.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/mesmer-build.png b/blocking/images/mesmer-build.png
new file mode 100644
index 0000000..dbf7727
--- /dev/null
+++ b/blocking/images/mesmer-build.png
Binary files differ
diff --git a/blocking/images/mesmer-fullblock-build.png b/blocking/images/mesmer-fullblock-build.png
new file mode 100644
index 0000000..34eb2b6
--- /dev/null
+++ b/blocking/images/mesmer-fullblock-build.png
Binary files differ
diff --git a/blocking/images/mesmer-fullblock-skills.png b/blocking/images/mesmer-fullblock-skills.png
deleted file mode 100644
index 7c90398..0000000
--- a/blocking/images/mesmer-fullblock-skills.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/mesmer-fullblock-traits.png b/blocking/images/mesmer-fullblock-traits.png
deleted file mode 100644
index 9caecba..0000000
--- a/blocking/images/mesmer-fullblock-traits.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/mesmer-skills.png b/blocking/images/mesmer-skills.png
deleted file mode 100644
index c86c50a..0000000
--- a/blocking/images/mesmer-skills.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/mesmer-traits.png b/blocking/images/mesmer-traits.png
deleted file mode 100644
index 88516a1..0000000
--- a/blocking/images/mesmer-traits.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/mirage-fullblock-build.png b/blocking/images/mirage-fullblock-build.png
new file mode 100644
index 0000000..b1d7e97
--- /dev/null
+++ b/blocking/images/mirage-fullblock-build.png
Binary files differ
diff --git a/blocking/images/mirage-skills.png b/blocking/images/mirage-skills.png
deleted file mode 100644
index 92fba76..0000000
--- a/blocking/images/mirage-skills.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/mirage-traits.png b/blocking/images/mirage-traits.png
deleted file mode 100644
index 4c113f9..0000000
--- a/blocking/images/mirage-traits.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/rev-skills.png b/blocking/images/rev-skills.png
deleted file mode 100644
index 5be9349..0000000
--- a/blocking/images/rev-skills.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/revenant-build.png b/blocking/images/revenant-build.png
new file mode 100644
index 0000000..f9a003a
--- /dev/null
+++ b/blocking/images/revenant-build.png
Binary files differ
diff --git a/blocking/images/scrapper-build.png b/blocking/images/scrapper-build.png
new file mode 100644
index 0000000..c816f91
--- /dev/null
+++ b/blocking/images/scrapper-build.png
Binary files differ
diff --git a/blocking/images/scrapper-skills.png b/blocking/images/scrapper-skills.png
deleted file mode 100644
index 98d6456..0000000
--- a/blocking/images/scrapper-skills.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/scrapper-traits.png b/blocking/images/scrapper-traits.png
deleted file mode 100644
index 0381229..0000000
--- a/blocking/images/scrapper-traits.png
+++ /dev/null
Binary files differ
diff --git a/blocking/images/warrior-build.png b/blocking/images/warrior-build.png
new file mode 100644
index 0000000..42ad166
--- /dev/null
+++ b/blocking/images/warrior-build.png
Binary files differ
diff --git a/blocking/images/warrior-traits.png b/blocking/images/warrior-traits.png
deleted file mode 100644
index 0b00e91..0000000
--- a/blocking/images/warrior-traits.png
+++ /dev/null
Binary files 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}
+}
diff --git a/preamble.tex b/preamble.tex
index dd0ff70..1339033 100644
--- a/preamble.tex
+++ b/preamble.tex
@@ -93,4 +93,3 @@
\newcommand{\skill}[3]{\emph{#3} (#1 #2)}
\newcommand{\uskill}[1]{\emph{#1}}
\newcommand{\trait}[1]{\emph{#1}}
-\newcommand{\gwtskills}{(Picture source: \url{http://en.gw2skills.net})}