ProtectednewProtectedupThe type to check against
Whether the modifier type is of the specified type
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
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
Default 0. Used to check the weight of modifiers with conditional weight (see WeightedModifierTypeWeightFunc)
Checks if the modifier type is of a specific type