chore: fix bugs
Some checks failed
CI / build (push) Failing after 1m18s

This commit is contained in:
Giulia Sanguineti
2025-10-01 10:11:42 +02:00
parent d138ed1bd4
commit 4c8d3e962f
44 changed files with 236 additions and 235 deletions

View File

@@ -363,9 +363,8 @@ _HallOfFamePC:
call ClearBGPalettes
pop hl
call DisplayHOFMon
; BUG: A "HOF Master!" title for 200-Time Famers is defined but inaccessible (see docs/bugs_and_glitches.md)
ld a, [wHallOfFameTempWinCount]
cp HOF_MASTER_COUNT + 1
cp HOF_MASTER_COUNT
jr c, .print_num_hof
ld de, .HOFMaster
hlcoord 1, 2

View File

@@ -278,11 +278,9 @@ CalcMagikarpLength:
ret
.BCLessThanDE:
; BUG: Magikarp lengths can be miscalculated (see docs/bugs_and_glitches.md)
ld a, b
cp d
ret c
ret nc
ld a, c
cp e
ret

View File

@@ -400,7 +400,6 @@ SurfFromMenuScript:
special UpdateTimePals
UsedSurfScript:
; BUG: Surfing directly across a map connection does not load the new map (see docs/bugs_and_glitches.md)
writetext UsedSurfText ; "used SURF!"
waitbutton
closetext
@@ -412,9 +411,7 @@ UsedSurfScript:
special UpdatePlayerSprite
special PlayMapMusic
; step into the water (slow_step DIR, step_end)
special SurfStartStep
applymovement PLAYER, wMovementBuffer
end
.stubbed_fn
@@ -1442,7 +1439,6 @@ FishFunction:
dw .FishNoFish
.TryFish:
; BUG: You can fish on top of NPCs (see docs/bugs_and_glitches.md)
ld a, [wPlayerState]
cp PLAYER_SURF
jr z, .fail
@@ -1451,7 +1447,9 @@ FishFunction:
call GetFacingTileCoord
call GetTilePermission
cp WATER_TILE
jr z, .facingwater
jr nz, .fail
farcall CheckFacingObject
jr nc, .facingwater
.fail
ld a, $3
ret