Skip to content

Commit

Permalink
feat!: add single_color_stamina to TaikoStrains
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Nov 27, 2024
1 parent 48414de commit 76b013a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/taiko/strains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ pub struct TaikoStrains {
pub rhythm: Vec<f64>,
/// Strain peaks of the stamina skill.
pub stamina: Vec<f64>,
/// Strain peaks of the single color stamina skill.
pub single_color_stamina: Vec<f64>,
}

impl TaikoStrains {
Expand All @@ -28,5 +30,10 @@ pub fn strains(difficulty: &Difficulty, map: &Beatmap) -> Result<TaikoStrains, C
color: values.skills.color.get_curr_strain_peaks().into_vec(),
rhythm: values.skills.rhythm.get_curr_strain_peaks().into_vec(),
stamina: values.skills.stamina.get_curr_strain_peaks().into_vec(),
single_color_stamina: values
.skills
.single_color_stamina
.get_curr_strain_peaks()
.into_vec(),
})
}

0 comments on commit 76b013a

Please sign in to comment.