Skip to content

Commit

Permalink
Linting!
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudonian committed Apr 16, 2024
1 parent 25006d2 commit bb52c28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ export const updateSingularityGlobalPerks = () => {
'cashGrab'
] as const
for (const key of shopItemPerk_20) {
shopData[key].refundable = perk_20 ? false : true
shopData[key].refundable = !perk_20
}

const perk_51 = player.highestSingularityCount >= 51
Expand All @@ -1114,7 +1114,7 @@ export const updateSingularityGlobalPerks = () => {
'chronometer2'
] as const
for (const key of shopItemPerk_51) {
shopData[key].refundable = perk_51 ? false : true
shopData[key].refundable = !perk_51
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/Shop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1251,11 +1251,13 @@ export const shopDescriptions = (input: ShopUpgradeNames) => {
amount2: format(player.shopUpgrades.shopAmbrosiaAccelerator * 0.2 * player.caches.ambrosiaGeneration.totalVal, 0, true)
})
break
case 'shopEXUltra':
case 'shopEXUltra': {
const capacity = 125000 * player.shopUpgrades.shopEXUltra
lol.innerHTML = i18next.t('shop.upgradeEffects.shopEXUltra', {
amount: format(0.1 * Math.floor(Math.min(capacity, player.lifetimeAmbrosia)/1000), 1, true)
})
break
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Talismans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const getTalismanResourceInfo = (
const maxBuyObtainium = Math.max(1, Math.floor(player.researchPoints / obtainiumCost))
const maxBuyOffering = Math.max(1, Math.floor(player.runeshards / offeringCost))
const amountToBuy = Math.max(1, Math.floor(percentage / 100 * Math.min(maxBuyObtainium, maxBuyOffering)))
const canBuy = (obtainiumCost <= player.researchPoints && offeringCost <= player.runeshards) ? true : false
const canBuy = (obtainiumCost <= player.researchPoints && offeringCost <= player.runeshards)
return {
canBuy, // Boolean, if false will not buy any fragments
buyAmount: amountToBuy, // Integer, will buy as specified above.
Expand Down

0 comments on commit bb52c28

Please sign in to comment.