mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-20 22:28:41 +13:00
Small polishing of the previous commit + Item Sorting
- Fixes a few bugs from the last commit, namely:
- The guy who gives you the Pocket Lapras having bugged text
- Being able to use it where you shouldn't (Cycling Road, Seafoam before the boulder puzzle)
- Pocket Lapras not having an item description
- As well as this, automatic item sorting has been added. Just press Start in the bag menu and all your items will get assorted into a convenient list.
- Changed a few item descriptions since some of them didn't terminate properly
- Freed up some space in the Home bank
This commit is contained in:
parent
dd7130c489
commit
2c02483f01
15 changed files with 379 additions and 66 deletions
|
|
@ -23,7 +23,7 @@ ItemUsePtrTable:
|
|||
dw ItemUseBall ; POKE_BALL
|
||||
dw ItemUseTownMap ; TOWN_MAP
|
||||
dw ItemUseBicycle ; BICYCLE
|
||||
dw ItemUseSurfboard ; out-of-battle Surf effect
|
||||
dw ItemUseLapras ; POCKET_LAPRAS
|
||||
dw ItemUseBall ; SAFARI_BALL
|
||||
dw ItemUsePokedex ; POKEDEX
|
||||
dw ItemUseEvoStone ; MOON_STONE
|
||||
|
|
@ -759,12 +759,17 @@ ItemUseBicycle:
|
|||
jp PrintText
|
||||
|
||||
; used for Surf out-of-battle effect
|
||||
ItemUseSurfboard:
|
||||
ItemUseLapras:
|
||||
ld a, [wWalkBikeSurfState]
|
||||
ld [wWalkBikeSurfStateCopy], a
|
||||
cp 2 ; is the player already surfing?
|
||||
jr z, .tryToStopSurfing
|
||||
.tryToSurf
|
||||
farcall IsSurfingAllowed
|
||||
ld hl, wd728
|
||||
bit 1, [hl]
|
||||
res 1, [hl]
|
||||
jp z, .no
|
||||
call IsNextTileShoreOrWater
|
||||
jp c, SurfingAttemptFailed
|
||||
ld hl, TilePairCollisionsWater
|
||||
|
|
@ -837,6 +842,10 @@ ItemUseSurfboard:
|
|||
inc a
|
||||
ld [wSimulatedJoypadStatesIndex], a
|
||||
ret
|
||||
.no
|
||||
ld a, 1
|
||||
and a
|
||||
ret
|
||||
|
||||
SurfingGotOnText:
|
||||
text_far _SurfingGotOnText
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue