mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Added Gen 8's shiny chance increase with number battled, fixed other shiny chance-boosting effects not working
This commit is contained in:
@@ -88,3 +88,14 @@ SaveData.register_conversion(:v19_2_fix_berry_plants) do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
SaveData.register_conversion(:v20_add_battled_counts) do
|
||||
essentials_version 20
|
||||
display_title 'Adding Pokédex battle counts'
|
||||
to_value :player do |player|
|
||||
player.pokedex.instance_eval do
|
||||
@caught_counts = {} if @caught_counts.nil?
|
||||
@defeated_counts = {} if @defeated_counts.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user