mirror of
https://github.com/System-End/scraps.git
synced 2026-04-19 22:05:09 +00:00
Update scraps.ts
This commit is contained in:
parent
988b02c7d2
commit
fdbef64441
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue