2018-01-02 16:13:57 +00:00
|
|
|
Special_MoveDeletion:
|
2015-12-19 19:48:30 +00:00
|
|
|
ld hl, .IntroText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
|
|
|
call YesNoBox
|
2015-12-19 19:48:30 +00:00
|
|
|
jr c, .declined
|
|
|
|
ld hl, .AskWhichMonText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall SelectMonFromParty
|
2015-12-19 19:48:30 +00:00
|
|
|
jr c, .declined
|
2015-02-11 21:20:22 +00:00
|
|
|
ld a, [CurPartySpecies]
|
|
|
|
cp EGG
|
2015-12-19 19:48:30 +00:00
|
|
|
jr z, .egg
|
2015-02-11 21:20:22 +00:00
|
|
|
ld a, [CurPartyMon]
|
|
|
|
ld hl, PartyMon1Moves + 1
|
2015-11-04 16:19:58 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-02-11 21:20:22 +00:00
|
|
|
call AddNTimes
|
|
|
|
ld a, [hl]
|
|
|
|
and a
|
2015-12-19 19:48:30 +00:00
|
|
|
jr z, .onlyonemove
|
|
|
|
ld hl, .AskWhichMoveText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
2015-11-11 21:11:08 +00:00
|
|
|
call LoadStandardMenuDataHeader
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall ChooseMoveToDelete
|
2015-02-11 21:20:22 +00:00
|
|
|
push af
|
2015-12-19 01:07:09 +00:00
|
|
|
call ReturnToMapWithSpeechTextbox
|
2015-02-11 21:20:22 +00:00
|
|
|
pop af
|
2015-12-19 19:48:30 +00:00
|
|
|
jr c, .declined
|
2015-12-15 23:59:49 +00:00
|
|
|
ld a, [wMenuCursorY]
|
2015-02-11 21:20:22 +00:00
|
|
|
push af
|
|
|
|
ld a, [CurSpecies]
|
|
|
|
ld [wd265], a
|
|
|
|
call GetMoveName
|
2015-12-19 19:48:30 +00:00
|
|
|
ld hl, .ConfirmDeleteText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
|
|
|
call YesNoBox
|
|
|
|
pop bc
|
2015-12-19 19:48:30 +00:00
|
|
|
jr c, .declined
|
|
|
|
call .DeleteMove
|
2015-02-11 21:20:22 +00:00
|
|
|
call WaitSFX
|
|
|
|
ld de, SFX_MOVE_DELETED
|
|
|
|
call PlaySFX
|
|
|
|
call WaitSFX
|
2015-12-19 19:48:30 +00:00
|
|
|
ld hl, .MoveDeletedText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
|
|
|
ret
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.egg
|
|
|
|
ld hl, .EggText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
|
|
|
ret
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.declined
|
|
|
|
ld hl, .DeclinedDeletionText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
|
|
|
ret
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.onlyonemove
|
|
|
|
ld hl, .OnlyOneMoveText
|
2015-02-11 21:20:22 +00:00
|
|
|
call PrintText
|
|
|
|
ret
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.OnlyOneMoveText: ; 0x2c5d1
|
2015-02-11 21:20:22 +00:00
|
|
|
; That #MON knows only one move.
|
|
|
|
text_jump UnknownText_0x1c5eba
|
|
|
|
db "@"
|
|
|
|
; 0x2c5d6
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.ConfirmDeleteText: ; 0x2c5d6
|
2015-02-11 21:20:22 +00:00
|
|
|
; Oh, make it forget @ ?
|
|
|
|
text_jump UnknownText_0x1c5eda
|
|
|
|
db "@"
|
|
|
|
; 0x2c5db
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.MoveDeletedText: ; 0x2c5db
|
2015-02-11 21:20:22 +00:00
|
|
|
; Done! Your #MON forgot the move.
|
|
|
|
text_jump UnknownText_0x1c5ef5
|
|
|
|
db "@"
|
|
|
|
; 0x2c5e0
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.EggText: ; 0x2c5e0
|
2015-02-11 21:20:22 +00:00
|
|
|
; An EGG doesn't know any moves!
|
|
|
|
text_jump UnknownText_0x1c5f17
|
|
|
|
db "@"
|
|
|
|
; 0x2c5e5
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.DeclinedDeletionText: ; 0x2c5e5
|
2015-02-11 21:20:22 +00:00
|
|
|
; No? Come visit me again.
|
|
|
|
text_jump UnknownText_0x1c5f36
|
|
|
|
db "@"
|
|
|
|
; 0x2c5ea
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.AskWhichMoveText: ; 0x2c5ea
|
2015-02-11 21:20:22 +00:00
|
|
|
; Which move should it forget, then?
|
|
|
|
text_jump UnknownText_0x1c5f50
|
|
|
|
db "@"
|
|
|
|
; 0x2c5ef
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.IntroText: ; 0x2c5ef
|
2015-02-11 21:20:22 +00:00
|
|
|
; Um… Oh, yes, I'm the MOVE DELETER. I can make #MON forget moves. Shall I make a #MON forget?
|
|
|
|
text_jump UnknownText_0x1c5f74
|
|
|
|
db "@"
|
|
|
|
; 0x2c5f4
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.AskWhichMonText: ; 0x2c5f4
|
2015-02-11 21:20:22 +00:00
|
|
|
; Which #MON?
|
|
|
|
text_jump UnknownText_0x1c5fd1
|
|
|
|
db "@"
|
|
|
|
; 0x2c5f9
|
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.DeleteMove: ; 2c5f9
|
2015-02-11 21:20:22 +00:00
|
|
|
ld a, b
|
|
|
|
push bc
|
|
|
|
dec a
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
ld hl, PartyMon1Moves
|
|
|
|
add hl, bc
|
|
|
|
ld a, [CurPartyMon]
|
2015-11-04 16:19:58 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-02-11 21:20:22 +00:00
|
|
|
call AddNTimes
|
|
|
|
pop bc
|
|
|
|
push bc
|
|
|
|
inc b
|
2015-12-19 19:48:30 +00:00
|
|
|
.loop
|
2015-02-11 21:20:22 +00:00
|
|
|
ld a, b
|
|
|
|
cp NUM_MOVES + 1
|
2015-12-19 19:48:30 +00:00
|
|
|
jr z, .okay
|
2015-02-11 21:20:22 +00:00
|
|
|
inc hl
|
|
|
|
ld a, [hld]
|
|
|
|
ld [hl], a
|
|
|
|
inc hl
|
|
|
|
inc b
|
2015-12-19 19:48:30 +00:00
|
|
|
jr .loop
|
2015-02-11 21:20:22 +00:00
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.okay
|
2015-02-11 21:20:22 +00:00
|
|
|
xor a
|
|
|
|
ld [hl], a
|
|
|
|
pop bc
|
|
|
|
|
|
|
|
ld a, b
|
|
|
|
push bc
|
|
|
|
dec a
|
|
|
|
ld c, a
|
|
|
|
ld b, 0
|
|
|
|
ld hl, PartyMon1PP
|
|
|
|
add hl, bc
|
|
|
|
ld a, [CurPartyMon]
|
2015-11-04 16:19:58 +00:00
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
2015-02-11 21:20:22 +00:00
|
|
|
call AddNTimes
|
|
|
|
pop bc
|
|
|
|
inc b
|
2015-12-19 19:48:30 +00:00
|
|
|
.loop2
|
2015-02-11 21:20:22 +00:00
|
|
|
ld a, b
|
|
|
|
cp NUM_MOVES + 1
|
2015-12-19 19:48:30 +00:00
|
|
|
jr z, .done
|
2015-02-11 21:20:22 +00:00
|
|
|
inc hl
|
|
|
|
ld a, [hld]
|
|
|
|
ld [hl], a
|
|
|
|
inc hl
|
|
|
|
inc b
|
2015-12-19 19:48:30 +00:00
|
|
|
jr .loop2
|
2015-02-11 21:20:22 +00:00
|
|
|
|
2015-12-19 19:48:30 +00:00
|
|
|
.done
|
2015-02-11 21:20:22 +00:00
|
|
|
xor a
|
|
|
|
ld [hl], a
|
|
|
|
ret
|