Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mudachyo committed Nov 12, 2024
2 parents 48ce0b9 + 9565b12 commit 669a1d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hamster-autoclicker.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @match *://*.hamsterkombat.io/*
// @match *://*.hamsterkombatgame.io/*
// @exclude https://hamsterkombatgame.io/games/UnblockPuzzle/*
// @version 3.1
// @version 3.1.1
// @grant none
// @icon https://hamsterkombatgame.io/images/icons/hamster-coin.png
// @downloadURL https://github.com/mudachyo/Hamster-Kombat/raw/main/hamster-autoclicker.user.js
Expand Down Expand Up @@ -634,8 +634,8 @@
upgradesForBuy.forEach(item => {
const paybackTime = item.profitPerHourDelta ? (item.price / item.profitPerHourDelta) : Infinity;
const paybackClass = paybackTime <= settings.maxPaybackHours ? 'payback-good' : 'payback-bad';
const isAvailable = item.isAvailable && !item.isExpired;
const availabilityIcon = isAvailable ? '✅' : '❌';
const isAvailable = item.isAvailable && !item.isExpired && (typeof item.maxLevel === "undefined" || item.level <= item.maxLevel);
const availabilityIcon = isAvailable && item.cooldownSeconds ? '🕒' : isAvailable ? '✅' : '❌';
tableContent += `
<tr class="${isAvailable ? 'available' : 'unavailable'}">
<td class="availability-icon">${availabilityIcon}</td>
Expand Down

0 comments on commit 669a1d3

Please sign in to comment.