update to latest 6.0 release

This commit is contained in:
infinitefusion
2023-11-12 21:45:07 -05:00
parent ba7ee9bae2
commit d3662c3f10
4980 changed files with 21185 additions and 317635 deletions

View File

@@ -784,8 +784,14 @@ ItemHandlers::UseOnPokemon.add(:SWIFTWING, proc { |item, pkmn, scene|
next true
})
def can_use_rare_candy(pkmn)
return false if pkmn.level >= GameData::GrowthRate.max_level || pkmn.shadowPokemon?
return false if $PokemonSystem.level_caps==1 && pokemonExceedsLevelCap(pkmn)
return true
end
ItemHandlers::UseOnPokemon.add(:RARECANDY, proc { |item, pkmn, scene|
if pkmn.level >= GameData::GrowthRate.max_level || pkmn.shadowPokemon?
if !(can_use_rare_candy(pkmn))
scene.pbDisplay(_INTL("It won't have any effect."))
next false
end
@@ -1076,3 +1082,13 @@ ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE, proc { |item, pkmn, scene|
end
next false
})
ItemHandlers::UseInField.add(:REGITABLET, proc { |item|
pbCommonEvent(COMMON_EVENT_REGI_TABLET)
next true
})
ItemHandlers::UseFromBag.add(:POKERADAR, proc { |item|
next (pbCanUsePokeRadar?) ? 2 : 0
})