Clear offense/defense numbers when moving on equip screen

This commit is contained in:
jeffman 2017-03-17 21:21:45 -04:00
parent 1b1f29a282
commit e4f3784ef3
1 changed files with 21 additions and 1 deletions

View File

@ -211,12 +211,22 @@ pop {r0-r2,pc}
//==============================================================================
// Clear equipment when moving left/right on equip screen
// Clear equipment and offense/defense when moving left/right on equip screen
// r6 = window pointer
.c4b2c_clear_left:
mov r0,r6
bl .clear_equipment
// Clear offense/defense
push {r0-r2}
mov r0,#8
mov r2,r0
mov r1,#0xB
bl m2_vwf.print_blankstr
add r1,#2
bl m2_vwf.print_blankstr
pop {r0-r2}
// Clobbered code
strh r1,[r3,#0]
ldr r0,=#0x80C4F3B
@ -226,6 +236,16 @@ bx r0
mov r0,r6
bl .clear_equipment
// Clear offense/defense
push {r0-r2}
mov r0,#8
mov r2,r0
mov r1,#0xB
bl m2_vwf.print_blankstr
add r1,#2
bl m2_vwf.print_blankstr
pop {r0-r2}
// Clobbered code
strh r1,[r3,#0]
ldr r0,=#0x80C4EFF