mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Renamed variables and methods relating to the Bag, renamed $PokemonBag to $Bag, $bag.has? can now check for a minimum quantity
This commit is contained in:
@@ -414,7 +414,7 @@ def pbGenerateWildPokemon(species,level,isRoamer=false)
|
||||
# Improve chances of shiny Pokémon with Shiny Charm and battling more of the
|
||||
# same species
|
||||
shiny_retries = 0
|
||||
shiny_retries += 2 if GameData::Item.exists?(:SHINYCHARM) && $PokemonBag.pbHasItem?(:SHINYCHARM)
|
||||
shiny_retries += 2 if $bag.has?(:SHINYCHARM)
|
||||
if Settings::HIGHER_SHINY_CHANCES_WITH_NUMBER_BATTLED
|
||||
values = [0, 0]
|
||||
case $Trainer.pokedex.battled_count(species)
|
||||
|
||||
Reference in New Issue
Block a user