WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit d309d86

Browse files
Narishma-gbRangi42
andauthored
Apply suggestions from code review
Co-authored-by: Rangi <[email protected]>
1 parent ad8611d commit d309d86

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

engine/pokemon/status_screen.asm

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,16 +237,17 @@ PTile: INCBIN "gfx/font/P.1bpp"
237237

238238
PrintStatsBox:
239239
ld a, d
240-
and a ; status screen
241-
jr nz, .LevelUpStatBox ; battle or Rare Candy
240+
ASSERT STATUS_SCREEN_STATS_BOX == 0
241+
and a
242+
jr nz, .LevelUpStatsBox ; battle or Rare Candy
242243
hlcoord 0, 8
243244
ld b, 8
244245
ld c, 8
245246
call TextBoxBorder
246247
hlcoord 1, 9
247248
ld bc, SCREEN_WIDTH + 5 ; one row down and 5 columns right
248249
jr .PrintStats
249-
.LevelUpStatBox
250+
.LevelUpStatsBox
250251
hlcoord 9, 2
251252
ld b, 8
252253
ld c, 9
@@ -271,15 +272,15 @@ PrintStatsBox:
271272
ld de, wLoadedMonSpecial
272273
jp PrintNumber
273274

274-
.PrintStat
275+
.PrintStat:
275276
push hl
276277
call PrintNumber
277278
pop hl
278279
ld de, SCREEN_WIDTH * 2
279280
add hl, de
280281
ret
281282

282-
.StatsText
283+
.StatsText:
283284
db "ATTACK"
284285
next "DEFENSE"
285286
next "SPEED"

0 commit comments

Comments
 (0)