mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
named party menu/naming screen wram variables
This commit is contained in:
parent
f66a74b9fc
commit
0066e09828
14 changed files with 105 additions and 75 deletions
|
|
@ -336,14 +336,14 @@ LoadAnimationTileset: ; 781d2 (1e:41d2)
|
|||
ld d,0
|
||||
add hl,de
|
||||
ld a,[hli]
|
||||
ld [wd07d],a ; number of tiles
|
||||
ld [wTempTilesetNumTiles],a ; number of tiles
|
||||
ld a,[hli]
|
||||
ld e,a
|
||||
ld a,[hl]
|
||||
ld d,a ; de = address of tileset
|
||||
ld hl,vSprites + $310
|
||||
ld b, BANK(AnimationTileset1) ; ROM bank
|
||||
ld a,[wd07d]
|
||||
ld a,[wTempTilesetNumTiles]
|
||||
ld c,a ; number of tiles
|
||||
jp CopyVideoData ; load tileset
|
||||
|
||||
|
|
|
|||
|
|
@ -1162,8 +1162,8 @@ UseNextMonText: ; 3c7d3 (f:47d3)
|
|||
; choose next player mon to send out
|
||||
; stores whether enemy mon has no HP left in Z flag
|
||||
ChooseNextMon: ; 3c7d8 (f:47d8)
|
||||
ld a, $2
|
||||
ld [wd07d], a
|
||||
ld a, BATTLE_PARTY_MENU
|
||||
ld [wPartyMenuTypeOrMessageID], a
|
||||
call DisplayPartyMenu
|
||||
.checkIfMonChosen
|
||||
jr nc, .monChosen
|
||||
|
|
@ -1462,8 +1462,8 @@ EnemySendOutFirstMon: ; 3c92a (f:492a)
|
|||
ld a,[wCurrentMenuItem]
|
||||
and a
|
||||
jr nz,.next4
|
||||
ld a,2
|
||||
ld [wd07d],a
|
||||
ld a,BATTLE_PARTY_MENU
|
||||
ld [wPartyMenuTypeOrMessageID],a
|
||||
call DisplayPartyMenu
|
||||
.next9
|
||||
ld a,1
|
||||
|
|
@ -2384,8 +2384,8 @@ PartyMenuOrRockOrRun:
|
|||
jp UseBagItem
|
||||
.partyMenuWasSelected
|
||||
call LoadScreenTilesFromBuffer1
|
||||
xor a
|
||||
ld [wd07d], a
|
||||
xor a ; NORMAL_PARTY_MENU
|
||||
ld [wPartyMenuTypeOrMessageID], a
|
||||
ld [wMenuItemToSwap], a
|
||||
call DisplayPartyMenu
|
||||
.checkIfPartyMonWasSelected
|
||||
|
|
@ -2403,8 +2403,8 @@ PartyMenuOrRockOrRun:
|
|||
ld bc, $81
|
||||
ld a, $7f
|
||||
call FillMemory
|
||||
xor a
|
||||
ld [wd07d], a
|
||||
xor a ; NORMAL_PARTY_MENU
|
||||
ld [wPartyMenuTypeOrMessageID], a
|
||||
call GoBackToPartyMenu
|
||||
jr .checkIfPartyMonWasSelected
|
||||
.partyMonWasSelected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue