feat: added puncture and penetrate
This commit is contained in:
parent
451efd2bb7
commit
6c3c50689a
4 changed files with 104 additions and 59 deletions
|
|
@ -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"))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue