feat: added property damage boost
This commit is contained in:
parent
6c3c50689a
commit
1c66dbf499
3 changed files with 21 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use bevy_ecs::prelude::*;
|
||||
use proxisim_models::bundle::{
|
||||
passive::{Education, EducationPartDamageBonus, FactionUpgrades, Merits},
|
||||
passive::{Education, EducationPartDamageBonus, FactionUpgrades, Merits, Property},
|
||||
player::{Current, PartDamageBonus},
|
||||
stat::{
|
||||
AdditiveBonus, AmmoControl, ClipSize, Clips, CritRate, DamageBonus, Dexterity,
|
||||
|
|
@ -169,7 +169,7 @@ fn apply_passives(
|
|||
Has<Japanese>,
|
||||
&ChildOf,
|
||||
)>,
|
||||
player_q: Query<(&Merits, &Education, &FactionUpgrades)>,
|
||||
player_q: Query<(&Merits, &Education, &FactionUpgrades, &Property)>,
|
||||
mut effects: Effects,
|
||||
mut commands: Commands,
|
||||
) {
|
||||
|
|
@ -354,7 +354,7 @@ fn apply_passives(
|
|||
}
|
||||
}
|
||||
|
||||
let (merits, education, faction) = player_q.get(player.parent()).unwrap();
|
||||
let (merits, education, faction, property) = player_q.get(player.parent()).unwrap();
|
||||
|
||||
let (mastery, edu_acc) = match cat {
|
||||
WeaponCategory::HeavyArtillery => (
|
||||
|
|
@ -458,6 +458,13 @@ fn apply_passives(
|
|||
weapon,
|
||||
);
|
||||
}
|
||||
|
||||
if property.damage {
|
||||
effects.spawn(
|
||||
SimpleStatBonus::<DamageBonus>::new("property", 0.02),
|
||||
weapon,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue