Skip to content

Commit

Permalink
fix: no backup plans stacking with empowering buffs
Browse files Browse the repository at this point in the history
  • Loading branch information
BarmonHammer committed Apr 11, 2024
1 parent 90a3745 commit 26ec500
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
17 changes: 16 additions & 1 deletion src/perks/buff_perks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ pub fn buff_perks() {
Perks::LucentBlades,
Box::new(|_input: ModifierResponseInput| -> HashMap<u32, i32> {
if _input.calc_data.weapon_type != &WeaponType::SWORD {
return HashMap::new()
return HashMap::new();
}
let stat_bump = match _input.value {
0 => return HashMap::new(),
Expand Down Expand Up @@ -421,4 +421,19 @@ pub fn buff_perks() {
}
}),
);
add_dmr(
Perks::NoBackupPlans,
Box::new(|_input: ModifierResponseInput| -> DamageModifierResponse {
if *_input.calc_data.weapon_type != WeaponType::SHOTGUN || _input.value == 0 {
return DamageModifierResponse::default();
}
let desired_buff = if _input.pvp { 1.10 } else { 1.35 };
let buff = emp_buff(_input.cached_data, desired_buff);
DamageModifierResponse {
impact_dmg_scale: buff,
explosive_dmg_scale: buff,
..Default::default()
}
}),
);
}
16 changes: 0 additions & 16 deletions src/perks/exotic_armor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,22 +258,6 @@ pub fn exotic_armor() {
),
);

add_dmr(
Perks::NoBackupPlans,
Box::new(|_input: ModifierResponseInput| -> DamageModifierResponse {
if *_input.calc_data.weapon_type != WeaponType::SHOTGUN || _input.value == 0 {
return DamageModifierResponse::default();
}

let buff = if _input.pvp { 1.10 } else { 1.35 };
DamageModifierResponse {
impact_dmg_scale: buff,
explosive_dmg_scale: buff,
..Default::default()
}
}),
);

add_sbr(
Perks::ActiumWarRig,
Box::new(
Expand Down

0 comments on commit 26ec500

Please sign in to comment.