@rian8337/osu-rebalance-difficulty-calculator 4.0.0-beta.93 → 4.0.0-beta.94
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/index.js +4 -8
- package/package.json +2 -2
- package/typings/index.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1263,8 +1263,8 @@ class DroidFlashlight extends DroidSkill {
|
|
|
1263
1263
|
this.totalObjects = totalObjects;
|
|
1264
1264
|
this.reducedSectionCount = 0;
|
|
1265
1265
|
this.reducedSectionBaseline = 1;
|
|
1266
|
-
this.starsPerDouble = 1
|
|
1267
|
-
this.skillMultiplier = 0.
|
|
1266
|
+
this.starsPerDouble = 1;
|
|
1267
|
+
this.skillMultiplier = 0.058;
|
|
1268
1268
|
this.currentFlashlightStrain = 0;
|
|
1269
1269
|
}
|
|
1270
1270
|
strainValueAt(current) {
|
|
@@ -3615,13 +3615,9 @@ class DroidDifficultyCalculator extends DifficultyCalculator {
|
|
|
3615
3615
|
attributes.rhythmDifficulty = this.calculateDifficultyRating((_a = rhythm === null || rhythm === void 0 ? void 0 : rhythm.difficultyValue()) !== null && _a !== void 0 ? _a : 0);
|
|
3616
3616
|
}
|
|
3617
3617
|
populateFlashlightAttributes(attributes, skills) {
|
|
3618
|
+
var _a;
|
|
3618
3619
|
const flashlight = skills.find((s) => s instanceof DroidFlashlight);
|
|
3619
|
-
|
|
3620
|
-
attributes.flashlightDifficulty = 0;
|
|
3621
|
-
return;
|
|
3622
|
-
}
|
|
3623
|
-
attributes.flashlightDifficulty =
|
|
3624
|
-
Math.sqrt(flashlight.difficultyValue()) * 0.18;
|
|
3620
|
+
attributes.flashlightDifficulty = this.calculateDifficultyRating((_a = flashlight === null || flashlight === void 0 ? void 0 : flashlight.difficultyValue()) !== null && _a !== void 0 ? _a : 0);
|
|
3625
3621
|
}
|
|
3626
3622
|
populateReadingAttributes(attributes, skills) {
|
|
3627
3623
|
const reading = skills.find((s) => s instanceof DroidReading);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-rebalance-difficulty-calculator",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.94",
|
|
4
4
|
"description": "A module for calculating osu!standard beatmap difficulty and performance value with respect to the latest osu!lazer difficulty and performance algorithm.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"osu",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "ab494480e1793b60e89b1e8b56c73b7a6995ff1f"
|
|
42
42
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -1778,7 +1778,7 @@ declare class DroidFlashlight extends DroidSkill {
|
|
|
1778
1778
|
private readonly totalObjects;
|
|
1779
1779
|
protected readonly reducedSectionCount = 0;
|
|
1780
1780
|
protected readonly reducedSectionBaseline = 1;
|
|
1781
|
-
protected readonly starsPerDouble = 1
|
|
1781
|
+
protected readonly starsPerDouble = 1;
|
|
1782
1782
|
private readonly skillMultiplier;
|
|
1783
1783
|
private currentFlashlightStrain;
|
|
1784
1784
|
static difficultyToPerformance(difficulty: number): number;
|