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
|
||||
|
@@ -721,10 +721,8 @@ ConvertLoadedPuzzlePieces:
|
||||
ret
|
||||
|
||||
.EnlargedTiles:
|
||||
x = 0
|
||||
rept 16
|
||||
for x, 16
|
||||
db ((x & %1000) * %11000) + ((x & %0100) * %1100) + ((x & %0010) * %110) + ((x & %0001) * %11)
|
||||
x = x + 1
|
||||
endr
|
||||
|
||||
UnownPuzzle_AddPuzzlePieceBorders:
|
||||
|
@@ -534,14 +534,10 @@ PokeAnim_CopyBitmaskToBuffer:
|
||||
.Sizes: db 4, 5, 7
|
||||
|
||||
poke_anim_box: MACRO
|
||||
y = 7
|
||||
rept \1
|
||||
x = 7 - \1
|
||||
rept \1
|
||||
db x + y
|
||||
x = x + 1
|
||||
for y, 1, \1 + 1
|
||||
for x, 7 - \1, 7
|
||||
db y * 7 + x
|
||||
endr
|
||||
y = y + 7
|
||||
endr
|
||||
ENDM
|
||||
|
||||
|
@@ -25,8 +25,6 @@ GetSquareRoot:
|
||||
ret
|
||||
|
||||
.Squares:
|
||||
x = 1
|
||||
rept NUM_SQUARE_ROOTS
|
||||
dw x * x
|
||||
x = x + 1
|
||||
for x, 1, NUM_SQUARE_ROOTS + 1
|
||||
dw x**2
|
||||
endr
|
||||
|
@@ -1309,8 +1309,7 @@ if \1 == 0 && \2 == 0
|
||||
_dx = 0
|
||||
endc
|
||||
dbpixel \1, \2, _dx, 0
|
||||
shift
|
||||
shift
|
||||
shift 2
|
||||
endr
|
||||
ENDM
|
||||
; frame 0 y, x; frame 1 y, x
|
||||
|
@@ -1310,26 +1310,20 @@ CrystalIntro_UnownFade:
|
||||
|
||||
.BWFade:
|
||||
; Fade between black and white.
|
||||
hue = 0
|
||||
rept 32
|
||||
for hue, 32
|
||||
RGB hue, hue, hue
|
||||
hue = hue + 1
|
||||
endr
|
||||
|
||||
.BlackLBlueFade:
|
||||
; Fade between black and light blue.
|
||||
hue = 0
|
||||
rept 32
|
||||
for hue, 32
|
||||
RGB 0, hue / 2, hue
|
||||
hue = hue + 1
|
||||
endr
|
||||
|
||||
.BlackBlueFade:
|
||||
; Fade between black and blue.
|
||||
hue = 0
|
||||
rept 32
|
||||
for hue, 32
|
||||
RGB 0, 0, hue
|
||||
hue = hue + 1
|
||||
endr
|
||||
|
||||
Intro_Scene20_AppearUnown:
|
||||
|
@@ -55,7 +55,6 @@ PlayerObjectTemplate:
|
||||
; A dummy map object used to initialize the player object.
|
||||
; Shorter than the actual amount copied by two bytes.
|
||||
; Said bytes seem to be unused.
|
||||
_NUM_OBJECT_EVENTS = 0
|
||||
object_event -4, -4, SPRITE_CHRIS, SPRITEMOVEDATA_PLAYER, 15, 15, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, 0, -1
|
||||
|
||||
CopyDECoordsToMapObject::
|
||||
|
@@ -1004,11 +1004,9 @@ PokegearPhone_GetDPad:
|
||||
|
||||
PokegearPhone_UpdateCursor:
|
||||
ld a, " "
|
||||
x = 4
|
||||
rept PHONE_DISPLAY_HEIGHT
|
||||
hlcoord 1, x
|
||||
for y, PHONE_DISPLAY_HEIGHT
|
||||
hlcoord 1, 4 + y * 2
|
||||
ld [hl], a
|
||||
x = x + 2
|
||||
endr
|
||||
hlcoord 1, 4
|
||||
ld a, [wPokegearPhoneCursorPosition]
|
||||
|
@@ -2280,10 +2280,8 @@ _ChangeBox_MenuHeader:
|
||||
|
||||
.Boxes:
|
||||
db NUM_BOXES
|
||||
x = 1
|
||||
rept NUM_BOXES
|
||||
db x
|
||||
x = x + 1
|
||||
for x, NUM_BOXES
|
||||
db x + 1
|
||||
endr
|
||||
db -1
|
||||
|
||||
|
Reference in New Issue
Block a user