2018-06-24 07:09:41 -07:00
|
|
|
_Squirtbottle:
|
2016-05-10 09:59:34 -07:00
|
|
|
ld hl, .SquirtbottleScript
|
2015-11-11 20:38:57 -08:00
|
|
|
call QueueScript
|
|
|
|
ld a, $1
|
2015-12-17 14:51:32 -08:00
|
|
|
ld [wItemEffectSucceeded], a
|
2015-11-11 20:38:57 -08:00
|
|
|
ret
|
|
|
|
|
2016-05-10 09:59:34 -07:00
|
|
|
.SquirtbottleScript:
|
2015-11-11 20:38:57 -08:00
|
|
|
reloadmappart
|
|
|
|
special UpdateTimePals
|
2016-05-10 09:59:34 -07:00
|
|
|
callasm .CheckCanUseSquirtbottle
|
2019-10-20 15:24:17 -07:00
|
|
|
iffalse .SquirtbottleNothingScript
|
2019-03-10 13:39:31 -07:00
|
|
|
farsjump WateredWeirdTreeScript
|
2015-11-11 20:38:57 -08:00
|
|
|
|
2019-10-20 15:24:17 -07:00
|
|
|
.SquirtbottleNothingScript:
|
|
|
|
jumptext .SquirtbottleNothingText
|
2015-11-11 20:38:57 -08:00
|
|
|
|
2019-10-20 15:24:17 -07:00
|
|
|
.SquirtbottleNothingText:
|
|
|
|
text_far _SquirtbottleNothingText
|
2018-11-17 10:33:03 -08:00
|
|
|
text_end
|
2015-11-11 20:38:57 -08:00
|
|
|
|
2016-05-10 09:59:34 -07:00
|
|
|
.CheckCanUseSquirtbottle:
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wMapGroup]
|
2015-11-11 20:38:57 -08:00
|
|
|
cp GROUP_ROUTE_36
|
2016-05-10 09:59:34 -07:00
|
|
|
jr nz, .nope
|
2015-11-11 20:38:57 -08:00
|
|
|
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wMapNumber]
|
2015-11-11 20:38:57 -08:00
|
|
|
cp MAP_ROUTE_36
|
2016-05-10 09:59:34 -07:00
|
|
|
jr nz, .nope
|
2015-11-11 20:38:57 -08:00
|
|
|
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall GetFacingObject
|
2016-05-10 09:59:34 -07:00
|
|
|
jr c, .nope
|
2015-11-11 20:38:57 -08:00
|
|
|
|
|
|
|
ld a, d
|
2016-05-10 09:59:34 -07:00
|
|
|
cp SPRITEMOVEDATA_SUDOWOODO
|
|
|
|
jr nz, .nope
|
2015-11-11 20:38:57 -08:00
|
|
|
|
2016-05-10 09:59:34 -07:00
|
|
|
ld a, 1
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wScriptVar], a
|
2015-11-11 20:38:57 -08:00
|
|
|
ret
|
|
|
|
|
2016-05-10 09:59:34 -07:00
|
|
|
.nope
|
2015-11-11 20:38:57 -08:00
|
|
|
xor a
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wScriptVar], a
|
2015-11-11 20:38:57 -08:00
|
|
|
ret
|