@rian8337/osu-difficulty-calculator 4.0.0-beta.102 → 4.0.0-beta.103

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3470,9 +3470,10 @@ class DroidScoreUtils {
3470
3470
  const totalPossibleSpins = secondsDuration * maximumRotationsPerSecond;
3471
3471
  // In osu!droid, spinner bonus points are awarded for each full rotation every nth spin after the required spins.
3472
3472
  // For example, if a spinner requires 5.6 spins before bonus, the first bonus will be awarded at 6 spins instead
3473
- // of 6.6 spins.
3473
+ // of 6.6 spins. Likewise, if a spinner requires exactly 6 spins, the 6th spin already awards the first bonus.
3474
3474
  const maximumPossibleBonusSpins = Math.max(0, Math.floor(totalPossibleSpins) -
3475
- Math.ceil(spinsRequiredBeforeBonus));
3475
+ Math.ceil(spinsRequiredBeforeBonus) +
3476
+ 1);
3476
3477
  bonus += maximumPossibleBonusSpins * 1000;
3477
3478
  }
3478
3479
  return Math.floor(Math.fround(bonus * scoreMultiplier));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-difficulty-calculator",
3
- "version": "4.0.0-beta.102",
3
+ "version": "4.0.0-beta.103",
4
4
  "description": "A module for calculating osu!standard beatmap difficulty and performance value with respect to the current difficulty and performance algorithm.",
5
5
  "keywords": [
6
6
  "osu",
@@ -33,10 +33,10 @@
33
33
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@rian8337/osu-base": "4.0.0-beta.102"
36
+ "@rian8337/osu-base": "4.0.0-beta.103"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "e93f9512ed8a9b0ab2747fc75e047ffd53a35d29"
41
+ "gitHead": "3f35122c29be5cf8a6d9ef612bfec5c93cfc2956"
42
42
  }