feat: added puncture and penetrate

This commit is contained in:
TotallyNot 2025-11-04 16:14:49 +01:00
parent 451efd2bb7
commit 6c3c50689a
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
4 changed files with 104 additions and 59 deletions

View file

@ -62,6 +62,10 @@ pub enum WeaponBonusType {
// Attack nullification types
Homerun,
Parry,
// Armour mitigation
Puncture,
Penetrate,
}
#[derive(Component)]
@ -183,6 +187,12 @@ impl BonusPartDamageBonus {
}
}
#[derive(Debug, Clone, Component)]
pub enum ArmourBypassBonus {
Puncture { chance: f32 },
Penetrate { mitigation: f32 },
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Component, Display)]
#[cfg_attr(feature = "json", derive(serde::Deserialize, serde::Serialize))]
#[cfg_attr(feature = "json", serde(rename_all = "snake_case"))]