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,
|
||||
/// be sure to put them in here so that they don't have to be recalculated.
|
||||
#[inline]
|
||||
pub fn attributes(mut self, attributes: DifficultyAttributes) -> Self {
|
||||
self.attributes.replace(attributes);
|
||||
pub fn attributes(mut self, attributes: impl FruitsAttributeProvider) -> Self {
|
||||
if let Some(attributes) = attributes.attributes() {
|
||||
self.attributes.replace(attributes);
|
||||
}
|
||||
|
||||
self
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ pub struct TaikoPP<'m> {
|
||||
passed_objects: Option<usize>,
|
||||
}
|
||||
|
||||
// TODO: n300 & n100
|
||||
impl<'m> TaikoPP<'m> {
|
||||
#[inline]
|
||||
pub fn new(map: &'m Beatmap) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user