diff --git a/crates/monsters/src/monster_structs.rs b/crates/monsters/src/monster_structs.rs index 740386d..428f691 100644 --- a/crates/monsters/src/monster_structs.rs +++ b/crates/monsters/src/monster_structs.rs @@ -121,6 +121,9 @@ pub struct CreatureReward { /// Category of the ability #[TEXT] pub category: String, + /// The cost of the reward + #[TEXT] + pub cost: Option, /// Effect of the ability pub effect: String, } diff --git a/helper_config.toml b/helper_config.toml index 27fc509..f584bec 100644 --- a/helper_config.toml +++ b/helper_config.toml @@ -157,18 +157,18 @@ intro = '''\begin{tblr}{ {{#if image}}\includegraphics[height=5cm]{ {{{image}}} } & \\{{/if}} & \\ Nom & {{{name}}} \\ -{{#if denomination}}Dénomination & {{{denomination}}} \\ {{/if}} -{{#if calamity}}Calamité & {{{calamity}}} \\ {{/if}} -{{#if danger_level}}Niveau de danger (HSE) & {{{danger_level}}} \\ {{/if}} -& \\ -{{#if habitat}}Habitat & \SetCell{font=\footnotesize} {{{habitat}}} \\ {{/if}} -{{#if dysmorphism}}Dysmorphisme & \SetCell{font=\footnotesize} {{{dysmorphism}}} \\ {{/if}} -{{#if colors}}Couleurs & \SetCell{font=\footnotesize} {{{colors}}} \\ {{/if}} -{{#if default_human_reaction}}Réaction à l'homme & \SetCell{font=\footnotesize} {{{default_human_reaction}}} \\ {{/if}} -{{#if variants}}Variantes & \SetCell{font=\footnotesize} {{{variants}}}\\ {{/if}} -{{#if size}}Taille & \SetCell{font=\footnotesize} {{{size}}}\\ {{/if}} -{{#if habits}}Mœurs & \SetCell{font=\footnotesize} {{{habits}}} \\ {{/if}} -\end{tblr} +{{#if denomination}}Dénomination & {{{denomination}}} \\ +{{/if}}{{#if calamity}}Calamité & {{{calamity}}} \\ +{{/if}}{{#if danger_level}}Niveau de danger (HSE) & {{{danger_level}}} \\ +{{/if}}& \\ +{{#if habitat}}Habitat & \SetCell{font=\footnotesize} {{{habitat}}} \\ +{{/if}}{{#if dysmorphism}}Dysmorphisme & \SetCell{font=\footnotesize} {{{dysmorphism}}} \\ +{{/if}}{{#if colors}}Couleurs & \SetCell{font=\footnotesize} {{{colors}}} \\ +{{/if}}{{#if default_human_reaction}}Réaction à l'homme & \SetCell{font=\footnotesize} {{{default_human_reaction}}} \\ +{{/if}}{{#if variants}}Variantes & \SetCell{font=\footnotesize} {{{variants}}}\\ +{{/if}}{{#if size}}Taille & \SetCell{font=\footnotesize} {{{size}}}\\ +{{/if}}{{#if habits}}Mœurs & \SetCell{font=\footnotesize} {{{habits}}} \\ +{{/if}}\end{tblr} \vfill \begin{tblr}{ colspec={X[-1]}, @@ -182,17 +182,17 @@ Nom & {{{name}}} \\ \textbf{Récompenses} \\ \end{tblr} \begin{tblr}{ - colspec={X[1] X[1,c] X[5,j]}, + colspec={X[1] X[1,c] X[2,c] X[3,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}}} \\ + \SetCell[c=3]{j} Sang (base, combat, dépeçage) & & & {{{blood_base}}}, {{{blood_battle}}}, {{{blood_carve}}} \\ ''' -rewards_row=''' {{{name}}} & {{{category}}} & {{{effect}}} \\ +rewards_row=''' {{{name}}} & {{{category}}} & {{#if cost}} {{{cost}}} & {{{effect}}} {{else}} \SetCell[c=2]{j} {{{effect}}} & {{/if}} \\ ''' rewards_end=''' \end{tblr}