mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-07-22 15:47:00 +00:00
[6.8.2] Safari Zone crash patch
This commit is contained in:
@@ -102,7 +102,7 @@ class OverworldPokemonEvent < Game_Event
|
||||
|
||||
def roll_for_special_encounters
|
||||
# Mew encounter
|
||||
if rand(10000) < Settings::MEW_OW_ENCOUNTER_CHANCE
|
||||
if rand(15100) < Settings::MEW_OW_ENCOUNTER_CHANCE
|
||||
@species = :MEW
|
||||
@level = 7
|
||||
end
|
||||
|
||||
@@ -51,8 +51,7 @@ end
|
||||
|
||||
def get_overworld_pokemon_group_size(species, max_group_size)
|
||||
catch_rate = GameData::Species.get(species).catch_rate
|
||||
t = (catch_rate - 1) / 254.0
|
||||
t = Math.sqrt(t) # invert to favor smaller groups
|
||||
t = Math.sqrt([(catch_rate - 1) / 254.0, 0].max)
|
||||
|
||||
# Base group size, biased toward smaller numbers
|
||||
base = 1 + (t * (max_group_size - 1) * 0.5) # multiply by 0.5 to shrink toward 1–2
|
||||
|
||||
Reference in New Issue
Block a user