Compare commits

...

5 Commits
0.3.32 ... main

Author SHA1 Message Date
Dandaedre 342b2105c6 Bump db
Build Successful The build was successful
Ravenous/ravenous-tools/pipeline/head This commit looks good Details
2026-08-07 19:33:03 +02:00
Dandaedre 8238a4bf2f Adds antimat & pierce 2026-08-07 19:04:21 +02:00
Dandaedre 26b4b31684 Cost added to wpns
Build Successful The build was successful
Ravenous/ravenous-tools/pipeline/head This commit looks good Details
2026-08-07 16:19:02 +02:00
Dandaedre dd9999b347 Modules & DB 2026-08-03 16:50:54 +02:00
Dandaedre 4dc5a5f03e
Bump 2026-08-01 03:38:51 +02:00
8 changed files with 28 additions and 9 deletions

4
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "ravenous_databases"]
path = ravenous_databases
# url = git@git.dandaedre.com:Ravenous/ravenous_databases.git
url = https://proxy.dandaedre.com/gitea/Ravenous/ravenous_databases.git
url = git@git.dandaedre.com:Ravenous/ravenous_databases.git
# url = https://proxy.dandaedre.com/gitea/Ravenous/ravenous_databases.git

View File

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

View File

@ -72,9 +72,14 @@ pub fn attack_player(
})
.sum::<f64>();
let damage_incoming = avg_damage_incomming;
let damage_tanked = (damage_incoming - (victim.protection + victim.strength) as f64).max(0.0);
let armor_loss =
let mut damage_tanked =
(damage_incoming - (victim.protection + victim.strength) as f64).max(0.0);
let mut armor_loss =
(damage_incoming - victim.protection as f64).clamp(0.0, attack.armor_break as f64);
if avg_successes_left > 0. {
armor_loss += attack.antimaterial as f64;
damage_tanked += attack.armor_pierce.min(victim.protection) as f64;
}
let report = DamageReport {
damage_incoming,
damage_tanked,

View File

@ -29,6 +29,8 @@ impl From<FullMonster> for Vec<MonsterBalancingAttack> {
target_damage: sub_attack.target_damage_category.into(),
target_ab: sub_attack.target_ab_category.into(),
target_stance: sub_attack.target_stance.into(),
antimaterial: from_opt_i64(sub_attack.antimaterial.as_ref()),
armor_pierce: from_opt_i64(sub_attack.armor_pierce.as_ref()),
}
})
.filter(|sub| !sub.damage.is_empty())
@ -76,6 +78,10 @@ pub struct MonsterBalancingAttack {
pub target_ab: ArmorBreakCategory,
#[TEXT(name = "stance_t")]
pub target_stance: ProfileStance,
#[SKIP(name = "AM")]
pub antimaterial: i64,
#[SKIP(name = "AP")]
pub armor_pierce: i64,
}
pub struct DamageDone {

View File

@ -203,6 +203,12 @@ pub struct MonsterSingleAttack {
/// Armor_break of the ability.
#[INTEGER]
pub armor_break: Option<i64>,
/// armor_pierce of the ability.
#[INTEGER]
pub armor_pierce: Option<i64>,
/// antimaterial of the ability.
#[INTEGER]
pub antimaterial: Option<i64>,
/// Action‑point cost (used in systems where actions and fatigue are separate).
#[INTEGER]
pub cost_action: Option<String>,

View File

@ -71,6 +71,7 @@ pub struct ExportableEquipement {
pub vitesse: String,
pub discretion: String,
pub difficulty: String,
pub cost: String,
pub special: String,
pub needs_break: bool,
}
@ -145,6 +146,7 @@ impl From<&RefinedEquipement> for ExportableEquipement {
category: value.inner.category_base,
special: special.join(", "),
needs_break: false,
cost: value.inner.cost.to_string(),
}
}
}

View File

@ -277,7 +277,7 @@ master_part = '''
{{#each phase as | attack_group |}}
\hline
{{#each attack_group.attacklist}}
\SetCell{bg={{{../color}}}} & {{{name}}} & {{{attack_type}}} & {{{prerequisites}}} & {{{targetting}}} & {{{cost_fatigue}}} & {{{cost_action}}} & {{{element}}} & {{{damage_fatigue}}} & {{{damage_regular}}} {{{success}}} & {{#if armor_break}} {{{armor_break}}}\arbreakk{} {{/if}} {{{effects}}} & {{{threshold_parry}}} & {{{threshold_dodge}}} \\
\SetCell{bg={{{../color}}}} & {{{name}}} & {{{attack_type}}} & {{{prerequisites}}} & {{{targetting}}} & {{{cost_fatigue}}} & {{{cost_action}}} & {{{element}}} & {{{damage_fatigue}}} & {{{damage_regular}}} {{{success}}} & {{#if armor_break}} {{{armor_break}}}\arbreakk{} {{/if}}{{#if armor_pierce}} {{{armor_pierce}}}\arpierce{} {{/if}}{{#if antimaterial}} {{{antimaterial}}}\antimateriel{} {{/if}} {{{effects}}} & {{{threshold_parry}}} & {{{threshold_dodge}}} \\
{{/each}}
{{#if description_final}}\SetCell{bg={{{color}}}} & \SetCell[c=12]{j} {{{description_final}}} & & & & & & & & & & \\
{{/if}} \hline
@ -349,10 +349,10 @@ template='''
rowhead = 1,
}
\hline
{Forme} & {Maniement} & {\damagew} & + & {R.Max} & \arbreakk & \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} & {\aLvl} & {\aCst} \\
\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~}} } \\
{{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~}} } & \ddlvl{ {{~cost~}} } \\
{{#if needs_break}}
\hline
\hline

@ -1 +1 @@
Subproject commit fabb0cdc19ea1413e594dc54f02bfd521fd41fa4
Subproject commit c5af8a89ccb47b4a4bd57412a13bec90809fc61a