ravenous-tools/helper_config.toml

333 lines
12 KiB
TOML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[data_generation]
# This value should be overwriten by a relative path
database = "./ravenous_databases/weapons.db"
[classes]
header = '''\begin{}[
presep = 0pt, postsep = 0pt,
]{
colspec = {Q[h,j,wd=3.5cm] Q[c,h, wd=0.52cm] h{2.5cm} Q[c,h,wd=0.75cm] Q[h,j,wd=8.4cm]},
hspan = minimal, vspan=minimal,
{} width = 1\columnwidth,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
% row{1 } = {bg=coheaderschools, fg=white},
row{even } = {bg=coevenschools},
cells = {font = \footnotesize\selectfont},
% measure = vbox,
}
'''
sep = ''' \SetRow{white }&&&&\\'''
tier = ''' \SetCell[c=5]{white } {\normalsize \textbf{ Tiers {} }} \\
\hline
\SetRow{bg=coheaderschools}Technique & Niv & Type & Coût & Effet\\
\hline'''
end = '''\end{longtblr}'''
[craft]
header_alchemy = '''\begin{landscape}\begin{center}
\begin{longtblr}[
entry = none,
label = none,
]{
colspec = {|X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]|},
cells = {font = \footnotesize\selectfont},
row{1} = {bg=cobluel, fg=white},
row{even} = {coblueL},
hspan = minimal, vspan=minimal,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
}
\hline
Ingrédient & Partie & Rareté & Effet (Principal) & Effets (Catalysé) & Difficulté & Toxicité \\
\hline'''
header_armors = '''\begin{landscape}\begin{center}
\begin{longtblr}[
entry = none,
label = none,
]{
colspec = {|X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]Q[wd=4cm]|},
cells = {font = \footnotesize\selectfont},
row{1} = {bg=cobluel, fg=white},
row{even} = {coblueL},
hspan = minimal, vspan=minimal,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
}
\hline
Nom & Rareté & Dégâts & + & R.Max & Armor.B & Prot & Int. & Deux M & Une M & Esq. & Parr. & Vitesse & Discrétion & Spécial \\
\hline'''
header_forge = ''' Ingrédient & Rareté & Densité & Effet Armes (Principal) & Effet Armures (Principal) & Effets Armes (Catalysé) & Effet Armures (C) & Difficulté & Préparation \\
\hline'''
header_weapons = '''\begin{landscape}\begin{center}
\begin{longtblr}[
entry = none,
label = none,
]{
colspec = {|X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]Q[wd=4cm]|},
cells = {font = \footnotesize\selectfont},
row{1} = {bg=cobluel, fg=white},
row{even} = {coblueL},
hspan = minimal, vspan=minimal,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
}
\hline
Nom & \rotbx{Rareté} & \rotbx{Dégâts} & + & \rotbx{R.Max} & \rotbx{Armr.B} & \rotbx{Protbx} & \rotbx{Int.} & \rotbx{Deux M} & \rotbx{Une M} & \rotbx{Esq.} & \rotbx{Parr.} & \rotbx{Vitesse} & \rotbx{Discr.} & \rotbx{Catégorie} & \rotbx{Modes} & \rotbx{Spécial} \\
\hline'''
header_food = '''\begin{landscape}\begin{center}
\begin{longtblr}[
entry = none,
label = none,
]{
colspec = {|X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]X[-1]|},
cells = {font = \footnotesize\selectfont},
row{1} = {bg=cobluel, fg=white},
row{even} = {coblueL},
hspan = minimal, vspan=minimal,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
}
\hline
Ingrédient & Partie & Rareté & Satiété & Effet (Plat) & Effets (Accompagnement) & Difficulté & Toxicité \\
\hline'''
header_mtrap = '''\begin{landscape}\begin{center}
\begin{longtblr}[
entry = none,
label = none,
]{
colspec = {|X[-1]X[-1]X[-1]X[-1]X[-1]|},
cells = {font = \footnotesize\selectfont},
row{1} = {bg=cobluel, fg=white},
row{even} = {coblueL},
hspan = minimal, vspan=minimal,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
}
\hline
Élément & Prix & Effet & Difficulté & Activation & Solidité \\
\hline'''
header_traps = ''' Nom & Type & Prix & Toxicité & Effet \\
\hline'''
header_gadgets ='''\begin{center}
\begin{longtblr}[
entry = none,
label = none,
]{
colspec = {|X[-1]XX[-1]|},
cells = {font = \footnotesize\selectfont},
row{1} = {bg=cobluel, fg=white},
row{even} = {coblueL},
hspan = minimal, vspan=minimal,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
}
\hline
Nom & Effet & Prix\\'''
header_potions = '''\begin{center}
\begin{longtblr}[
entry = none,
label = none,
]{
colspec = {|X[-1]X[-1]X[-1]X[-1]X|},
cells = {font = \footnotesize\selectfont},
row{1} = {bg=cobluel, fg=white},
row{even} = {coblueL},
hspan = minimal, vspan=minimal,
colsep = 2mm, abovesep=0px,belowsep=0px, leftsep=3px, rightsep=3px,
}
\hline
Nom & Type & Prix & Toxicité & Effet \\
\hline'''
end = ''' \hline
\end{tblr}
}'''
end_long = ''' \hline
\end{longtblr}
\end{center}
'''
end_long_side = ''' \hline
\end{longtblr}
\end{center}\end{landscape}'''
end_empty = ""
[monster]
intro = '''\begin{tblr}{
vspan=even, hspan=minimal,
colspec={X[-1] X[-1]},
cell{1}{1}={c=2}{c},
}
\includegraphics[height=5cm]{ {{{image}}} } & \\
& \\
Nom & {{{name}}} \\
Dénomination & {{{denomination}}} \\
Calamité & {{{calamity}}} \\
Niveau de danger (HSE) & {{{danger_level}}} \\
& \\
Habitat & \SetCell{font=\footnotesize} {{{habitat}}} \\
Dysmorphisme & \SetCell{font=\footnotesize} {{{dysmorphism}}} \\
Couleurs & \SetCell{font=\footnotesize} {{{colors}}} \\
Réaction à l'homme & \SetCell{font=\footnotesize} {{{default_human_reaction}}} \\
Variantes & \SetCell{font=\footnotesize} {{{variants}}}\\
Taille & \SetCell{font=\footnotesize} {{{size}}}\\
Mœurs & \SetCell{font=\footnotesize} {{{habits}}} \\
\end{tblr}
\vfill
\begin{tblr}{
colspec={X[-1]},
hline{2,4,6},
row{2,4,6}={font=\footnotesize}
}
\textbf{Description} \\
{{{description}}} \\
\textbf{Annotations} \\
{{{annotations}}} \\
\textbf{Récompenses} \\
\end{tblr}
\begin{tblr}{
colspec={X[1] X[1,c] X[5,j]},
vspan=even, hspan=minimal,
row{1-Z}={font=\footnotesize},
rows={m},
}
'''
blood_reward='''
\SetCell[c=2]{j} Sang (base, combat, dépeçage) & & {{{blood_base}}}, {{{blood_battle}}}, {{{blood_carve}}} \\
'''
rewards_row=''' {{{name}}} & {{{category}}} & {{{effect}}} \\
'''
rewards_end='''
\end{tblr}
\vfill
\pagebreak
'''
body_parts_intro='''
\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
'''
body_parts_row='''
\SetCell{font=\footnotesize} {{{body_part_name }}} & ${{{threshold_p1 }}} $ & ${{{protection_p1}}} {{{protection_total_p1 }}} $ & \SetCell{r,f}\tiny ${{{integrity_p1}}} $ & \SetCell{r,f}\tiny ${{{life_points_p1}}} $ & ${{{threshold_p2}}} $ & ${{{protection_p2}}} {{{protection_total_p2}}} $ & \SetCell{r,f}\tiny ${{{integrity_p2}}} $ & \SetCell{r,f}\tiny ${{{life_points_p2}}} $\\
'''
body_parts_end= ''' \hline
\SetCell[c=9]{j,h} {\textbf{Notes} \\ {{{annotations_master}}}}\\
\hline
\end{tblr}'''
resists_intro=''' \begin{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
'''
resists_row= ''' \SetCell{font=\footnotesize} {{{body_part_name}}} & ${{{slash}}} $ & ${{{pierce}}} $ & ${{{blunt}}} $ & ${{{celestial}}} $ & ${{{fire}}} $ & ${{{earth}}} $ & ${{{wood}}} $ & ${{{magma}}} $ & ${{{celeste}}} $ & ${{{water}}} $ & ${{{wind}}} $ & ${{{ice}}} $ & ${{{thunder}}} $ \\
'''
resists_end='''
\end{tblr}
\end{center}
'''
stats='''\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} $t_1 $ & ${{{p1_init}}} $ & $4 $A & ${{{p2_init}}} $ & $4 $A & & ${{{strength}}} $ & ${{{perception}}} $ & ${{{willpower}}} $ & ${{{alteration_resistance}}} $ & ${{{torque}}} $ & ${{{awareness}}} $ & ${{{fatigue}}} $ & & ${{{mvt_walk}}} $ & ${{{mvt_trot}}} $ & ${{{mvt_run}}} $ & ${{{mvt_flight}}} $ \\
'''
init_rows='''
\SetCell{font=\footnotesize} $t_{{{turn}}} $ & ${{{p1_value}}} $ & {{{pt1_actions}}} & ${{{p2_value}}} $ & {{{p2_actions}}} \\
'''
init_end= '''
\end{tblr}
\vfill
'''
attacks_intro= '''
{\scriptsize
\begin{tblr}{
colspec={X[0.05] X[2.5,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[4,l] 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} & {Type} & {Préquis} & \rb{Ciblage} & \rb{Fatigue} & \rb{Action} & \rb{Élément} & \rb{Fatigue} & \SetCell{c} \rb{Normaux} & {Effets} & \rb{Parade} & \rb{Esquive} \\
\SetHline{1-13}{solid}
'''
phase_row= '''
\SetHline{1}{0pt}
\SetCell[c=13]{white} {{{phase_name}}} & & & & & & & & & & \\
'''
attack_before_repeat=' \hline'
attack_color='\SetCell[r={{{size}}}]{bg={{{color}}}}' # Very ugly hack, going to bed
# attack_repeatable_row= ''' & {{{name}}} & {{{short_name}}} & {{{prerequisites}}} & {{{atk_type}}} & {{{targetting}}} & {{{cost_fatigue}}} & {{{cost_action}}} & {{{element}}} & {{{damage_fatigue}}} &{{{damage_regular}}} & {{{effects}}} & {{{threshold_parry}}} & {{{threshold_dodge}}} \\
attack_repeatable_row= ''' & {{{name}}} & {{{attack_type}}} & {{{prerequisites}}} & {{{targetting}}} & {{{cost_fatigue}}} & {{{cost_action}}} & {{{element}}} & {{{damage_fatigue}}} &{{{damage_regular}}} {{{success}}}& {{{effects}}} & {{{threshold_parry}}} & {{{threshold_dodge}}} \\
'''
attack_info_row='''& \SetCell[c=12]{j} {{{description_final}}} & & & & & & & & & & \\
\hline
'''
attacks_end= ''' \end{tblr}
}
\vfill
'''
intent_table='''
\pagebreak
\begin{tblr}{
colspec={X[7] X[3]},
rowspec={X[c] X[j,h,8cm]},
vline{2},
hline{2},
row{2}={font=\footnotesize},
}
Plan de combat & Graphique d'intentions \\
{{{battle_plan}}} & {{{intent_graph}}} \\
\end{tblr}
\vfill
\pagebreak
'''
color_table='''
ATK: ravred
MVT: ravblu
DEF: ravgrn
PAS: ravgrnL
REV: ravgrn
CLM: ravgrnD
TRA: ravora
ASE: ravred
STA: ravwhi
CMB: ravred
FLR: ravred
GRB: ravred
TBU: ravredD
TSH: ravredD
TBZ: ravredD
CLV: ravred
AOE: ravred
WID: ravred
WIP: ravredD
SZO: ravwhi
SIT: ravwhi
SRG: ravpur
HRG: ravpur
BAD: ravora
BIS: ravredD
'''
default_color=''