mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
50
engine/events/itemfinder.asm
Normal file
50
engine/events/itemfinder.asm
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
ItemFinder:
|
||||
farcall CheckForHiddenItems
|
||||
jr c, .found_something
|
||||
ld hl, .Script_FoundNothing
|
||||
jr .resume
|
||||
|
||||
.found_something
|
||||
ld hl, .Script_FoundSomething
|
||||
|
||||
.resume
|
||||
call QueueScript
|
||||
ld a, $1
|
||||
ld [wItemEffectSucceeded], a
|
||||
ret
|
||||
|
||||
.ItemfinderSound:
|
||||
ld c, 4
|
||||
.sfx_loop
|
||||
push bc
|
||||
ld de, SFX_SECOND_PART_OF_ITEMFINDER
|
||||
call WaitPlaySFX
|
||||
ld de, SFX_TRANSACTION
|
||||
call WaitPlaySFX
|
||||
pop bc
|
||||
dec c
|
||||
jr nz, .sfx_loop
|
||||
ret
|
||||
|
||||
.Script_FoundSomething:
|
||||
reloadmappart
|
||||
special UpdateTimePals
|
||||
callasm .ItemfinderSound
|
||||
writetext .ItemfinderItemNearbyText
|
||||
closetext
|
||||
end
|
||||
|
||||
.Script_FoundNothing:
|
||||
reloadmappart
|
||||
special UpdateTimePals
|
||||
writetext .ItemfinderNopeText
|
||||
closetext
|
||||
end
|
||||
|
||||
.ItemfinderItemNearbyText:
|
||||
text_far _ItemfinderItemNearbyText
|
||||
text_end
|
||||
|
||||
.ItemfinderNopeText:
|
||||
text_far _ItemfinderNopeText
|
||||
text_end
|
||||
Loading…
Add table
Add a link
Reference in a new issue