Template:Calclimit/doc
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 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 ![]() |
{{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 ![]() |
Template Data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Base Price | base 1 | base price * multipler ^ n | Number | required |
Multiplier | mult 2 | base * multiplier^n | Number | required |
Discount | discount | multiply base price by discount
| Boolean | suggested |
Inventory Limit | inv | Hard or empirical limit of inventory. Could be based on what is possible with crafted leaves, or based on what the community has achieved.
| Number | suggested |