Typos, change arbreakk #164

Merged
Dandaedre merged 1 commits from database_monsters into main 2026-07-28 05:28:26 +02:00
6 changed files with 10 additions and 8 deletions

View File

@ -6,7 +6,7 @@ resolver = "3"
# edition = "2024"
# license = "MIT OR Apache-2.0"
[workspace.package]
version = "0.3.24"
version = "0.3.25"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -98,7 +98,7 @@ fn damage_report_on_part(
display: Showcase,
) -> DefenseReport {
// Every round need to eliminate X dices from the pool
let mut dice_left_to_parry = creature.balancing.average_defensive_dices;
let mut dice_left_to_parry = creature.balancing.average_defensive_successes;
let players = ChunkIter::new(creature.balancing.player_groupsize);
let mut total_damage_done_p1 = DamageDealtByPlayer::default();
let mut total_damage_done_p2 = DamageDealtByPlayer::default();
@ -137,8 +137,10 @@ fn damage_report_on_part(
let time_to_p2 = ratio * body_part.life_points_p1.unwrap() as f64 / damage_done_p1.hp_t;
let time_to_kill = ratio
* (body_part.life_points_p1.unwrap() as f64 / damage_done_p1.hp_t
+ body_part.life_points_p2.unwrap_or(0) as f64 / damage_done_p2.hp_t);
* (
//body_part.life_points_p1.unwrap() as f64 / damage_done_p1.hp_t +
body_part.life_points_p2.unwrap_or(0) as f64 / damage_done_p2.hp_t
);
let time_to_armorbreak = ratio * (body_part.integrity_p1.unwrap() as f64 / damage_done_p1.ab_t);
let time_to_kill_through = ratio
* (body_part.life_points_p1.unwrap() as f64

View File

@ -100,7 +100,7 @@ impl ToRow for DamageReport {
fn to_row(&self) -> Row {
vec![
match self.showcase {
Showcase::Balancing => shorten_string(&self.name, 22).to_cell().fg(Color::Green),
Showcase::Balancing => shorten_string(&self.name, 20).to_cell().fg(Color::Green),
Showcase::Display => self.stance.to_string().to_cell().fg(Color::DarkGrey),
},
dim_if_not!(

View File

@ -440,7 +440,7 @@ pub struct CreatureBalancing {
pub player_groupsize: f64,
#[INTEGER]
/// (FIXED) The average number of defence dice the creature will be using
pub average_defensive_dices: i64,
pub average_defensive_successes: i64,
}
/// Balancing info on all the player depending on their level

View File

@ -348,7 +348,7 @@ template='''
rowhead = 1,
}
\hline
{Forme} & {Maniement} & {\damagew} & + & {R.Max} & \arbreakw & \protection & \integrite & $\mathbb{T}$2 & $\mathbb{T}$1 & {Modes} & {Esq.} & {Par.} & {Vit.} & {Disc.} & {Spécial} & {Diff.} \\
{Forme} & {Maniement} & {\damagew} & + & {R.Max} & \arbreakk & \protection & \integrite & $\mathbb{T}$2 & $\mathbb{T}$1 & {Modes} & {Esq.} & {Par.} & {Vit.} & {Disc.} & {Spécial} & {Diff.} \\
\hline
{{#each this}}
{{name}} & {{maniement}} & {{damage_base}} & {{damage_per}} & {{rmax}} & {{arbreak}} & {{protection}} & {{integrity}} & {{torque_two_handed}} & {{torque_one_handed}} & $\mathbf{ {{{~modes~}}} }$ & {{esquive}} & {{parrade}} & {{vitesse}} & {{discretion}} & {{{special}}} & \ddlvl{ {{~difficulty~}} } \\

@ -1 +1 @@
Subproject commit e13cb0197f108b40c51b5ab5a16cc5702d5db8c5
Subproject commit 8e6a31899f87f3cfe6de856238457161ebb811c2