Typo on thresholds #174
|
|
@ -6,7 +6,7 @@ resolver = "3"
|
|||
# edition = "2024"
|
||||
# license = "MIT OR Apache-2.0"
|
||||
[workspace.package]
|
||||
version = "0.3.30"
|
||||
version = "0.3.31"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,11 @@ macro_rules! template_load {
|
|||
}
|
||||
|
||||
handlebars_helper!(plus: |x:i64 ,y:Option<i64>| x+y.unwrap_or(0));
|
||||
handlebars_helper!(threshold_bonus: |threshold:i64, size:i64| format!("{:+}{:+}",threshold-6-size,size));
|
||||
handlebars_helper!(threshold_bonus: |threshold:i64, size:i64| {
|
||||
let mal = (threshold-6-size).min(-2);
|
||||
let bon = threshold-mal-6;
|
||||
format!("{:+}{:+}",mal,bon)
|
||||
});
|
||||
|
||||
fn load_templates(config: &Config) -> Result<Handlebars<'_>> {
|
||||
let mut templates = Handlebars::new();
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ Nom & {{{name}}} \\
|
|||
{{/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 traces}}Traces de pas & \SetCell{font=\footnotesize} {{{traces}}}\\
|
||||
{{/if}}{{#if traces}}Traces & \SetCell{font=\footnotesize} {{{traces}}}\\
|
||||
{{/if}}{{#if habits}}Mœurs & \SetCell{font=\footnotesize} {{{habits}}} \\
|
||||
{{/if}}\end{tblr}
|
||||
\vfill
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 61b59832a66e73cc0fd1dc8bb881b18d33a34c7e
|
||||
Subproject commit dfa02e2130a471080a14482f3481b9582f7be6e9
|
||||
Loading…
Reference in New Issue