Rebalance base stat boosters and make max stack count rely on IVs
This commit is contained in:
1 parent
d4b620b155
commit
e2a6a93209
7 files changed
+104
-59
No files matched your search
@@ -96,7 +96,7 @@ export default class PartyUiHandler extends MessageUiHandler {
|
||||
|
||||
public static FilterItemMaxStacks = (pokemon: PlayerPokemon, modifier: PokemonHeldItemModifier) => {
|
||||
const matchingModifier = pokemon.scene.findModifier(m => m instanceof PokemonHeldItemModifier && (m as PokemonHeldItemModifier).matchType(modifier)) as PokemonHeldItemModifier;
|
||||
if (matchingModifier && matchingModifier.stackCount === matchingModifier.getMaxStackCount())
|
||||
if (matchingModifier && matchingModifier.stackCount === matchingModifier.getMaxStackCount(pokemon.scene))
|
||||
return `${pokemon.name} has too many\nof this item!`;
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user