diff --git a/Cargo.toml b/Cargo.toml index 1c24ca1..86120e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ resolver = "3" # edition = "2024" # license = "MIT OR Apache-2.0" [workspace.package] -version = "0.3.4" +version = "0.3.6" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/monsters/src/monster_export.rs b/crates/monsters/src/monster_export.rs index 9ea6759..d6d6697 100644 --- a/crates/monsters/src/monster_export.rs +++ b/crates/monsters/src/monster_export.rs @@ -248,7 +248,6 @@ impl MonsterAllAttacks { )?; for attack in list_full_attacks { write!(out, "{}", config.monster.attack_before_repeat)?; - let color = Coloring { size: attack.size, color: config @@ -266,9 +265,7 @@ impl MonsterAllAttacks { templates.render("attack_repeatable_row", sub_attack)? )?; } - write!(out, "{}", templates.render("attack_info_row", attack)?)?; - println!("{:?}", list_full_attacks); } } Ok(out) diff --git a/crates/monsters/src/monster_structs.rs b/crates/monsters/src/monster_structs.rs index 16afcac..742a4ee 100644 --- a/crates/monsters/src/monster_structs.rs +++ b/crates/monsters/src/monster_structs.rs @@ -191,6 +191,9 @@ pub struct MonsterSingleAttack { /// The string format is up‑to‑you – many people store JSON or a custom DSL here. #[TEXT] pub effects: String, + /// The number of success for the attack + #[TEXT] + pub success: Option, /// The description of the whole attack #[TEXT] pub description_all: Option, diff --git a/helper_config.toml b/helper_config.toml index 7630f20..55bc0bf 100644 --- a/helper_config.toml +++ b/helper_config.toml @@ -277,7 +277,7 @@ phase_row= ''' 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}}} & {{{atk_type}}} & {{{prerequisites}}} & {{{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