You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use rgbds 0.5.0
This commit is contained in:
@@ -386,11 +386,9 @@ ValidateBTParty: ; unreferenced
|
||||
ld c, l
|
||||
ld a, [hl]
|
||||
and a
|
||||
x = $ff
|
||||
rept $ff - NUM_POKEMON
|
||||
for x, $ff, NUM_POKEMON, -1
|
||||
jr z, .invalid
|
||||
cp x
|
||||
x = x - 1
|
||||
endr
|
||||
jr nz, .valid
|
||||
|
||||
|
@@ -43,10 +43,8 @@ BuenasPassword:
|
||||
|
||||
.PasswordIndices:
|
||||
db NUM_PASSWORDS_PER_CATEGORY
|
||||
x = 0
|
||||
rept NUM_PASSWORDS_PER_CATEGORY
|
||||
for x, NUM_PASSWORDS_PER_CATEGORY
|
||||
db x
|
||||
x = x + 1
|
||||
endr
|
||||
db -1
|
||||
|
||||
@@ -264,10 +262,8 @@ Buena_PrizeMenu:
|
||||
|
||||
.Prizes:
|
||||
db NUM_BUENA_PRIZES
|
||||
x = 1
|
||||
rept NUM_BUENA_PRIZES
|
||||
db x
|
||||
x = x + 1
|
||||
for x, NUM_BUENA_PRIZES
|
||||
db x + 1
|
||||
endr
|
||||
db -1
|
||||
|
||||
|
@@ -95,17 +95,9 @@ RotateUnownFrontpic:
|
||||
jr nz, .loop_count
|
||||
ret
|
||||
|
||||
gbprinterrect: MACRO
|
||||
y = 0
|
||||
rept \1
|
||||
x = \1 * (\2 - 1) + y
|
||||
rept \2
|
||||
dw wGameboyPrinter2bppSource tile x
|
||||
x = x - \2
|
||||
endr
|
||||
y = y + 1
|
||||
endr
|
||||
ENDM
|
||||
|
||||
UnownPrinter_GBPrinterRectangle:
|
||||
gbprinterrect 7, 7
|
||||
for y, 7
|
||||
for x, 7 - 1, -1, -1
|
||||
dw wGameboyPrinter2bppSource tile (x * 7 + y)
|
||||
endr
|
||||
endr
|
||||
|
Reference in New Issue
Block a user