You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daniel Norris edited this page Nov 10, 2021
·
3 revisions
To modify the price of a Pokemon based on the spec you can use the following system.
price-modifiers:
example:
spec: shiny:1required-permission: ''# The permission required for this boost to apply - leave blank for it to be applied to everyonemin-price:
type: '*'value: 2.0example2:
spec: dittorequired-permission: ''# The permission required for this boost to apply - leave blank for it to be applied to everyonemin-price:
type: '+'value: 20000.0
The algorithm goes through each section of the price-modifiers config section and applies the mathematical operator to the current value if the spec matches. It prioritizes addition and subtraction above multiplication and division to ensure that when the multiplication and division occur they're not applying to a 0 value.
In the above example, assuming the Pokemon is a shiny ditto, the value would be $40,000.