Protected
healProtected
newProtected
restoreProtected
restorePopulates 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
Default 'ModifierPoolType.PLAYER'. Which pool to lookup item tier from
Optional
party: 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
Default 0
. Used to check the weight of modifiers with conditional weight (see WeightedModifierTypeWeightFunc)
Populates item id for ModifierType instance