Skip to content

Commit

Permalink
Split AspidHunter (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKnauth authored Feb 6, 2024
1 parent b71412f commit 4aa87e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hollow_knight_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2769,6 +2769,11 @@ impl PlayerDataStore {
}
}

pub fn aspid_hunter_arena(&mut self, prc: &Process, gmf: &GameManagerFinder) -> Option<bool> {
// Aspid: {0} +3 {3}
self.kills_decreased_by(prc, gmf, "kills_spitter_on_entry", &gmf.player_data_pointers.kills_spitter, 3)
}

pub fn bronze1a(&mut self, prc: &Process, gmf: &GameManagerFinder) -> Option<bool> {
// Shielded Fool: {0} +1 {1}
self.kills_decreased_by(prc, gmf, "kills_col_shield_on_entry", &gmf.player_data_pointers.kills_col_shield, 1)
Expand Down
5 changes: 5 additions & 0 deletions src/splits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,10 @@ pub enum Split {
///
/// Splits when killing Brooding Mawlek
BroodingMawlek,
/// Aspid Hunter (Mini Boss)
///
/// Splits when killing 3 Aspid Hunters in a row (ideally Aspid Arena)
AspidHunter,
/// Crossroads Stag (Bench)
///
/// Splits when sitting on the bench at Crossroads Stag
Expand Down Expand Up @@ -3799,6 +3803,7 @@ pub fn continuous_splits(s: &Split, p: &Process, g: &GameManagerFinder, pds: &mu
Split::InfectedCrossroads => should_split(g.crossroads_infected(p).is_some_and(|i| i) && g.visited_crossroads(p).is_some_and(|v| v)),
Split::MenderBug => should_split(g.killed_mender_bug(p).is_some_and(|k| k)),
Split::BroodingMawlek => should_split(g.killed_mawlek(p).is_some_and(|k| k)),
Split::AspidHunter => should_split_skip(pds.aspid_hunter_arena(p, g)),
Split::BenchCrossroadsStag => should_split(g.at_bench(p).is_some_and(|b| b) && g.get_scene_name(p).is_some_and(|s| s == "Crossroads_47")),
Split::GruzMother => should_split(g.killed_big_fly(p).is_some_and(|f| f)),
Split::SlyRescued => should_split(g.sly_rescued(p).is_some_and(|s| s)),
Expand Down

0 comments on commit 4aa87e2

Please sign in to comment.