mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Clean up some data, using macros for multiline list entries
This commit is contained in:
parent
aa97e196dd
commit
f37cf959c9
298 changed files with 5274 additions and 5646 deletions
|
|
@ -3954,16 +3954,16 @@ CheckForDisobedience:
|
|||
.monIsTraded
|
||||
; what level might disobey?
|
||||
ld hl, wObtainedBadges
|
||||
bit 7, [hl]
|
||||
bit BIT_EARTHBADGE, [hl]
|
||||
ld a, 101
|
||||
jr nz, .next
|
||||
bit 5, [hl]
|
||||
bit BIT_MARSHBADGE, [hl]
|
||||
ld a, 70
|
||||
jr nz, .next
|
||||
bit 3, [hl]
|
||||
bit BIT_RAINBOWBADGE, [hl]
|
||||
ld a, 50
|
||||
jr nz, .next
|
||||
bit 1, [hl]
|
||||
bit BIT_CASCADEBADGE, [hl]
|
||||
ld a, 30
|
||||
jr nz, .next
|
||||
ld a, 10
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ TestBattle:
|
|||
|
||||
; Don't mess around
|
||||
; with obedience.
|
||||
ld a, %10000000 ; EARTHBADGE
|
||||
ld a, 1 << BIT_EARTHBADGE
|
||||
ld [wObtainedBadges], a
|
||||
|
||||
ld hl, wFlags_D733
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ FindHiddenItemOrCoinsIndex:
|
|||
.loop
|
||||
inc c
|
||||
ld a, [hli]
|
||||
cp $ff ; end of the list?
|
||||
cp -1 ; end of the list?
|
||||
ret z ; if so, we're done here
|
||||
cp b
|
||||
jr nz, .next1
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ SetPal_TrainerCard:
|
|||
ld de, BadgeBlkDataLengths
|
||||
ld hl, wTrainerCardBlkPacket + 2
|
||||
ld a, [wObtainedBadges]
|
||||
ld c, 8
|
||||
ld c, NUM_BADGES
|
||||
.badgeLoop
|
||||
srl a
|
||||
push af
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@ DrawBadges:
|
|||
; Tile ids for face/badge graphics.
|
||||
ld de, wBadgeOrFaceTiles
|
||||
ld hl, .FaceBadgeTiles
|
||||
ld bc, 8
|
||||
ld bc, NUM_BADGES
|
||||
call CopyData
|
||||
|
||||
; Booleans for each badge.
|
||||
ld hl, wTempObtainedBadgesBooleans
|
||||
ld bc, 8
|
||||
ld bc, NUM_BADGES
|
||||
xor a
|
||||
call FillMemory
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ DrawBadges:
|
|||
ld hl, wBadgeOrFaceTiles
|
||||
ld a, [wObtainedBadges]
|
||||
ld b, a
|
||||
ld c, 8
|
||||
ld c, NUM_BADGES
|
||||
.CheckBadge
|
||||
srl b
|
||||
jr nc, .NextBadge
|
||||
|
|
@ -92,7 +92,7 @@ DrawBadges:
|
|||
push bc
|
||||
ld hl, wBadgeOrFaceTiles + 1
|
||||
ld de, wBadgeOrFaceTiles
|
||||
ld bc, 8
|
||||
ld bc, NUM_BADGES
|
||||
call CopyData
|
||||
pop bc
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +1,3 @@
|
|||
; [wPartyMenuTypeOrMessageID] = menu type / message ID
|
||||
; if less than $F0, it is a menu type
|
||||
; menu types:
|
||||
; 00: normal pokemon menu (e.g. Start menu)
|
||||
; 01: use healing item on pokemon menu
|
||||
; 02: in-battle switch pokemon menu
|
||||
; 03: learn TM/HM menu
|
||||
; 04: swap pokemon positions menu
|
||||
; 05: use evolution stone on pokemon menu
|
||||
; otherwise, it is a message ID
|
||||
; f0: poison healed
|
||||
; f1: burn healed
|
||||
; f2: freeze healed
|
||||
; f3: sleep healed
|
||||
; f4: paralysis healed
|
||||
; f5: HP healed
|
||||
; f6: health returned
|
||||
; f7: revitalized
|
||||
; f8: leveled up
|
||||
DrawPartyMenu_::
|
||||
xor a
|
||||
ldh [hAutoBGTransferEnabled], a
|
||||
|
|
@ -197,7 +178,7 @@ RedrawPartyMenu_::
|
|||
push hl
|
||||
set 6, [hl] ; turn off letter printing delay
|
||||
ld a, [wPartyMenuTypeOrMessageID] ; message ID
|
||||
cp $F0
|
||||
cp FIRST_PARTY_MENU_TEXT_ID
|
||||
jr nc, .printItemUseMessage
|
||||
add a
|
||||
ld hl, PartyMenuMessagePointers
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ StartMenu_Pokemon::
|
|||
dw .teleport
|
||||
dw .softboiled
|
||||
.fly
|
||||
bit 2, a ; does the player have the Thunder Badge?
|
||||
bit BIT_THUNDERBADGE, a
|
||||
jp z, .newBadgeRequired
|
||||
call CheckIfInOutsideMap
|
||||
jr z, .canFly
|
||||
|
|
@ -150,7 +150,7 @@ StartMenu_Pokemon::
|
|||
set 1, [hl]
|
||||
jp StartMenu_Pokemon
|
||||
.cut
|
||||
bit 1, a ; does the player have the Cascade Badge?
|
||||
bit BIT_CASCADEBADGE, a
|
||||
jp z, .newBadgeRequired
|
||||
predef UsedCut
|
||||
ld a, [wActionResultOrTookBattleTurn]
|
||||
|
|
@ -158,7 +158,7 @@ StartMenu_Pokemon::
|
|||
jp z, .loop
|
||||
jp CloseTextDisplay
|
||||
.surf
|
||||
bit 4, a ; does the player have the Soul Badge?
|
||||
bit BIT_SOULBADGE, a
|
||||
jp z, .newBadgeRequired
|
||||
farcall IsSurfingAllowed
|
||||
ld hl, wd728
|
||||
|
|
@ -175,13 +175,13 @@ StartMenu_Pokemon::
|
|||
call GBPalWhiteOutWithDelay3
|
||||
jp .goBackToMap
|
||||
.strength
|
||||
bit 3, a ; does the player have the Rainbow Badge?
|
||||
bit BIT_RAINBOWBADGE, a
|
||||
jp z, .newBadgeRequired
|
||||
predef PrintStrengthTxt
|
||||
call GBPalWhiteOutWithDelay3
|
||||
jp .goBackToMap
|
||||
.flash
|
||||
bit 0, a ; does the player have the Boulder Badge?
|
||||
bit BIT_BOULDERBADGE, a
|
||||
jp z, .newBadgeRequired
|
||||
xor a
|
||||
ld [wMapPalOffset], a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue