Skip to content

Commit

Permalink
add: onslaught (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayAndromeda authored Feb 3, 2024
1 parent 0c1a202 commit 54a0746
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/perks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ pub enum Perks {
EnlightendAction = 3828510309,
SwordLogic = 31345821,

//season 23 | year 6
Onslaught = 95528736,


//subclass
OnYourMark = 3066103999,
Hedrons = 3469412970,
Expand Down
2 changes: 2 additions & 0 deletions src/perks/perk_options_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ fn hash_to_perk_option_data(_hash: u32) -> Option<PerkOptionData> {
Perks::HeadRush => Some(PerkOptionData::toggle()),
Perks::EnlightendAction => Some(PerkOptionData::stacking(5)),
Perks::SwordLogic => Some(PerkOptionData::stacking(4)),
//season 23 | year 6
Perks::Onslaught => Some(PerkOptionData::stacking(3)),

//exotics
Perks::CranialSpike => Some(PerkOptionData::stacking(5)),
Expand Down
45 changes: 45 additions & 0 deletions src/perks/year_6_perks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,49 @@ pub fn year_6_perks() {
},
),
);
add_fmr(
Perks::Onslaught,
Box::new(|_input: ModifierResponseInput| -> FiringModifierResponse {
let buff = match _input.value {
0 => 1.0,
1 => 0.84,
2 => 0.72,
3 => 0.63,
_ => 0.63,
};
FiringModifierResponse {
burst_delay_scale: buff,
..Default::default()
}
}),
);
add_rsmr(
Perks::Onslaught,
Box::new(|_input: ModifierResponseInput| -> ReloadModifierResponse {
let buff = match _input.value {
0 => 0,
1 => 15,
2 => 25,
3 => 35,
_ => 35,
};
ReloadModifierResponse {
reload_stat_add: buff,
..Default::default()
}
}),
);
add_sbr(
Perks::Onslaught,
Box::new(|_input: ModifierResponseInput| -> HashMap<u32, i32> {
let buff = match _input.value {
0 => 0,
1 => 15,
2 => 25,
3 => 35,
_ => 35,
};
HashMap::from([(StatHashes::RELOAD.into(), buff)])
}),
)
}

0 comments on commit 54a0746

Please sign in to comment.