@rian8337/osu-rebalance-difficulty-calculator 1.2.6 → 1.2.7
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.
|
@@ -13,12 +13,15 @@ class DroidRhythm extends DroidSkill_1.DroidSkill {
|
|
|
13
13
|
this.skillMultiplier = 1;
|
|
14
14
|
this.reducedSectionCount = 5;
|
|
15
15
|
this.reducedSectionBaseline = 0.75;
|
|
16
|
-
this.strainDecayBase = 0.
|
|
16
|
+
this.strainDecayBase = 0.3;
|
|
17
17
|
this.starsPerDouble = 1.75;
|
|
18
|
-
this.rhythmMultiplier = 0.75;
|
|
19
18
|
this.historyTimeMax = 5000; // 5 seconds of calculateRhythmBonus max.
|
|
20
19
|
this.currentRhythm = 1;
|
|
21
20
|
this.hitWindow = new osu_base_1.OsuHitWindow(overallDifficulty);
|
|
21
|
+
const odScaling = Math.pow(this.hitWindow.overallDifficulty, 2) / 250;
|
|
22
|
+
this.rhythmMultiplier =
|
|
23
|
+
0.75 +
|
|
24
|
+
(this.hitWindow.overallDifficulty >= 0 ? odScaling : -odScaling);
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
27
|
* Calculates a rhythm multiplier for the difficulty of the tap associated with historic data of the current object.
|
|
@@ -55,8 +58,8 @@ class DroidRhythm extends DroidSkill_1.DroidSkill {
|
|
|
55
58
|
(Math.min(prevDelta, currentDelta) /
|
|
56
59
|
Math.max(prevDelta, currentDelta))), 2));
|
|
57
60
|
const windowPenalty = Math.min(1, Math.max(0, Math.abs(prevDelta - currentDelta) -
|
|
58
|
-
this.hitWindow.hitWindowFor300() * 0.
|
|
59
|
-
(this.hitWindow.hitWindowFor300() * 0.
|
|
61
|
+
this.hitWindow.hitWindowFor300() * 0.4) /
|
|
62
|
+
(this.hitWindow.hitWindowFor300() * 0.4));
|
|
60
63
|
let effectiveRatio = windowPenalty * currentRatio;
|
|
61
64
|
if (firstDeltaSwitch) {
|
|
62
65
|
if (prevDelta <= 1.25 * currentDelta &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-rebalance-difficulty-calculator",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
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",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "18927f60c831515a666c7f7400beaa7573f28b64"
|
|
39
39
|
}
|