diff --git a/.gitignore b/.gitignore index fcc0ab6..8c78746 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ gen-* ## Other ressources Others/ +Bestiaire/ ## Core latex/pdflatex auxiliary files: *.aux diff --git a/.gitmodules b/.gitmodules index 154125e..952b3ce 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "ravenous_databases"] path = ravenous_databases + # url = git@git.dandaedre.com:Ravenous/ravenous_databases.git url = https://proxy.dandaedre.com/gitea/Ravenous/ravenous_databases.git diff --git a/Chapters/Bestiaire.tex b/Chapters/Bestiaire.tex index 6665bd0..ae0098e 100644 --- a/Chapters/Bestiaire.tex +++ b/Chapters/Bestiaire.tex @@ -1,10 +1,8 @@ \label{chap:bestiaire} -\newcommand{\rb}[1]{\rotatebox{90}{#1}} -% TODO: REMOVE LIPSUMS -Le bestiaire est l'une des armes, si ce n'est \textit{l'}arme, la plus importante des Chasseurs. C'est le savoir écrit de générations et générations de combattants, érudits et humains. Et ces connaissances, perpétuellement ajustées, améliorées et précisées ; composent l'un des pilliers les plus solides de la survie de l'humanité. Seuls les chasseurs les plus fous, les plus téméraires, ou les deux, osent se lancer à la chasse d'une créature sans informations sur elle, et les bestiaires régionaux sont à cette fin une source de savoir inestimable. +Le bestiaire est l'une des armes, si ce n'est \textit{l'}arme, la plus importante des Chasseurs. C'est le savoir écrit de générations et générations de combattants, érudits et humains. Et ces connaissances, perpétuellement ajustées, améliorées et précisées ; composent l'un des pilliers les plus solides de la survie de l'humanité. Seuls les chasseurs les plus fous, les plus téméraires, ou les deux, osent se lancer à la chasse d'une créature sans informations sur elle, et les bestiaires régionaux sont à cette fin une source de savoir inestimable. -Au sein des cités-forteresses humaines, les bibliothèques sont souvent les bâtiments les plus solidement renforcés, ou au contraire les plus dissimulés et secrets possible ; en grande partie parce que ces bestiaires et les connaissances qu'ils renferment sont l'arme la plus efficace, et bien souvent la seule, qui permette aux humains de survivre aux attaques --- et même si la cité devait tomber, sauvegarder ce savoir est une mission primordiale. Chaque échec à protéger ces codex plonge des régions entières dans une période de lutte plus cruelle que jamais, durant laquelle la survie devient encore plus primordiale que jamais, mais aussi ô combien plus difficile. +Au sein des cités-forteresses humaines, les bibliothèques sont souvent les bâtiments les plus solidement renforcés, ou au contraire les plus dissimulés et secrets possible ; en grande partie parce que ces bestiaires et les connaissances qu'ils renferment sont l'arme la plus efficace, et bien souvent la seule, qui permette aux humains de survivre aux attaques --- et même si la cité devait tomber, sauvegarder ce savoir est une mission primordiale. Chaque échec à protéger ces codex plonge des régions entières dans une période de lutte plus cruelle que jamais, durant laquelle la survie devient encore plus primordiale que jamais, mais aussi ô combien plus difficile. Certains incidents d'apparence bénine, comme l'incendie de la bibliothèque de Ül-Amath-Dur causé par un page maladroit faisant volte-face un peu trop vite --- résultèrent en la disparition pure et simple de la mégalopole de la surface de la carte. @@ -13,265 +11,6 @@ Sans être jalousement gardés parmis les chasseurs, ces bestiaires sont si impo \vfill \newpage -\vfill -Voici ci-dessous le tableau comportant la légende utilisée pour les fiches de créatures. - -\vfill -\begin{tblr}{ - vspan=even, hspan=minimal, - colspec={X[-1,c] X[0.1] X[1.7,c] X[2,c] X[8] X[20,j]}, - colsep=2pt, - row{2-Z}={font=\footnotesize}, - rowspec={X[b]}, - hlines={white}, -} - \SetCell{c} \rb{HSE} & \SetColumn{font=\tiny} & \SetCell{c} \rb{Trigram (intent)} & \SetCell{c} \rb{Targeting (S/Z/A)} & Catégorie d'action & Description \\ - \hline - \SetHline{1}{0pt} - 0 & \SetCell{bg=ravred} & ATK & - & Attaque & \\ - 0 & \SetCell{bg=ravred} & MVT & - & Mouvement & \\ - 0 & \SetCell{bg=ravred} & DEF & - & Defense & \\ - 0 & \SetCell{bg=ravred} & REV & - & Revival & Retour à la vie d'une créature. \\ - 1 & \SetCell{bg=ravred} & TRA & Z & Thrashing & Dégâts non-intentionels. \\ - 2 & \SetCell{bg=ravred} & STA & - & Stance & Posture identifiable visuellement, permettant et/ou restraignant des actions spécifiques. Peut impacter les stats (seuils). \\ - 4 & \SetCell{bg=ravred} & CMB & S & Combo & Attaques successives (interrompues par une défense intégrale). \\ - 5 & \SetCell{bg=ravred} & ASE & S/Z & Attaque --- Setup & Attaque générant un effet ou une ressource utilisable par d'autres actions. \\ - 9 & \SetCell{bg=ravred} & TBU & S & Tank buster & Attaque extrêmement puissante visant à tuer un ennemi blindé. \\ - 10 & \SetCell{bg=ravred}& TBZ & Z & Tank buster Zone & Même chose, mais en zone. \\ - 4 & \SetCell{bg=ravred} & CLV & Z & Cleave & Attaque à zone d'effet physique esquivable ou interruptible. \\ - 4 & \SetCell{bg=ravred} & AOE & Z & AoE élémentaire & Attaque à zone d'effet élémentaire esquivable ou résistable. \\ - 4 & \SetCell{bg=ravred} & WID & A & Raid-wide & Attaque affectant toute l'équipe en dépit de la distance et du positionnel. \\ - 9 & \SetCell{bg=ravred} & WIP & A & Raid wipe & Raid-wide extrêmement puissant. Suceptible de tuer toute l'équipe. \\ - 8 & \SetCell{bg=ravred} & SZO & - & Setup --- Zone & {Mutation de l'environnement à effet définitif. \\ Génère un effet ou une ressource utilisable par d'autres actions.} \\ - 6 & \SetCell{bg=ravred} & SIT & - & Setup --- Interruptible & Préparation interruptible donnant accès à une attaque méga-puissante. \\ - 16 & \SetCell{bg=ravred} & HRG & A & Hard enrage & Fin du combat. Multiples raid wipes, tank busters insurvivables, etc. \\ - 8 & \SetCell{bg=ravred} & SRG & - & Soft enrage & Modificateur définitif augmentant graduellement la difficulté du combat. \\ - 16 & \SetCell{bg=ravred} & CLM & - & Culmination & Retour à la vie d'une calamité mineure. \\ - 5 & \SetCell{bg=ravred} & GRB & S & Saisie & Ataque visant à saisir une cible. \\ -\end{tblr} - -\vfill - -\newpage -\vfill -\begin{tblr}{ - vspan=even, hspan=minimal, - colspec={X[-1] X[-1]}, - cell{1}{1}={c=2}{c}, - } - -\includegraphics[height=5cm]{Illus/ExampleAvemain.jpg} & \\ -& \\ -Nom & (nom) \\ -Dénomination & (dnm) \\ -Calamité & (cal) \\ -Niveau de danger (HSE) & (hse) \\ -& \\ -Habitat & \SetCell{font=\footnotesize} (hab) \\ -Dysmorphisme & \SetCell{font=\footnotesize} (dys) \lipsum[1][1-3] \\ -Couleurs & \SetCell{font=\footnotesize} (clr) \\ -Réaction à l'homme & \SetCell{font=\footnotesize} (ral) \lipsum[2][1-2] \\ -Variantes & \SetCell{font=\footnotesize} (var) \lipsum[3][1] \\ -Mœurs & \SetCell{font=\footnotesize} (mrs) \lipsum[1][1-2] \\ -\end{tblr} -\vfill -\begin{tblr}{ - colspec={X[-1]}, - hline{2,4,6}, - row{2,4,6}={font=\footnotesize} - } -\textbf{Description} \\ -(dsc) \lipsum[6] \\ -\textbf{Annotations} \\ -(ant) \lipsum[6] \\ -\textbf{Récompenses} \\ -\end{tblr} -\begin{tblr}{ - colspec={X[-1] X[-1,c] X[-1,j]}, - vspan=even, hspan=minimal, - row{1-Z}={font=\footnotesize}, - rows={m}, -} - \SetCell[c=2]{j} Sang (base, combat, dépeçage) & & 10, 5, 4 \\ - Nom & Catégorie & \lipsum[1][1] \\ - Boulougoué & Forge & \lipsum[2][1] \\ - Saucisse surgelée & Pouvoirs & \lipsum[3][1] \\ - Saucisse surgelée & Pouvoirs & \lipsum[3][1] \\ - Saucisse surgelée & Pouvoirs & \lipsum[3][1] \\ - Saucisse surgelée & Pouvoirs & \lipsum[3][1] \\ -\end{tblr} -% \begin{tblr}{ -% colspec={X[2,m] X[1.3,c,m] X[1,r] X[1] X[1,r] X[1] X[1,r] X[1]}, -% vspan=even, hspan=minimal, -% vline{4,6,8} = {1}{text=\clap{:}}, -% row{1-Z}={font=\footnotesize}, -% rows={m}, -% } -% \SetCell[c=2]{c} Sang & & Base & 10 & Combat & 9 & Dépeçage & 8 \\ -% \hline -% Nom & Catégorie & \SetCell[c=6]{j} \lipsum[1][1] \\ -% Boulougoué & Forge & \SetCell[c=6]{j} \lipsum[2][1] \\ -% Saucisse surgelée & Pouvoirs & \SetCell[c=6]{j} \lipsum[3][1] \\ -% Saucisse surgelée & Pouvoirs & \SetCell[c=6]{j} \lipsum[3][1] \\ -% Saucisse surgelée & Pouvoirs & \SetCell[c=6]{j} \lipsum[3][1] \\ -% Saucisse surgelée & Pouvoirs & \SetCell[c=6]{j} \lipsum[3][1] \\ -% \end{tblr} - -\vfill -\newpage -\vfill - -\begin{tblr}{ - colspec={X[l,-1] X[-1] X[-1] X[] X[] X[-1] X[-1] X[] X[]}, - rowspec={X[t] X[t,c] X[c,2em] X[c,2em] X[c,2em] X[c,2em] X[c,2em] X[c,2em] X[c,2em] X[c,2em] X[c,2em] X[j,5em]}, - hspan=minimal, - cell{1}{2}={c=4}{c}, - cell{1}{6}={c=4}{c}, - row{2,12}={font=\footnotesize}, - vline{6} = {2-11}{solid}, -} - & P1 & & & & P2 & \\ - & Seuil & Prot & Intégrité & PV & Seuil & Prot & Intégrité & PV\\ -\hline -\SetCell{font=\footnotesize} Tête & $(s1)$ & $(p1)$ & \SetCell{r,f}\tiny$(i1)$ & \SetCell{r,f}\tiny$(h1)$ & $(s2)$ & $(p2)$ & \SetCell{r,f}\tiny$(i2)$ & \SetCell{r,f}\tiny$(h2)$\\ -\SetCell{font=\footnotesize} Corps & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\SetCell{font=\footnotesize} M AvD & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\SetCell{font=\footnotesize} M AvG & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\SetCell{font=\footnotesize} M ArD & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\SetCell{font=\footnotesize} M ArG & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\SetCell{font=\footnotesize} Queue & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\SetCell{font=\footnotesize} Aile G & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\SetCell{font=\footnotesize} Aile D & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$ & $3$ & $3$ & \SetCell{r,f}\tiny$999$ & \SetCell{r,f}\tiny$999$\\ -\hline -\SetCell[c=9]{j,h} {\textbf{Notes} \\ \lipsum[11][1-5]}\\ -\hline -\end{tblr} -\vfill - -\center{ -\begin{tblr}{ - colspec={Q[3.5em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em] Q[1.6em]}, - rowspec={Q[c,f] Q[c,m] Q[c] Q[c] Q[c] Q[c] Q[c] Q[c] Q[c] Q[c] Q[c]}, - row{3-11}={font=\tiny}, -} - & & & & & & & \small{*} & & & & \small{*} & \small{*} & \\ -\SetCell{c} Res & \slash & \pierce & \blunt & \symceleste & \symfire & \symearth & \symwood & \symmagma & \symabyss & \symwater & \symwind & \symice & \symthunder \\ -\hline -\SetCell{font=\footnotesize} Tête & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+++$ & $---$ & $+$ & $--$ & $+$ \\ -\SetCell{font=\footnotesize} Corps & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\SetCell{font=\footnotesize} M AvD & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\SetCell{font=\footnotesize} M AvG & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\SetCell{font=\footnotesize} M ArD & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\SetCell{font=\footnotesize} M ArG & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\SetCell{font=\footnotesize} Queue & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\SetCell{font=\footnotesize} Aile G & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\SetCell{font=\footnotesize} Aile D & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ \\ -\end{tblr} - -\vfill - -\begin{tblr}{ - colspec={c c c c c c c c c c c c c c c c c c c}, - row{2}={font=\footnotesize}, - row{3-6}={font=\tiny}, -} - & \SetCell[c=2]{c} P1 & & \SetCell[c=2]{c} P2 & & & \SetCell[c=7]{c} Stats & & & & & & & & \SetCell[c=4]{c} Mouvement & & & & \\ - \cline{2-3} \cline{4-5} \cline{7-13} \cline{15-18} -\rb{Initiative} & \rb{Valeur} & \rb{Actions} & \rb{Valeur} & \rb{Actions} & & \rb{Force} & \rb{Perception} & \rb{Volonté} & \rb{Res Alt} & \rb{Torque} & \rb{Vigilance} & \rb{Fatigue} & & \rb{Marche} & \rb{Trot} & \rb{Course} & \rb{Vol} \\ -\SetCell{font=\footnotesize}$1$ & $20$ & $4$A & $22$ & $4$A & & $990$ & $991$ & $992$ & $993$ & $994$ & $995$ & $996$ & & $997$ & $998$ & $999$ & $111$ \\ -\SetCell{font=\footnotesize}$2$ & $15$ & $3$A & $17$ & $3$A \\ -\SetCell{font=\footnotesize}$3$ & $10$ & $2$A & $12$ & $2$A \\ -\SetCell{font=\footnotesize}$4$ & $5$ & $1$A & $7$ & $1$A \\ -\end{tblr} -} - -\vfill -\newpage - -\scriptsize -\begin{tblr}{ - colspec={X[0.05] X[4,l] X[1,c] X[1,c] X[0.3,c] X[0.3,c] X[0.3,c] X[0.3,c] X[0.3,c] X[2,r] X[2,c] X[0.3,c] X[0.3,c]}, - hspan=minimal, - colsep=2pt, - row{2}={font=\tiny}, -} - & & & & & \SetCell[c=2]{c} Coûts & & & \SetCell[c=2]{c} Dégâts & & & \SetCell[c=2]{c} Seuils & \\ -\cline{6-7} \cline{9-10} \cline{12-13} -& \SetCell{c} & {ID} & {Type} & \rb{Ciblage} & \rb{Fatigue} & \rb{Action} & \rb{Élément} & \rb{Fatigue} & \SetCell{c} \rb{Normaux} & {Effets} & \rb{Parade} & \rb{Esquive} \\ -\SetHline{1-13}{solid} -\SetHline{1}{0pt} -\SetCell[c=13]{white} PHASE 1 & & & & & & & & & & \\ -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\SetHline{1}{0pt} -\SetCell[c=13]{j} PHASE 2 & & & & & & & & & & \\ -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\hline -\SetCell[r=2]{bg=ravred} & Thunder Bolt & THB & ATK & S & 2 & 2 & \symthunder & 3 & 18 25 32 & AB1 AB2 & 2 & 4 \\ -& \SetCell[c=12]{j} \lipsum[7][1-6] & & & & & & & & & & \\ -\hline -\end{tblr} - -\normalsize -\vfill -\newpage - -\vfill -\begin{tblr}{ - colspec={X[-1]}, - rowspec={X[c] X[j,h,-1] X X[c] X[j,h,-1]}, - hline{2,5}, - row{2,5}={font=\footnotesize}, -} -\textbf{Plan de combat} \\ -\lipsum[10] \\ -\\ -\textbf{Graphique d'intentions} \\ -\lipsum[22] -\end{tblr} - -\vfill -\newpage - +\newcommand{\rb}[1]{\rotatebox{90}{#1}} +\input{./Bestiaire/player_bestiaire.tex} \renewcommand{\rb}{\undefined} diff --git a/Jenkinsfile b/Jenkinsfile index d1fda88..e5fcefc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,15 @@ // Don't forget to add http://192.168.1.37:8080/gitea-webhook/post as a gitea webhook +def deployTo(String targetDir) { + sh "echo \"Deploying to ${targetDir}\"" + sh "mkdir -p ${targetDir}" + + sh "qpdf --encrypt billy billy 40 -- --allow-weak-crypto \"${MSTR_BOOK}\" \"enc_${MSTR_BOOK}\"" + + sh "rsync -a --delete \"enc_${MSTR_BOOK}\" \"${targetDir}/\"" + sh "rsync -a --delete \"${FULL_BOOK}\" \"${targetDir}/\"" + sh "rsync -a --delete \"${PLYR_BOOK}\" \"${targetDir}/\"" +} pipeline { agent { label 'latex_no_docker' } /* =============== @@ -9,6 +19,7 @@ pipeline { environment { FULL_BOOK = "Ravenous_build.pdf" PLYR_BOOK = "Player_handbook_build.pdf" + MSTR_BOOK = "Master_handbook_build.pdf" MDBOOK_BUILD_DIR = "book" // Don't change, it allows the build script & mdBook to know where the book is DEPLOY_DIR = "/mnt/books/Ravenous" // Important, all books are in /mnt/book } @@ -16,22 +27,24 @@ pipeline { stages { stage('Checkout') { steps { + sh 'ls ravenous_databases' + // sh 'ls' checkout scm // Checkout intead of full clone - // sh 'git submodule update --init' + sh 'git submodule update --init --recursive' } } stage('Install ravenous-tools') { steps { - sh 'cargo install --git https://proxy.dandaedre.com/gitea/Ravenous/ravenous-tools.git || echo "ravenous-tolls already installed"' // Install the latest mdBooks + sh 'cargo +nightly install --git https://proxy.dandaedre.com/gitea/Ravenous/ravenous-tools.git || echo "ravenous-tolls already installed"' // Install the latest mdBooks } } - // stage('Install plugins'){ - // steps { - // sh 'cargo install mdbook-admonish' // Change with desired plugins - // } - // } + stage('Install plugins'){ + steps { + sh 'pkg install -y qpdf' // Change with desired plugins + } + } /* =============== END USER CONFIG @@ -40,37 +53,29 @@ pipeline { stage('Build Book') { steps { script { - if (env.BRANCH_NAME == 'origin/review' || env.BRANCH_NAME == 'review' || env.BRANCH_NAME == 'origin/dev-ci' || env.BRANCH_NAME == 'dev-ci') { - sh 'echo "Deploying to ${DEPLOY_DIR}_review"' - sh 'ravenous-tools tablegen -e all' - sh 'mkdir -p ~/.local/share/fonts/' - sh 'mkdir -p ./Images/Radar/' - sh 'mv ./Ressources/lmroman8-regular.ttf ~/.local/share/fonts/' - sh 'ravenous-tools graphs load' - sh 'ravenous-tools graphs gen' - sh 'ravenous-tools make -N Player_handbook.tex' - sh 'ravenous-tools make -t glossaries Player_handbook.tex' - sh 'ravenous-tools make -N Player_handbook.tex' // Second annoying make for correct references - sh 'ravenous-tools make -N Ravenous.tex' - sh 'ravenous-tools make -t glossaries Ravenous.tex' - sh 'ravenous-tools make -N Ravenous.tex' // Second annoying make for correct references - } else if (env.BRANCH_NAME == 'origin/master' || env.BRANCH_NAME == 'master') { - sh 'echo "Deploying to ${DEPLOY_DIR}"' - sh 'ravenous-tools tablegen -e all' - sh 'mkdir -p ~/.local/share/fonts/' - sh 'mkdir -p ./Images/Radar/' - sh 'mv ./Ressources/lmroman8-regular.ttf ~/.local/share/fonts/' - sh 'ravenous-tools graphs load' - sh 'ravenous-tools graphs gen' - sh 'ravenous-tools make -N Player_handbook.tex' - sh 'ravenous-tools make -t glossaries Player_handbook.tex' - sh 'ravenous-tools make -N Player_handbook.tex' // Second annoying make for correct references - sh 'ravenous-tools make -N Ravenous.tex' - sh 'ravenous-tools make -t glossaries Ravenous.tex' - sh 'ravenous-tools make -N Ravenous.tex' // Second annoying make for correct references + + // ---------------------------------------------------- + // Branch lookup – feel free to add more names if needed. + // ---------------------------------------------------- + def reviewBranches = ['origin/review', 'review', + 'origin/dev-ci','dev-ci'] + def masterBranches = ['origin/master', 'master'] + + // Decide which deployment directory we should use + def targetDir + if (reviewBranches.contains(env.BRANCH_NAME)) { + targetDir = "${DEPLOY_DIR}_review" + } else if (masterBranches.contains(env.BRANCH_NAME)) { + targetDir = DEPLOY_DIR } else { echo "Unknown branch: ${env.BRANCH_NAME} — skipping build." + return // exit the script block early } + + // ---------------------------------------------------- + // Run all of the shared steps with the selected dir + // ---------------------------------------------------- + runBuild(targetDir) } } } @@ -78,23 +83,21 @@ pipeline { stage('Deploy to Books') { steps { script { - if (env.BRANCH_NAME == 'origin/review' || env.BRANCH_NAME == 'review') { - sh 'echo "Deploying to ${DEPLOY_DIR}_review"' - sh 'mkdir -p ${DEPLOY_DIR}_review' - sh 'rsync -a --delete "${FULL_BOOK}" "${DEPLOY_DIR}_review/"' - sh 'rsync -a --delete "${PLYR_BOOK}" "${DEPLOY_DIR}_review/"' - } else if (env.BRANCH_NAME == 'origin/dev-ci' || env.BRANCH_NAME == 'dev-ci') { - sh 'echo "Deploying to ${DEPLOY_DIR}_dev"' - sh 'mkdir -p ${DEPLOY_DIR}_dev' - sh 'rsync -a --delete "${FULL_BOOK}" "${DEPLOY_DIR}_dev/"' - sh 'rsync -a --delete "${PLYR_BOOK}" "${DEPLOY_DIR}_dev/"' - } else if (env.BRANCH_NAME == 'origin/master' || env.BRANCH_NAME == 'master') { - sh 'echo "Deploying to ${DEPLOY_DIR}"' - sh 'mkdir -p ${DEPLOY_DIR}' - sh 'rsync -a --delete "${FULL_BOOK}" "${DEPLOY_DIR}/"' - sh 'rsync -a --delete "${PLYR_BOOK}" "${DEPLOY_DIR}/"' + def reviewBranches = ['origin/review', 'review'] + def devciBranches = ['origin/dev-ci', 'dev-ci' ] + def masterBranches = ['origin/master', 'master' ] + + if (reviewBranches.contains(env.BRANCH_NAME)) { + deployDir = + deployTo("${DEPLOY_DIR}_review") + } else if (devciBranches.contains(env.BRANCH_NAME)) { + deployDir = "${DEPLOY_DIR}_dev" + deployTo("${DEPLOY_DIR}_dev") + } else if (masterBranches.contains(env.BRANCH_NAME)) { + deployTo(DEPLOY_DIR) } else { echo "Unknown branch: ${env.BRANCH_NAME} — skipping deploy steps." + return // exit this script block early } } } @@ -115,3 +118,39 @@ pipeline { } } } + +/** + * All commands that were duplicated in the original script. + * + * @param deployDir The directory that will receive the output files. + */ +def runBuild(String deployDir) { + sh "echo \"Deploying to ${deployDir}\"" + // Create the directories needed for fonts / radar images + sh 'mkdir -p ~/.local/share/fonts/' + sh 'mkdir -p ./Images/Radar/' + sh 'mkdir -p ./Bestiaire/' + + sh 'ravenous-tools tablegen -e all' + sh 'ls ravenous_databases' + sh 'ravenous-tools monsters export --all' + + + // Move the font into place (only needs doing once) + sh 'mv ./Ressources/lmroman8-regular.ttf ~/.local/share/fonts/' + + // Load and generate graphs + sh 'ravenous-tools graphs load' + sh 'ravenous-tools graphs generate' + + /* Build each of the three TeX documents twice – once for a + normal build, once to make sure the glossary / cross‑refs + are correctly updated. */ + ['Player_handbook.tex', + 'Master_handbook.tex', + 'Ravenous.tex'].each { texFile -> + sh "ravenous-tools make -N ${texFile}" + sh "ravenous-tools make -t glossaries ${texFile}" + sh "ravenous-tools make -N ${texFile}" // second build for correct references + } +} diff --git a/Master_handbook.tex b/Master_handbook.tex new file mode 100644 index 0000000..f6e0a5b --- /dev/null +++ b/Master_handbook.tex @@ -0,0 +1,70 @@ + +\documentclass[11pt,a4paper,]{book} + +\input{Misc/Setup.tex} + +\begin{document} +\pagestyle{plain} + +\begin{titlepage} % titre + \begin{center} + \vspace*{4cm} + \Huge\textbf{RAVENOUS}\\ + \LARGE + Livre du joueur\\ + \vfill + \LARGE + Par Le Dandaedre + \end{center} + \end{titlepage} + +\tableofcontents + +\chapter*{\Ravenous} % credits +\input{Chapters/Intro} +\newpage +\vfill +Voici ci-dessous le tableau comportant la légende utilisée pour les fiches de créatures. + +\vfill +\newcommand{\rb}[1]{\rotatebox{90}{#1}} +\begin{tblr}{ + vspan=even, hspan=minimal, + colspec={X[-1,c] X[0.1] X[1.7,c] X[2,c] X[8] X[20,j]}, + colsep=2pt, + row{2-Z}={font=\footnotesize}, + rowspec={X[b]}, + hlines={white}, +} + \SetCell{c} \rb{HSE} & \SetColumn{font=\tiny} & \SetCell{c} \rb{Trigram (intent)} & \SetCell{c} \rb{Targeting (S/Z/A)} & Catégorie d'action & Description \\ + \hline + \SetHline{1}{0pt} + 0 & \SetCell{bg=ravred} & ATK & - & Attaque & \\ + 0 & \SetCell{bg=ravred} & MVT & - & Mouvement & \\ + 0 & \SetCell{bg=ravred} & DEF & - & Defense & \\ + 0 & \SetCell{bg=ravred} & REV & - & Revival & Retour à la vie d'une créature. \\ + 1 & \SetCell{bg=ravred} & TRA & Z & Thrashing & Dégâts non-intentionels. \\ + 2 & \SetCell{bg=ravred} & STA & - & Stance & Posture identifiable visuellement, permettant et/ou restraignant des actions spécifiques. Peut impacter les stats (seuils). \\ + 4 & \SetCell{bg=ravred} & CMB & S & Combo & Attaques successives (interrompues par une défense intégrale). \\ + 5 & \SetCell{bg=ravred} & ASE & S/Z & Attaque --- Setup & Attaque générant un effet ou une ressource utilisable par d'autres actions. \\ + 9 & \SetCell{bg=ravred} & TBU & S & Tank buster & Attaque extrêmement puissante visant à tuer un ennemi blindé. \\ + 10 & \SetCell{bg=ravred}& TBZ & Z & Tank buster Zone & Même chose, mais en zone. \\ + 4 & \SetCell{bg=ravred} & CLV & Z & Cleave & Attaque à zone d'effet physique esquivable ou interruptible. \\ + 4 & \SetCell{bg=ravred} & AOE & Z & AoE élémentaire & Attaque à zone d'effet élémentaire esquivable ou résistable. \\ + 4 & \SetCell{bg=ravred} & WID & A & Raid-wide & Attaque affectant toute l'équipe en dépit de la distance et du positionnel. \\ + 9 & \SetCell{bg=ravred} & WIP & A & Raid wipe & Raid-wide extrêmement puissant. Suceptible de tuer toute l'équipe. \\ + 8 & \SetCell{bg=ravred} & SZO & - & Setup --- Zone & {Mutation de l'environnement à effet définitif. \\ Génère un effet ou une ressource utilisable par d'autres actions.} \\ + 6 & \SetCell{bg=ravred} & SIT & - & Setup --- Interruptible & Préparation interruptible donnant accès à une attaque méga-puissante. \\ + 16 & \SetCell{bg=ravred} & HRG & A & Hard enrage & Fin du combat. Multiples raid wipes, tank busters insurvivables, etc. \\ + 8 & \SetCell{bg=ravred} & SRG & - & Soft enrage & Modificateur définitif augmentant graduellement la difficulté du combat. \\ + 16 & \SetCell{bg=ravred} & CLM & - & Culmination & Retour à la vie d'une calamité mineure. \\ + 5 & \SetCell{bg=ravred} & GRB & S & Saisie & Ataque visant à saisir une cible. \\ +\end{tblr} + +\vfill + +\newpage +\input{Bestiaire/master_bestiaire.tex} +\renewcommand{\rb}{\undefined} + +\end{document} diff --git a/Player_handbook.tex b/Player_handbook.tex index ae84be4..b7edb87 100644 --- a/Player_handbook.tex +++ b/Player_handbook.tex @@ -19,6 +19,9 @@ \tableofcontents +\chapter*{\Ravenous} % credits +\input{Chapters/Intro} + \chapter{Introduction} \fluff{ Hem. Heu. Rmhmmhm! Ah, euh, oui... hem... bonjour! @@ -574,6 +577,9 @@ Dans ce livre, vous trouverez à portée de main toutes les ressources nécéssa \input{Craft/sec-traps.tex} \vfill +\chapter{Bestiaire} +\input{Chapters/Bestiaire} + \chapter{Écoles de combat} \newpage \input{Ecoles/SpecialisteArmesLourdes.tex} @@ -607,4 +613,5 @@ Dans ce livre, vous trouverez à portée de main toutes les ressources nécéssa \newpage \input{Ecoles/Sangremage.tex} + \end{document} diff --git a/build.sh b/build.sh index d7c0ecb..cddbc5e 100755 --- a/build.sh +++ b/build.sh @@ -75,6 +75,10 @@ HELP MODE=player shift ;; + --master|master) + MODE=master + shift + ;; --clean|clean) MODE=clean shift @@ -127,6 +131,7 @@ case "$MODE" in mkdir -p ~/.local/share/fonts/ mkdir -p ./Images/Radar/ + mkdir -p ./Bestiaire/ cp ./Ressources/lmroman8-regular.ttf ~/.local/share/fonts/ @@ -139,6 +144,10 @@ case "$MODE" in run_podman make -t glossaries -N Player_handbook.tex run_podman make "${MAKE_ARGS[@]}" -N Player_handbook.tex + run_podman make "${MAKE_ARGS[@]}" -N Master_handbook.tex + run_podman make -t glossaries -N Master_handbook.tex + run_podman make "${MAKE_ARGS[@]}" -N Master_handbook.tex + run_podman make "${MAKE_ARGS[@]}" -N Ravenous.tex run_podman make -t glossaries -N Ravenous.tex run_podman make "${MAKE_ARGS[@]}" -N Ravenous.tex @@ -153,11 +162,21 @@ case "$MODE" in echo "--- Build Completed Successfully ---" ;; + + master) + + echo ">>> Executing PLAYER build (with args: ${MAKE_ARGS[@]})..." + + run_podman make "${MAKE_ARGS[@]}" -N Master_handbook.tex || exit $? + + echo "--- Build Completed Successfully ---" + ;; clean) echo ">>> Cleaning up directory..." run_podman make -t clean Player_handbook.tex || exit $? + run_podman make -t clean Master_handbook.tex || exit $? run_podman make -t clean Ravenous_build.tex || exit $? run_podman graphs remove || exit $? rm -f ./Ravenous_build.* ./Player_handbook_build.* diff --git a/ravenous_databases b/ravenous_databases index 3a9017f..440b8da 160000 --- a/ravenous_databases +++ b/ravenous_databases @@ -1 +1 @@ -Subproject commit 3a9017f09045db289d617c69ef486a97f32f3422 +Subproject commit 440b8dad8361811e14419ac19a90bc7b003ba3e0