Skip to content

Commit

Permalink
R/S : Fix level grind & party rotate (#610)
Browse files Browse the repository at this point in the history
* Fix pokecenter loop

* Fix CB2 Party menu for R/S
  • Loading branch information
ThibaultLassiaz authored Jan 10, 2025
1 parent 5a50bc0 commit f21d6a8
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion modules/data/symbols/pokeruby.sym
Original file line number Diff line number Diff line change
Expand Up @@ -4709,7 +4709,6 @@
0806abf4 g 000000d8 Task_ShowResetRtcPrompt
0806accc g 00000210 Task_ResetRtcScreen
0806aedc g 00000058 CB2_PartyMenuMain
0806aedc l 00000000 .gcc2_compiled.
0806af34 g 00000016 VBlankCB_PartyMenu
0806af4c g 00000040 SetPartyMenuSettings
0806af8c g 00000020 DoOpenPartyMenu
Expand Down
1 change: 0 additions & 1 deletion modules/data/symbols/pokeruby_de.sym
Original file line number Diff line number Diff line change
Expand Up @@ -4736,7 +4736,6 @@
0806af34 g 000000d8 Task_ShowResetRtcPrompt
0806b00c g 00000210 Task_ResetRtcScreen
0806b21c g 00000058 CB2_PartyMenuMain
0806b21c l 00000000 .gcc2_compiled.
0806b274 g 00000016 VBlankCB_PartyMenu
0806b28c g 00000040 SetPartyMenuSettings
0806b2cc g 00000020 DoOpenPartyMenu
Expand Down
1 change: 0 additions & 1 deletion modules/data/symbols/pokeruby_rev1.sym
Original file line number Diff line number Diff line change
Expand Up @@ -4709,7 +4709,6 @@
0806ac14 g 000000d8 Task_ShowResetRtcPrompt
0806acec g 00000210 Task_ResetRtcScreen
0806aefc g 00000058 CB2_PartyMenuMain
0806aefc l 00000000 .gcc2_compiled.
0806af54 g 00000016 VBlankCB_PartyMenu
0806af6c g 00000040 SetPartyMenuSettings
0806afac g 00000020 DoOpenPartyMenu
Expand Down
1 change: 0 additions & 1 deletion modules/data/symbols/pokesapphire.sym
Original file line number Diff line number Diff line change
Expand Up @@ -4709,7 +4709,6 @@
0806abf8 g 000000d8 Task_ShowResetRtcPrompt
0806acd0 g 00000210 Task_ResetRtcScreen
0806aee0 g 00000058 CB2_PartyMenuMain
0806aee0 l 00000000 .gcc2_compiled.
0806af38 g 00000016 VBlankCB_PartyMenu
0806af50 g 00000040 SetPartyMenuSettings
0806af90 g 00000020 DoOpenPartyMenu
Expand Down
1 change: 0 additions & 1 deletion modules/data/symbols/pokesapphire_de.sym
Original file line number Diff line number Diff line change
Expand Up @@ -4736,7 +4736,6 @@
0806af38 g 000000d8 Task_ShowResetRtcPrompt
0806b010 g 00000210 Task_ResetRtcScreen
0806b220 g 00000058 CB2_PartyMenuMain
0806b220 l 00000000 .gcc2_compiled.
0806b278 g 00000016 VBlankCB_PartyMenu
0806b290 g 00000040 SetPartyMenuSettings
0806b2d0 g 00000020 DoOpenPartyMenu
Expand Down
1 change: 0 additions & 1 deletion modules/data/symbols/pokesapphire_rev1.sym
Original file line number Diff line number Diff line change
Expand Up @@ -4709,7 +4709,6 @@
0806ac18 g 000000d8 Task_ShowResetRtcPrompt
0806acf0 g 00000210 Task_ResetRtcScreen
0806af00 g 00000058 CB2_PartyMenuMain
0806af00 l 00000000 .gcc2_compiled.
0806af58 g 00000016 VBlankCB_PartyMenu
0806af70 g 00000040 SetPartyMenuSettings
0806afb0 g 00000020 DoOpenPartyMenu
Expand Down
2 changes: 1 addition & 1 deletion modules/modes/util/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def find_closest_pokemon_center(
try:
path_to = calculate_path(location, pokemon_center_candidate.value)
path_from = calculate_path(pokemon_center_candidate.value, location)
path_length = path_to + path_from
path_length = len(path_to) + len(path_from)
if path_length_to_pokemon_center is None or path_length < path_length_to_pokemon_center:
pokemon_center = pokemon_center_candidate
path_length_to_pokemon_center = path_length
Expand Down

0 comments on commit f21d6a8

Please sign in to comment.