Merge pull request #691 from Rangi42/master
Identify remaining gfx/unknown files, and document a Teleport bug
13
Makefile
@ -157,6 +157,8 @@ gfx/pokemon/%/back.2bpp: rgbgfx += -h
|
||||
|
||||
gfx/trainers/%.2bpp: rgbgfx += -h
|
||||
|
||||
gfx/pokemon/egg/unused_front.2bpp: rgbgfx += -h
|
||||
|
||||
gfx/new_game/shrink1.2bpp: rgbgfx += -h
|
||||
gfx/new_game/shrink2.2bpp: rgbgfx += -h
|
||||
|
||||
@ -181,7 +183,6 @@ gfx/title/old_fg.2bpp: tools/gfx += --interleave --png=$<
|
||||
gfx/title/logo.2bpp: rgbgfx += -x 4
|
||||
|
||||
gfx/trade/ball.2bpp: tools/gfx += --remove-whitespace
|
||||
gfx/trade/game_boy_n64.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/slots/slots_1.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/slots/slots_2.2bpp: tools/gfx += --interleave --png=$<
|
||||
@ -226,13 +227,17 @@ gfx/font/unused_bold_font.1bpp: tools/gfx += --trim-whitespace
|
||||
gfx/sgb/sgb_border.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/mobile/ascii_font.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/dialpad.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/dialpad_cursor.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/electro_ball.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/electro_ball_nonmatching.2bpp: tools/gfx += --remove-duplicates --remove-xflip
|
||||
gfx/mobile/mobile_adapter.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/mobile_splash.2bpp: tools/gfx += --remove-duplicates --remove-xflip
|
||||
gfx/mobile/card.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/card_2.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/card_folder.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/mobile/phone_tiles.2bpp: tools/gfx += --remove-whitespace
|
||||
gfx/mobile/pichu_animated.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/unknown/unknown_egg.2bpp: rgbgfx += -h
|
||||
gfx/mobile/stadium2_n64.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
|
||||
### Catch-all graphics rules
|
||||
|
@ -30,6 +30,7 @@ Some fixes are mentioned as breaking compatibility with link battles. This can b
|
||||
- [A Disabled but PP Up–enhanced move may not trigger Struggle](#a-disabled-but-pp-upenhanced-move-may-not-trigger-struggle)
|
||||
- [A Pokémon that fainted from Pursuit will have its old status condition when revived](#a-pokémon-that-fainted-from-pursuit-will-have-its-old-status-condition-when-revived)
|
||||
- [Lock-On and Mind Reader don't always bypass Fly and Dig](#lock-on-and-mind-reader-dont-always-bypass-fly-and-dig)
|
||||
- [Wild Pokémon can always Teleport regardless of level difference](#wild-pokémon-can-always-teleport-regardless-of-level-difference)
|
||||
- [Beat Up can desynchronize link battles](#beat-up-can-desynchronize-link-battles)
|
||||
- [Beat Up works incorrectly with only one Pokémon in the party](#beat-up-works-incorrectly-with-only-one-pokémon-in-the-party)
|
||||
- [Beat Up may fail to raise Substitute](#beat-up-may-fail-to-raise-substitute)
|
||||
@ -693,6 +694,25 @@ This bug affects Attract, Curse, Foresight, Mean Look, Mimic, Nightmare, Spider
|
||||
```
|
||||
|
||||
|
||||
## Wild Pokémon can always Teleport regardless of level difference
|
||||
|
||||
**Fix:** Edit `BattleCommand_Teleport` in [engine/battle/move_effects/teleport.asm](https://github.com/pret/pokecrystal/blob/master/engine/battle/move_effects/teleport.asm):
|
||||
|
||||
```diff
|
||||
.loop_enemy
|
||||
call BattleRandom
|
||||
cp c
|
||||
jr nc, .loop_enemy
|
||||
srl b
|
||||
srl b
|
||||
cp b
|
||||
- ; This should be jr c, .failed
|
||||
- ; As written, it makes enemy use of Teleport always succeed if able
|
||||
- jr nc, .run_away
|
||||
+ jr c, .failed
|
||||
```
|
||||
|
||||
|
||||
## Beat Up can desynchronize link battles
|
||||
|
||||
*Fixing this bug will break compatibility with standard Pokémon Crystal for link battles.*
|
||||
|
@ -66,10 +66,8 @@ BattleCommand_Teleport:
|
||||
srl b
|
||||
srl b
|
||||
cp b
|
||||
; This does the wrong thing. What was
|
||||
; probably intended was jr c, .failed
|
||||
; The way this is made makes enemy use
|
||||
; of Teleport always succeed if able
|
||||
; This should be jr c, .failed
|
||||
; As written, it makes enemy use of Teleport always succeed if able
|
||||
jr nc, .run_away
|
||||
.run_away
|
||||
call UpdateBattleMonInParty
|
||||
|
@ -152,7 +152,7 @@ BattleAnimRestoreHuds:
|
||||
|
||||
ldh a, [rSVBK]
|
||||
push af
|
||||
ld a, BANK(wCurBattleMon) ; aka BANK(wTempMon) and BANK(wPartyMon1) and several others
|
||||
ld a, BANK(wCurBattleMon) ; aka BANK(wTempMon), BANK(wPartyMon1), and several others
|
||||
ldh [rSVBK], a
|
||||
|
||||
ld hl, UpdateBattleHuds
|
||||
|
@ -17,7 +17,7 @@ Function1700c4:
|
||||
|
||||
call Function17042c
|
||||
|
||||
ld a, BANK(s5_be45) ; aka BANK(s5_be46) and BANK(s5_aa41) and BANK(s5_aa5d)
|
||||
ld a, BANK(s5_be45) ; aka BANK(s5_be46), BANK(s5_aa41), and BANK(s5_aa5d)
|
||||
call GetSRAMBank
|
||||
ld a, 1
|
||||
ld [s5_be45], a
|
||||
@ -1212,7 +1212,7 @@ CheckMobileEventIndex: ; BattleTowerAction $0b something to do with GS Ball
|
||||
|
||||
Function1708c8: ; BattleTowerAction $0c
|
||||
call UpdateTime
|
||||
ld a, BANK(s5_aa8b) ; aka BANK(s5_aa8c) and BANK(s5_aa5d) and BANK(s5_aa48) and BANK(s5_aa47)
|
||||
ld a, BANK(s5_aa8b) ; aka BANK(s5_aa8c), BANK(s5_aa5d), BANK(s5_aa48), and BANK(s5_aa47)
|
||||
call GetSRAMBank
|
||||
ld a, [wCurDay]
|
||||
ld [s5_aa8b], a
|
||||
|
@ -222,7 +222,7 @@ MG_Mobile_Layout02:
|
||||
RGB 31, 31, 31
|
||||
|
||||
Function49742:
|
||||
ld hl, .Palette_49757
|
||||
ld hl, .MobileBorderPalettes
|
||||
ld de, wBGPals1
|
||||
ld bc, 8 palettes
|
||||
ld a, BANK(wBGPals1)
|
||||
@ -230,8 +230,8 @@ Function49742:
|
||||
farcall ApplyPals
|
||||
ret
|
||||
|
||||
.Palette_49757:
|
||||
INCLUDE "gfx/unknown/49757.pal"
|
||||
.MobileBorderPalettes:
|
||||
INCLUDE "gfx/trade/mobile_border.pal"
|
||||
|
||||
_InitMG_Mobile_LinkTradePalMap:
|
||||
hlcoord 0, 0, wAttrmap
|
||||
|
@ -1,5 +1,5 @@
|
||||
GFX_49c0c:
|
||||
INCBIN "gfx/unknown/049c0c.2bpp"
|
||||
MobileMenuGFX:
|
||||
INCBIN "gfx/mobile/mobile_menu.2bpp"
|
||||
|
||||
MainMenu:
|
||||
xor a
|
||||
|
@ -942,9 +942,8 @@ StatsScreen_LoadTextboxSpaceGFX:
|
||||
pop hl
|
||||
ret
|
||||
|
||||
Unreferenced_4e32a:
|
||||
; A blank space tile?
|
||||
ds 16
|
||||
Unreferenced_StatsScreenSpaceGFX:
|
||||
INCBIN "gfx/font/space.2bpp"
|
||||
|
||||
EggStatsScreen:
|
||||
xor a
|
||||
|
@ -136,7 +136,7 @@ Function140ae:
|
||||
.time_overflow
|
||||
farcall ClearDailyTimers
|
||||
farcall Function170923
|
||||
ld a, BANK(s5_aa8c) ; and BANK(s5_b2fa)
|
||||
ld a, BANK(s5_aa8c) ; aka BANK(s5_b2fa)
|
||||
call GetSRAMBank
|
||||
ld a, [s5_aa8c]
|
||||
inc a
|
||||
|
11
gfx/font.asm
@ -18,8 +18,6 @@ INCBIN "gfx/frames/7.1bpp"
|
||||
INCBIN "gfx/frames/8.1bpp"
|
||||
INCBIN "gfx/frames/9.1bpp"
|
||||
|
||||
; Various misc graphics here.
|
||||
|
||||
StatsScreenPageTilesGFX:
|
||||
INCBIN "gfx/stats/stats_tiles.2bpp"
|
||||
|
||||
@ -35,22 +33,23 @@ INCBIN "gfx/battle/expbar.2bpp"
|
||||
TownMapGFX:
|
||||
INCBIN "gfx/pokegear/town_map.2bpp.lz"
|
||||
|
||||
UnusedWeekdayKanjiGFX: ; unused kanji
|
||||
UnusedWeekdayKanjiGFX:
|
||||
INCBIN "gfx/font/unused_weekday_kanji.2bpp"
|
||||
|
||||
PokegearPhoneIconGFX:
|
||||
INCBIN "gfx/font/phone_icon.2bpp"
|
||||
|
||||
UnusedBoldFontGFX: ; unused bold letters + unown chars
|
||||
UnusedBoldFontGFX:
|
||||
INCBIN "gfx/font/unused_bold_font.1bpp"
|
||||
|
||||
TextboxSpaceGFX:
|
||||
INCBIN "gfx/frames/space.1bpp"
|
||||
; StatsScreen_LoadTextboxSpaceGFX reads 2bpp; LoadFrame reads first half as 1bpp
|
||||
INCBIN "gfx/font/space.2bpp"
|
||||
|
||||
FontsExtra_SolidBlackGFX:
|
||||
INCBIN "gfx/font/black.1bpp"
|
||||
|
||||
UnusedUpArrowGFX: ; unused up arrow + whitespace
|
||||
UnusedUpArrowGFX:
|
||||
INCBIN "gfx/font/unused_up_arrow.1bpp"
|
||||
|
||||
MobilePhoneTilesGFX:
|
||||
|
Before Width: | Height: | Size: 78 B After Width: | Height: | Size: 78 B |
BIN
gfx/font/space.png
Normal file
After Width: | Height: | Size: 71 B |
Before Width: | Height: | Size: 113 B |
BIN
gfx/mobile/card.png
Normal file
After Width: | Height: | Size: 335 B |
BIN
gfx/mobile/card_2.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
gfx/mobile/card_folder.png
Normal file
After Width: | Height: | Size: 567 B |
BIN
gfx/mobile/card_large_sprite.png
Normal file
After Width: | Height: | Size: 137 B |
BIN
gfx/mobile/card_list.png
Normal file
After Width: | Height: | Size: 235 B |
BIN
gfx/mobile/card_sprite.png
Normal file
After Width: | Height: | Size: 103 B |
BIN
gfx/mobile/chris_silhouette.png
Normal file
After Width: | Height: | Size: 250 B |