Updates rendering #107
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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<String>,
|
||||
/// The description of the whole attack
|
||||
#[TEXT]
|
||||
pub description_all: Option<String>,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue