@rian8337/osu-base 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beatmap/Beatmap.js +2 -6
- package/package.json +2 -2
package/dist/beatmap/Beatmap.js
CHANGED
|
@@ -93,9 +93,7 @@ class Beatmap {
|
|
|
93
93
|
*/
|
|
94
94
|
get sliderTicks() {
|
|
95
95
|
const sliders = (this.objects.filter((v) => v instanceof Slider_1.Slider));
|
|
96
|
-
return sliders
|
|
97
|
-
.map((v) => v.ticks)
|
|
98
|
-
.reduce((acc, value) => acc + value, 0);
|
|
96
|
+
return sliders.reduce((acc, value) => acc + value.ticks, 0);
|
|
99
97
|
}
|
|
100
98
|
/**
|
|
101
99
|
* The amount of sliderends in the beatmap.
|
|
@@ -108,9 +106,7 @@ class Beatmap {
|
|
|
108
106
|
*/
|
|
109
107
|
get sliderRepeatPoints() {
|
|
110
108
|
const sliders = (this.objects.filter((v) => v instanceof Slider_1.Slider));
|
|
111
|
-
return sliders
|
|
112
|
-
.map((v) => v.repeatPoints)
|
|
113
|
-
.reduce((acc, value) => acc + value, 0);
|
|
109
|
+
return sliders.reduce((acc, value) => acc + value.repeatPoints, 0);
|
|
114
110
|
}
|
|
115
111
|
/**
|
|
116
112
|
* The maximum combo of the beatmap.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-base",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "Base module for all osu! related modules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"osu",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "4bb4b0c00cf07d5624e1af644a01685697b2832c"
|
|
45
45
|
}
|