pokemon-rogue-battle
    Preparing search index...

    Class PokemonNatureChangeModifierType

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    group: string
    iconImage: string
    id: string
    localeKey: string
    nature: Nature
    newModifierFunc: null | NewModifierFunc
    selectFilter: undefined | PokemonSelectFilter
    soundName: string

    Accessors

    Methods

    • Populates item tier for ModifierType instance Tier is a necessary field for items that appear in player shop (determines the Pokeball visual they use) To find the tier, this function performs a reverse lookup of the item type in modifier pools It checks the weight of the item and will use the first tier for which the weight is greater than 0 This is to allow items to be in multiple item pools depending on the conditions, for example for events If all tiers have a weight of 0 for the item, the first tier where the item was found is used

      Parameters

      • poolType: ModifierPoolType = ModifierPoolType.PLAYER

        Default 'ModifierPoolType.PLAYER'. Which pool to lookup item tier from

      • Optionalparty: PlayerPokemon[]

        optional. Needed to check the weight of modifiers with conditional weight (see WeightedModifierTypeWeightFunc) if not provided or empty, the weight check will be ignored

      • rerollCount: number = 0

        Default 0. Used to check the weight of modifiers with conditional weight (see WeightedModifierTypeWeightFunc)

      Returns ModifierType