mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Altered encounter chance calculation to be closer to Gen 3 (inc. Rock Smash), Pokémon's ball bug fix
This commit is contained in:
@@ -592,7 +592,9 @@ HiddenMoveHandlers::UseMove.add(:HEADBUTT,proc { |move,pokemon|
|
||||
# Rock Smash
|
||||
#===============================================================================
|
||||
def pbRockSmashRandomEncounter
|
||||
if rand(100)<25
|
||||
encounter_data = GameData::Encounter.get($game_map.map_id, $PokemonGlobal.encounter_version)
|
||||
chance = (encounter_data) ? encounter_data.step_chances[EncounterTypes::RockSmash] || 50 : 50
|
||||
if rand(100) < chance
|
||||
pbEncounter(EncounterTypes::RockSmash)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user