Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pulse monitor on old weapons #135

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/perks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ pub enum Perks {
#[num_enum(alternatives = [1409312565, ])] //cloudstrike
TripleTap = 3400784728,
UnderPressure = 1645158859,
#[num_enum(alternatives = [205890336])] //old underdog changed to pulse, kept hash though
PulseMonitor = 972757866,

//season 2 | year 1
Expand Down Expand Up @@ -291,7 +292,6 @@ pub enum Perks {
Swashbuckler = 4082225868,

//season 7 | year 2
UnderDog = 205890336,
ExplosiveLight = 3194351027,
EyeOfTheStorm = 699525795,
#[num_enum(alternatives = [
Expand Down
1 change: 0 additions & 1 deletion src/perks/perk_options_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ fn hash_to_perk_option_data(_hash: u32) -> Option<PerkOptionData> {
Perks::OverFlow => Some(PerkOptionData::toggle()),

//season 7 | year 2
Perks::UnderDog => Some(PerkOptionData::toggle()),
Perks::ExplosiveLight => Some(PerkOptionData::toggle()),
Perks::EyeOfTheStorm => Some(PerkOptionData::toggle()),
Perks::NoDistractions => Some(PerkOptionData::toggle()),
Expand Down
27 changes: 0 additions & 27 deletions src/perks/year_1_perks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,33 +778,6 @@ pub fn year_1_perks() {
),
);

add_sbr(
Perks::UnderDog,
Box::new(
|_input: ModifierResponseInput| -> HashMap<BungieHash, StatBump> {
let mut map = HashMap::new();
if _input.value > 0 {
map.insert(StatHashes::RELOAD.into(), 100);
}
map
},
),
);

add_rsmr(
Perks::UnderDog,
Box::new(|_input: ModifierResponseInput| -> ReloadModifierResponse {
if _input.value > 0 {
ReloadModifierResponse {
reload_stat_add: 100,
reload_time_scale: 0.9,
}
} else {
ReloadModifierResponse::default()
}
}),
);

add_sbr(
Perks::UnderPressure,
Box::new(
Expand Down
Loading