rgbds supports 'X - 1' instead of 'X + -1'

This commit is contained in:
Rangi
2020-03-21 14:01:05 -04:00
parent 5a5f5ececd
commit 6a6ba10315
32 changed files with 47 additions and 47 deletions

View File

@@ -117,7 +117,7 @@ GeneratePartyMonStats:
and a
jr nz, .randomlygeneratemoves
ld de, wEnemyMonMoves
rept NUM_MOVES + -1
rept NUM_MOVES - 1
ld a, [de]
inc de
ld [hli], a
@@ -128,7 +128,7 @@ endr
.randomlygeneratemoves
xor a
rept NUM_MOVES + -1
rept NUM_MOVES - 1
ld [hli], a
endr
ld [hl], a