Template:Calclimit/doc

From Leaf Blower Revolution Wiki
Jump to navigation Jump to search

Determines how many of a certain upgrade can be purchased based on the max possible resources that can be held in inventory, typically 1e300.

Formula

The discount factor is 0.45 for normal leaf shops because Upgrade Discount in the Prestige coin.png Prestige shop plus Hands Only Challenge results in a 55% discount.

The formula was originally developed by Quas NaArt, along with this spreadsheet that shows shop prices: https://docs.google.com/spreadsheets/d/1_VLujIwkS5aAn7_7joobWSsQwV-2NyPemEoZIXxrP5Q/edit#gid=749776904.

Another spreadsheet by Mena shows extracted numbers: https://docs.google.com/spreadsheets/d/16nTEhjt21R4G0sFoVn7qjLSgMUAJ_zzlVuoA67LraZM/edit#gid=944091764

Cheesetor wrote: "The general item cost formula is ceil(base_cost * item_cost_exp^level). It's the exponent, a fixed number for every shop item."

Examples

markup result
{{calclimit|base=500|mult=5}}
426
{{calclimit|500|5}}
426
Leaf Marketing {{leaficon|basic|textmod=pl|quantity={{calclimit|base=500|mult=5}}}}
Leaf Marketing Basic Leaf.png 426 Leaves
{{calclimit|base=10|mult=1.5|discount=0|inv=1e123}}
693
Printer Adder {{coin|prestige|quantity={{calclimit|base=10|mult=1.5|discount=0|inv=1e123}}}}
Printer Adder Prestige coin.png 693

Template Data

No description.

Template parameters

ParameterDescriptionTypeStatus
Base Pricebase 1

base price * multipler ^ n

Numberrequired
Multipliermult 2

base * multiplier^n

Numberrequired
Discountdiscount

multiply base price by discount

Default
1
Example
0 (false) for no discount
Auto value
1
Booleansuggested
Inventory Limitinv

Hard or empirical limit of inventory. Could be based on what is possible with crafted leaves, or based on what the community has achieved.

Default
1e300
Numbersuggested