Skip to content

Commit

Permalink
v0.67.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Sep 30, 2024
1 parent 98a7598 commit 3e5cca9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.67.3

- Fixed Catch Rate Estimator not showing Ultimate Charm coloring

## Version 0.67.2

- Updated Dark Mode styles
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mousehunt-improved",
"version": "0.67.2",
"version": "0.67.3",
"description": "Improve your MouseHunt experience.",
"author": "Brad Parbs <[email protected]> (https://bradparbs.com/)",
"license": "MIT",
Expand Down
27 changes: 14 additions & 13 deletions src/modules/catch-rate-estimate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,24 +209,25 @@ const renderList = async (list) => {
const crClass = ['mh-improved-cre-data'];
const minluckClass = ['mh-improved-cre-data'];

if (catchRate.rate * 100 >= 100) {
crClass.push('mh-improved-cre-data-good');
minluckClass.push('mh-improved-cre-data-good');
} else if (catchRate.rate * 100 <= 60) {
crClass.push('mh-improved-cre-data-bad');
minluckClass.push('mh-improved-cre-data-bad');
}

if (user.trap_luck >= minluck) {
crClass.push('mh-improved-cre-data-minlucked');
minluckClass.push('mh-improved-cre-data-minlucked');
}

// Ultimate charm.
if (1075 == user.trinket_item_id) { // eslint-disable-line eqeqeq
crClass.push('mh-improved-cre-data-ultimate');
minluckClass.push('mh-improved-cre-data-ultimate');
catchRate.rate = 1;
catchRate.percent = '100%';
} else {
if (catchRate.rate * 100 >= 100) {
crClass.push('mh-improved-cre-data-good');
minluckClass.push('mh-improved-cre-data-good');
} else if (catchRate.rate * 100 <= 60) {
crClass.push('mh-improved-cre-data-bad');
minluckClass.push('mh-improved-cre-data-bad');
}

if (user.trap_luck >= minluck) {
crClass.push('mh-improved-cre-data-minlucked');
minluckClass.push('mh-improved-cre-data-minlucked');
}
}

rows.push({
Expand Down

0 comments on commit 3e5cca9

Please sign in to comment.