fruits: minor adjustment
This commit is contained in:
+4
-2
@@ -60,8 +60,10 @@ impl<'m> FruitsPP<'m> {
|
|||||||
/// If you already calculated the attributes for the current map-mod combination,
|
/// If you already calculated the attributes for the current map-mod combination,
|
||||||
/// be sure to put them in here so that they don't have to be recalculated.
|
/// be sure to put them in here so that they don't have to be recalculated.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn attributes(mut self, attributes: DifficultyAttributes) -> Self {
|
pub fn attributes(mut self, attributes: impl FruitsAttributeProvider) -> Self {
|
||||||
self.attributes.replace(attributes);
|
if let Some(attributes) = attributes.attributes() {
|
||||||
|
self.attributes.replace(attributes);
|
||||||
|
}
|
||||||
|
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ pub struct TaikoPP<'m> {
|
|||||||
passed_objects: Option<usize>,
|
passed_objects: Option<usize>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: n300 & n100
|
||||||
impl<'m> TaikoPP<'m> {
|
impl<'m> TaikoPP<'m> {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new(map: &'m Beatmap) -> Self {
|
pub fn new(map: &'m Beatmap) -> Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user