Skip to content

Commit

Permalink
Changed this.level to level, fixed rounding (SkyCryptWebsite#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
averithefox committed Nov 14, 2024
1 parent 11f084e commit 411aa23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants/hotm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ class Mole extends Node {
}

perk(level) {
const val = round(50 + (this.level - 1) * (350 / 199), 2);
const val = round(50 + (level - 1) * (350 / 199), 2);
return [`§7Grants §e+${val} ${SYMBOLS.mining_spread} Mining Spread §7when mining Hard Stone.`];
}
}
Expand Down Expand Up @@ -1591,7 +1591,7 @@ class EfficientMiner extends Node {
}

perk(level) {
const val = round(level * 3, 2);
const val = floor(level * 3);
return [`§7Grants §e+${val} ${SYMBOLS.mining_spread} Mining Spread§7.`];
}
}
Expand Down

0 comments on commit 411aa23

Please sign in to comment.