Skip to content

PokeSpec Price Modifier

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:1
        required-permission: '' # The permission required for this boost to apply - leave blank for it to be applied to everyone
        min-price:
            type: '*'
            value: 2.0
    example2:
        spec: ditto
        required-permission: '' # The permission required for this boost to apply - leave blank for it to be applied to everyone
        min-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.

The mathematical operators are:

  • + - addition
  • - - subtraction
  • * - multiplication
  • / - division
Clone this wiki locally