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
45
engine/events/squirtbottle.asm
Normal file
45
engine/events/squirtbottle.asm
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
_Squirtbottle:
|
||||
ld hl, .SquirtbottleScript
|
||||
call QueueScript
|
||||
ld a, $1
|
||||
ld [wItemEffectSucceeded], a
|
||||
ret
|
||||
|
||||
.SquirtbottleScript:
|
||||
reloadmappart
|
||||
special UpdateTimePals
|
||||
callasm .CheckCanUseSquirtbottle
|
||||
iffalse .SquirtbottleNothingScript
|
||||
farsjump WateredWeirdTreeScript
|
||||
|
||||
.SquirtbottleNothingScript:
|
||||
jumptext .SquirtbottleNothingText
|
||||
|
||||
.SquirtbottleNothingText:
|
||||
text_far _SquirtbottleNothingText
|
||||
text_end
|
||||
|
||||
.CheckCanUseSquirtbottle:
|
||||
ld a, [wMapGroup]
|
||||
cp GROUP_ROUTE_36
|
||||
jr nz, .nope
|
||||
|
||||
ld a, [wMapNumber]
|
||||
cp MAP_ROUTE_36
|
||||
jr nz, .nope
|
||||
|
||||
farcall GetFacingObject
|
||||
jr c, .nope
|
||||
|
||||
ld a, d
|
||||
cp SPRITEMOVEDATA_SUDOWOODO
|
||||
jr nz, .nope
|
||||
|
||||
ld a, 1
|
||||
ld [wScriptVar], a
|
||||
ret
|
||||
|
||||
.nope
|
||||
xor a
|
||||
ld [wScriptVar], a
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue