mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
fixes unsynced pokedex issue
This commit is contained in:
@@ -634,7 +634,6 @@ class PokeBattle_Battle
|
|||||||
|
|
||||||
def pbSetSeen(battler)
|
def pbSetSeen(battler)
|
||||||
return if !battler || !@internalBattle
|
return if !battler || !@internalBattle
|
||||||
pbPlayer.pokedex.try_resync_pokedex()
|
|
||||||
pbPlayer.pokedex.register(battler.displaySpecies,battler.displayGender,battler.displayForm)
|
pbPlayer.pokedex.register(battler.displaySpecies,battler.displayGender,battler.displayForm)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ class Player < Trainer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def resync_pokedex
|
def resync_pokedex
|
||||||
|
echoln "syncing pokedex"
|
||||||
@seen_standard = resync_standard_pokedex_array(@seen_standard)
|
@seen_standard = resync_standard_pokedex_array(@seen_standard)
|
||||||
@owned_standard = resync_standard_pokedex_array(@owned_standard)
|
@owned_standard = resync_standard_pokedex_array(@owned_standard)
|
||||||
|
|
||||||
@@ -141,6 +142,7 @@ class Player < Trainer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def set_seen(species, should_refresh_dexes = true)
|
def set_seen(species, should_refresh_dexes = true)
|
||||||
|
try_resync_pokedex()
|
||||||
dexNum = getDexNumberForSpecies(species)
|
dexNum = getDexNumberForSpecies(species)
|
||||||
if isTripleFusion(dexNum)
|
if isTripleFusion(dexNum)
|
||||||
set_seen_triple(species)
|
set_seen_triple(species)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user