Update scraps.ts

This commit is contained in:
Nathan 2026-02-18 19:18:32 -05:00
parent 988b02c7d2
commit fdbef64441

View file

@ -39,9 +39,9 @@ export function calculateShopItemPricing(monetaryValue: number, stockCount: numb
// Roll cost = price * (baseProbability / 100) - fixed, doesn't change with upgrades
const rollCost = Math.max(1, Math.round(price * (baseProbability / 100)))
// Total budget = 1.7x price
// Upgrade budget = 1.7x price - rollCost
const upgradeBudget = Math.max(0, price * 2.0 - rollCost)
// Total budget = 3.0x price
// Upgrade budget = 3.0x price - rollCost
const upgradeBudget = Math.max(0, price * 3.0 - rollCost)
// Number of upgrades needed to go from baseProbability to 100%
const probabilityGap = 100 - baseProbability