mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Miscellaneous cleanup noted in #709
This commit is contained in:
parent
395ebd8386
commit
e32cf1bfd1
@ -1046,7 +1046,7 @@ AI_Smart_Unused2B:
|
||||
.asm_38aaa
|
||||
push hl
|
||||
ld hl, wPlayerUsedMoves
|
||||
ld c, 4
|
||||
ld c, NUM_MOVES
|
||||
|
||||
.asm_38ab0
|
||||
ld a, [hli]
|
||||
@ -1511,7 +1511,7 @@ AI_Smart_Spite:
|
||||
.asm_38ce7
|
||||
push hl
|
||||
ld b, a
|
||||
ld c, 4
|
||||
ld c, NUM_MOVES
|
||||
ld hl, wBattleMonMoves
|
||||
ld de, wBattleMonPP
|
||||
|
||||
@ -2147,10 +2147,10 @@ AI_Smart_Rollout:
|
||||
jr nc, .asm_39020
|
||||
|
||||
ld a, [wEnemyAccLevel]
|
||||
cp 7
|
||||
cp BASE_STAT_LEVEL
|
||||
jr c, .asm_39020
|
||||
ld a, [wPlayerEvaLevel]
|
||||
cp 8
|
||||
cp BASE_STAT_LEVEL + 1
|
||||
jr nc, .asm_39020
|
||||
|
||||
; Otherwise, 80% chance to greatly encourage this move.
|
||||
|
@ -277,13 +277,13 @@ Unreferenced_Function8bec:
|
||||
ldh a, [hCGB]
|
||||
and a
|
||||
jr nz, .cgb
|
||||
ld hl, wPlayerLightScreenCount
|
||||
ld hl, wBetaPokerSGBPals
|
||||
jp PushSGBPals
|
||||
|
||||
.cgb
|
||||
ld a, [wEnemyLightScreenCount] ; col
|
||||
ld a, [wBetaPokerSGBCol]
|
||||
ld c, a
|
||||
ld a, [wEnemyReflectCount] ; row
|
||||
ld a, [wBetaPokerSGBRow]
|
||||
hlcoord 0, 0, wAttrmap
|
||||
ld de, SCREEN_WIDTH
|
||||
.loop
|
||||
@ -294,10 +294,10 @@ Unreferenced_Function8bec:
|
||||
jr .loop
|
||||
|
||||
.done
|
||||
ld b, $0
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
lb bc, 6, 4
|
||||
ld a, [wEnemySafeguardCount] ; value
|
||||
ld a, [wBetaPokerSGBAttr]
|
||||
and $3
|
||||
call FillBoxCGB
|
||||
call CopyTilemapAtOnce
|
||||
|
@ -450,7 +450,7 @@ PadMapForHDMATransfer:
|
||||
ldh [hMapObjectIndexBuffer], a
|
||||
ret
|
||||
|
||||
_Get2bpp::
|
||||
HDMATransfer2bpp::
|
||||
; 2bpp when [rLCDC] & $80
|
||||
; switch to WRAM bank 6
|
||||
ldh a, [rSVBK]
|
||||
@ -494,7 +494,7 @@ _Get2bpp::
|
||||
ldh [rSVBK], a
|
||||
ret
|
||||
|
||||
_Get1bpp::
|
||||
HDMATransfer1bpp::
|
||||
; 1bpp when [rLCDC] & $80
|
||||
.loop
|
||||
ld a, c
|
||||
|
@ -333,7 +333,7 @@ endr
|
||||
|
||||
.SGB_BetaPoker:
|
||||
ld hl, BlkPacket_9a86
|
||||
ld de, wPlayerLightScreenCount ; ???
|
||||
ld de, wBetaPokerSGBPals
|
||||
ld bc, PALPACKET_LENGTH
|
||||
call CopyBytes
|
||||
ld hl, PalPacket_BetaPoker
|
||||
|
@ -110,8 +110,7 @@ CoinString:
|
||||
ShowMoney_TerminatorString:
|
||||
db "@"
|
||||
|
||||
Unreferenced_Function24b8f:
|
||||
; related to safari?
|
||||
Unreferenced_StartMenu_PrintSafariGameStatus:
|
||||
ld hl, wOptions
|
||||
ld a, [hl]
|
||||
push af
|
||||
|
@ -5,7 +5,7 @@ Get2bpp_2::
|
||||
bit rLCDC_ENABLE, a
|
||||
jp z, Copy2bpp
|
||||
|
||||
homecall _Get2bpp
|
||||
homecall HDMATransfer2bpp
|
||||
|
||||
ret
|
||||
|
||||
@ -14,7 +14,7 @@ Get1bpp_2::
|
||||
bit rLCDC_ENABLE, a
|
||||
jp z, Copy1bpp
|
||||
|
||||
homecall _Get1bpp
|
||||
homecall HDMATransfer1bpp
|
||||
|
||||
ret
|
||||
|
||||
|
15
wram.asm
15
wram.asm
@ -640,6 +640,7 @@ wEnemyScreens:: ; c700
|
||||
; see wPlayerScreens
|
||||
db
|
||||
|
||||
UNION ; c701
|
||||
wPlayerSafeguardCount:: db ; c701
|
||||
wPlayerLightScreenCount:: db ; c702
|
||||
wPlayerReflectCount:: db ; c703
|
||||
@ -648,7 +649,19 @@ wPlayerReflectCount:: db ; c703
|
||||
wEnemySafeguardCount:: db ; c705
|
||||
wEnemyLightScreenCount:: db ; c706
|
||||
wEnemyReflectCount:: db ; c707
|
||||
ds 2
|
||||
ds 1
|
||||
|
||||
NEXTU ; c701
|
||||
ds 1
|
||||
wBetaPokerSGBPals:: dw ; c702
|
||||
ds 1
|
||||
wBetaPokerSGBAttr:: db ; c705
|
||||
wBetaPokerSGBCol:: db ; c706
|
||||
wBetaPokerSGBRow:: db ; c707
|
||||
ds 1
|
||||
ENDU ; c708
|
||||
|
||||
ds 1
|
||||
|
||||
wBattleWeather:: ; c70a
|
||||
; 00 normal
|
||||
|
Loading…
Reference in New Issue
Block a user