mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Merge pull request #487 from luckytyphlosion/master
Fix more w-izing edge cases.
This commit is contained in:
commit
4046b41c3a
@ -1,7 +1,7 @@
|
|||||||
TrainerPalettes: ; b0ce
|
TrainerPalettes: ; b0ce
|
||||||
; entries correspond to trainer classes
|
; entries correspond to trainer classes
|
||||||
|
|
||||||
wPlayerPalette: ; Chris uses the same colors as Cal
|
PlayerPalette: ; Chris uses the same colors as Cal
|
||||||
INCLUDE "gfx/trainers/cal.pal"
|
INCLUDE "gfx/trainers/cal.pal"
|
||||||
KrisPalette: ; Kris shares Falkner's palette
|
KrisPalette: ; Kris shares Falkner's palette
|
||||||
INCLUDE "gfx/trainers/falkner.pal"
|
INCLUDE "gfx/trainers/falkner.pal"
|
||||||
|
@ -716,7 +716,7 @@ GetPlayerOrMonPalettePointer:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.male
|
.male
|
||||||
ld hl, wPlayerPalette
|
ld hl, PlayerPalette
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GetFrontpicPalettePointer:
|
GetFrontpicPalettePointer:
|
||||||
|
@ -233,9 +233,9 @@ GetMonSprite: ; 14259
|
|||||||
cp SPRITE_POKEMON
|
cp SPRITE_POKEMON
|
||||||
jr c, .Normal
|
jr c, .Normal
|
||||||
cp SPRITE_DAY_CARE_MON_1
|
cp SPRITE_DAY_CARE_MON_1
|
||||||
jr z, .wBreedMon1
|
jr z, .BreedMon1
|
||||||
cp SPRITE_DAY_CARE_MON_2
|
cp SPRITE_DAY_CARE_MON_2
|
||||||
jr z, .wBreedMon2
|
jr z, .BreedMon2
|
||||||
cp SPRITE_VARS
|
cp SPRITE_VARS
|
||||||
jr nc, .Variable
|
jr nc, .Variable
|
||||||
jr .Icon
|
jr .Icon
|
||||||
@ -253,11 +253,11 @@ GetMonSprite: ; 14259
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
jr .Mon
|
jr .Mon
|
||||||
|
|
||||||
.wBreedMon1
|
.BreedMon1
|
||||||
ld a, [wBreedMon1Species]
|
ld a, [wBreedMon1Species]
|
||||||
jr .Mon
|
jr .Mon
|
||||||
|
|
||||||
.wBreedMon2
|
.BreedMon2
|
||||||
ld a, [wBreedMon2Species]
|
ld a, [wBreedMon2Species]
|
||||||
|
|
||||||
.Mon:
|
.Mon:
|
||||||
|
@ -1148,7 +1148,7 @@ TutorialPack: ; 107bb
|
|||||||
; entries correspond to *_POCKET constants
|
; entries correspond to *_POCKET constants
|
||||||
dw .Items
|
dw .Items
|
||||||
dw .Balls
|
dw .Balls
|
||||||
dw .wKeyItems
|
dw .KeyItems
|
||||||
dw .TMHM
|
dw .TMHM
|
||||||
|
|
||||||
.Items: ; 107e9 (4:47e9)
|
.Items: ; 107e9 (4:47e9)
|
||||||
@ -1174,7 +1174,7 @@ TutorialPack: ; 107bb
|
|||||||
dba UpdateItemDescription
|
dba UpdateItemDescription
|
||||||
; 10807
|
; 10807
|
||||||
|
|
||||||
.wKeyItems: ; 10807 (4:4807)
|
.KeyItems: ; 10807 (4:4807)
|
||||||
ld a, KEY_ITEM_POCKET
|
ld a, KEY_ITEM_POCKET
|
||||||
ld hl, .KeyItemsMenuDataHeader
|
ld hl, .KeyItemsMenuDataHeader
|
||||||
jr .DisplayPocket
|
jr .DisplayPocket
|
||||||
|
@ -200,7 +200,7 @@ Serial_ExchangeByte:: ; 78a
|
|||||||
cp SERIAL_NO_DATA_BYTE
|
cp SERIAL_NO_DATA_BYTE
|
||||||
ret nz
|
ret nz
|
||||||
call CheckwLinkTimeoutFramesNonzero
|
call CheckwLinkTimeoutFramesNonzero
|
||||||
jr z, .wLinkTimeoutFrames_zero
|
jr z, .linkTimeoutFrames_zero
|
||||||
push hl
|
push hl
|
||||||
ld hl, wLinkTimeoutFrames + 1
|
ld hl, wLinkTimeoutFrames + 1
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@ -215,7 +215,7 @@ Serial_ExchangeByte:: ; 78a
|
|||||||
call CheckwLinkTimeoutFramesNonzero
|
call CheckwLinkTimeoutFramesNonzero
|
||||||
jr z, SerialDisconnected
|
jr z, SerialDisconnected
|
||||||
|
|
||||||
.wLinkTimeoutFrames_zero
|
.linkTimeoutFrames_zero
|
||||||
ld a, [rIE]
|
ld a, [rIE]
|
||||||
and (1 << SERIAL) | (1 << TIMER) | (1 << LCD_STAT) | (1 << VBLANK)
|
and (1 << SERIAL) | (1 << TIMER) | (1 << LCD_STAT) | (1 << VBLANK)
|
||||||
cp 1 << SERIAL
|
cp 1 << SERIAL
|
||||||
|
@ -34,19 +34,19 @@ KrissHouse2F_MapScripts:
|
|||||||
|
|
||||||
db 0, 0, 0 ; filler
|
db 0, 0, 0 ; filler
|
||||||
|
|
||||||
Doll1:
|
DecoDoll1Script:
|
||||||
describedecoration DECODESC_LEFT_DOLL
|
describedecoration DECODESC_LEFT_DOLL
|
||||||
|
|
||||||
Doll2:
|
DecoDoll2Script:
|
||||||
describedecoration DECODESC_RIGHT_DOLL
|
describedecoration DECODESC_RIGHT_DOLL
|
||||||
|
|
||||||
wDecoBigDoll:
|
DecoBigDollScript:
|
||||||
describedecoration DECODESC_BIG_DOLL
|
describedecoration DECODESC_BIG_DOLL
|
||||||
|
|
||||||
GameConsole:
|
DecoGameConsoleScript:
|
||||||
describedecoration DECODESC_CONSOLE
|
describedecoration DECODESC_CONSOLE
|
||||||
|
|
||||||
KrissHousePoster:
|
DecoPosterScript:
|
||||||
conditional_event EVENT_KRISS_ROOM_POSTER, .Script
|
conditional_event EVENT_KRISS_ROOM_POSTER, .Script
|
||||||
|
|
||||||
.Script:
|
.Script:
|
||||||
@ -131,11 +131,11 @@ KrissHouse2F_MapEvents:
|
|||||||
bg_event 2, 1, BGEVENT_UP, KrissHousePC
|
bg_event 2, 1, BGEVENT_UP, KrissHousePC
|
||||||
bg_event 3, 1, BGEVENT_READ, KrissHouseRadio
|
bg_event 3, 1, BGEVENT_READ, KrissHouseRadio
|
||||||
bg_event 5, 1, BGEVENT_READ, KrissHouseBookshelf
|
bg_event 5, 1, BGEVENT_READ, KrissHouseBookshelf
|
||||||
bg_event 6, 0, BGEVENT_IFSET, KrissHousePoster
|
bg_event 6, 0, BGEVENT_IFSET, DecoPosterScript
|
||||||
|
|
||||||
.ObjectEvents:
|
.ObjectEvents:
|
||||||
db 4
|
db 4
|
||||||
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GameConsole, EVENT_KRISS_HOUSE_2F_CONSOLE
|
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoGameConsoleScript, EVENT_KRISS_HOUSE_2F_CONSOLE
|
||||||
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Doll1, EVENT_KRISS_HOUSE_2F_DOLL_1
|
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoDoll1Script, EVENT_KRISS_HOUSE_2F_DOLL_1
|
||||||
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Doll2, EVENT_KRISS_HOUSE_2F_DOLL_2
|
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoDoll2Script, EVENT_KRISS_HOUSE_2F_DOLL_2
|
||||||
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, wDecoBigDoll, EVENT_KRISS_HOUSE_2F_BIG_DOLL
|
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoBigDollScript, EVENT_KRISS_HOUSE_2F_BIG_DOLL
|
||||||
|
@ -200,7 +200,7 @@ MobileSystemSplashScreen_InitGFX: ; 16c108
|
|||||||
ld bc, 20
|
ld bc, 20
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, .wTileMap
|
ld hl, .TileMap
|
||||||
decoord 0, 1
|
decoord 0, 1
|
||||||
ld bc, $0154
|
ld bc, $0154
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
@ -212,7 +212,7 @@ MobileSystemSplashScreen_InitGFX: ; 16c108
|
|||||||
ld bc, SCREEN_WIDTH
|
ld bc, SCREEN_WIDTH
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, .wAttrMap
|
ld hl, .AttrMap
|
||||||
decoord 0, 1, wAttrMap
|
decoord 0, 1, wAttrMap
|
||||||
ld bc, 17 * SCREEN_WIDTH
|
ld bc, 17 * SCREEN_WIDTH
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
@ -222,10 +222,10 @@ MobileSystemSplashScreen_InitGFX: ; 16c108
|
|||||||
.Tiles:
|
.Tiles:
|
||||||
INCBIN "gfx/mobile/mobile_splash.2bpp"
|
INCBIN "gfx/mobile/mobile_splash.2bpp"
|
||||||
|
|
||||||
.wTileMap:
|
.TileMap:
|
||||||
INCBIN "gfx/mobile/mobile_splash.tilemap"
|
INCBIN "gfx/mobile/mobile_splash.tilemap"
|
||||||
|
|
||||||
.wAttrMap:
|
.AttrMap:
|
||||||
INCBIN "gfx/mobile/mobile_splash.attrmap"
|
INCBIN "gfx/mobile/mobile_splash.attrmap"
|
||||||
|
|
||||||
UnknownMobilePalettes_16c903: ; 16c903
|
UnknownMobilePalettes_16c903: ; 16c903
|
||||||
|
Loading…
Reference in New Issue
Block a user