You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Create some battle tower SRAM labels
This commit is contained in:
@@ -1133,28 +1133,28 @@ UnknownText_0x1c5962::
|
|||||||
line "you're ready."
|
line "you're ready."
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x1c5983::
|
_NeedAtLeastThreeMonText::
|
||||||
text "You need at least"
|
text "You need at least"
|
||||||
line "three #MON."
|
line "three #MON."
|
||||||
|
|
||||||
para ""
|
para ""
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x1c59a3::
|
_EggDoesNotQualifyText::
|
||||||
text "Sorry, an EGG"
|
text "Sorry, an EGG"
|
||||||
line "doesn't qualify."
|
line "doesn't qualify."
|
||||||
|
|
||||||
para ""
|
para ""
|
||||||
done
|
done
|
||||||
|
|
||||||
Text_OnlyThreeMonMayBeEntered::
|
_OnlyThreeMonMayBeEnteredText::
|
||||||
text "Only three #MON"
|
text "Only three #MON"
|
||||||
line "may be entered."
|
line "may be entered."
|
||||||
|
|
||||||
para ""
|
para ""
|
||||||
done
|
done
|
||||||
|
|
||||||
Text_TheMonMustAllBeDifferentKinds::
|
_TheMonMustAllBeDifferentKindsText::
|
||||||
text "The @"
|
text "The @"
|
||||||
text_ram wStringBuffer2
|
text_ram wStringBuffer2
|
||||||
text " #MON"
|
text " #MON"
|
||||||
@@ -1164,7 +1164,7 @@ Text_TheMonMustAllBeDifferentKinds::
|
|||||||
para ""
|
para ""
|
||||||
done
|
done
|
||||||
|
|
||||||
Text_TheMonMustNotHoldTheSameItems::
|
_TheMonMustNotHoldTheSameItemsText::
|
||||||
text "The @"
|
text "The @"
|
||||||
text_ram wStringBuffer2
|
text_ram wStringBuffer2
|
||||||
text " #MON"
|
text " #MON"
|
||||||
@@ -1174,7 +1174,7 @@ Text_TheMonMustNotHoldTheSameItems::
|
|||||||
para ""
|
para ""
|
||||||
done
|
done
|
||||||
|
|
||||||
Text_YouCantTakeAnEgg::
|
_YouCantTakeAnEggText::
|
||||||
text "You can't take an"
|
text "You can't take an"
|
||||||
line "EGG!"
|
line "EGG!"
|
||||||
|
|
||||||
|
@@ -152,7 +152,7 @@ BattleAnimRestoreHuds:
|
|||||||
|
|
||||||
ldh a, [rSVBK]
|
ldh a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(wCurBattleMon) ; alternatively: BANK(wTempMon), BANK(wPartyMon1), several others
|
ld a, BANK(wCurBattleMon) ; aka BANK(wTempMon) and BANK(wPartyMon1) and several others
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
|
|
||||||
ld hl, UpdateBattleHuds
|
ld hl, UpdateBattleHuds
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -17,8 +17,8 @@ CheckForMobileBattleRules:
|
|||||||
|
|
||||||
.TextPointers:
|
.TextPointers:
|
||||||
dw .ExcuseMeText
|
dw .ExcuseMeText
|
||||||
dw JumpText_NeedAtLeastThreeMon
|
dw NeedAtLeastThreeMonText
|
||||||
dw JumpText_EggDoesNotQualify
|
dw EggDoesNotQualifyText
|
||||||
|
|
||||||
.ExcuseMeText:
|
.ExcuseMeText:
|
||||||
; Excuse me!
|
; Excuse me!
|
||||||
@@ -50,10 +50,10 @@ _CheckForBattleTowerRules:
|
|||||||
|
|
||||||
.TextPointers:
|
.TextPointers:
|
||||||
dw JumpText_ExcuseMeYoureNotReady
|
dw JumpText_ExcuseMeYoureNotReady
|
||||||
dw JumpText_OnlyThreeMonMayBeEntered
|
dw OnlyThreeMonMayBeEnteredText
|
||||||
dw JumpText_TheMonMustAllBeDifferentKinds
|
dw TheMonMustAllBeDifferentKindsText
|
||||||
dw JumpText_TheMonMustNotHoldTheSameItems
|
dw TheMonMustNotHoldTheSameItemsText
|
||||||
dw JumpText_YouCantTakeAnEgg
|
dw YouCantTakeAnEggText
|
||||||
|
|
||||||
JumpText_ExcuseMeYoureNotReady:
|
JumpText_ExcuseMeYoureNotReady:
|
||||||
; Excuse me. You're not ready.
|
; Excuse me. You're not ready.
|
||||||
@@ -70,34 +70,34 @@ BattleTower_PleaseReturnWhenReady:
|
|||||||
text_far UnknownText_0x1c5962
|
text_far UnknownText_0x1c5962
|
||||||
text_end
|
text_end
|
||||||
|
|
||||||
JumpText_NeedAtLeastThreeMon:
|
NeedAtLeastThreeMonText:
|
||||||
; You need at least three #MON.
|
; You need at least three #MON.
|
||||||
text_far UnknownText_0x1c5983
|
text_far _NeedAtLeastThreeMonText
|
||||||
text_end
|
text_end
|
||||||
|
|
||||||
JumpText_EggDoesNotQualify:
|
EggDoesNotQualifyText:
|
||||||
; Sorry, an EGG doesn't qualify.
|
; Sorry, an EGG doesn't qualify.
|
||||||
text_far UnknownText_0x1c59a3
|
text_far _EggDoesNotQualifyText
|
||||||
text_end
|
text_end
|
||||||
|
|
||||||
JumpText_OnlyThreeMonMayBeEntered:
|
OnlyThreeMonMayBeEnteredText:
|
||||||
; Only three #MON may be entered.
|
; Only three #MON may be entered.
|
||||||
text_far Text_OnlyThreeMonMayBeEntered
|
text_far _OnlyThreeMonMayBeEnteredText
|
||||||
text_end
|
text_end
|
||||||
|
|
||||||
JumpText_TheMonMustAllBeDifferentKinds:
|
TheMonMustAllBeDifferentKindsText:
|
||||||
; The @ #MON must all be different kinds.
|
; The @ #MON must all be different kinds.
|
||||||
text_far Text_TheMonMustAllBeDifferentKinds
|
text_far _TheMonMustAllBeDifferentKindsText
|
||||||
text_end
|
text_end
|
||||||
|
|
||||||
JumpText_TheMonMustNotHoldTheSameItems:
|
TheMonMustNotHoldTheSameItemsText:
|
||||||
; The @ #MON must not hold the same items.
|
; The @ #MON must not hold the same items.
|
||||||
text_far Text_TheMonMustNotHoldTheSameItems
|
text_far _TheMonMustNotHoldTheSameItemsText
|
||||||
text_end
|
text_end
|
||||||
|
|
||||||
JumpText_YouCantTakeAnEgg:
|
YouCantTakeAnEggText:
|
||||||
; You can't take an EGG!
|
; You can't take an EGG!
|
||||||
text_far Text_YouCantTakeAnEgg
|
text_far _YouCantTakeAnEggText
|
||||||
text_end
|
text_end
|
||||||
|
|
||||||
BattleTower_ExecuteJumptable:
|
BattleTower_ExecuteJumptable:
|
||||||
@@ -161,7 +161,7 @@ BattleTower_ExecuteJumptable:
|
|||||||
call z, .PrintFirstText
|
call z, .PrintFirstText
|
||||||
pop bc
|
pop bc
|
||||||
call .PrintNthText
|
call .PrintNthText
|
||||||
ld b, $1
|
ld b, 1
|
||||||
pop de
|
pop de
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ BattleTower_ExecuteJumptable:
|
|||||||
call .GetTextPointers
|
call .GetTextPointers
|
||||||
inc hl
|
inc hl
|
||||||
inc hl
|
inc hl
|
||||||
ld b, $0
|
ld b, 0
|
||||||
add hl, bc
|
add hl, bc
|
||||||
add hl, bc
|
add hl, bc
|
||||||
call .LoadTextPointer
|
call .LoadTextPointer
|
||||||
@@ -194,7 +194,7 @@ BattleTower_CheckPartyLengthIs3:
|
|||||||
BattleTower_CheckPartyHasThreeMonsThatAreNotEggs:
|
BattleTower_CheckPartyHasThreeMonsThatAreNotEggs:
|
||||||
ld hl, wPartyCount
|
ld hl, wPartyCount
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld b, $0
|
ld b, 0
|
||||||
ld c, a
|
ld c, a
|
||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
@@ -361,7 +361,9 @@ SRAM $02
|
|||||||
"Boxes 1-7"
|
"Boxes 1-7"
|
||||||
SRAM $03
|
SRAM $03
|
||||||
"Boxes 8-14"
|
"Boxes 8-14"
|
||||||
|
SRAM $04
|
||||||
|
"SRAM Mobile 1"
|
||||||
SRAM $05
|
SRAM $05
|
||||||
"SRAM Mobile"
|
"SRAM Mobile 2"
|
||||||
HRAM
|
HRAM
|
||||||
"HRAM"
|
"HRAM"
|
||||||
|
70
sram.asm
70
sram.asm
@@ -239,8 +239,13 @@ sBox12:: box sBox12
|
|||||||
sBox13:: box sBox13
|
sBox13:: box sBox13
|
||||||
sBox14:: box sBox14
|
sBox14:: box sBox14
|
||||||
|
|
||||||
|
SECTION "SRAM Mobile 1", SRAM
|
||||||
|
|
||||||
SECTION "SRAM Mobile", SRAM, BANK [5]
|
ds $13
|
||||||
|
|
||||||
|
s4_a013:: ds 36 ; a013
|
||||||
|
|
||||||
|
SECTION "SRAM Mobile 2", SRAM
|
||||||
|
|
||||||
ds 1 ; former location for sMobileEventIndex, moved to 1:BE3C in English
|
ds 1 ; former location for sMobileEventIndex, moved to 1:BE3C in English
|
||||||
|
|
||||||
@@ -292,9 +297,64 @@ sTrainerRankingsEnd:: ; a083
|
|||||||
|
|
||||||
ds 1 ; Former location for sMobileEventIndexBackup, moved to 1:BE44 in English
|
ds 1 ; Former location for sMobileEventIndexBackup, moved to 1:BE44 in English
|
||||||
|
|
||||||
sTrainerRankingsBackup:: ds sTrainerRankingsEnd - sTrainerRankings
|
sTrainerRankingsBackup:: ds sTrainerRankingsEnd - sTrainerRankings ; a084
|
||||||
|
|
||||||
ds $945
|
ds $6fa
|
||||||
; aa4b
|
|
||||||
|
|
||||||
sMobileLoginPassword:: ds MOBILE_LOGIN_PASSWORD_LENGTH
|
s5_a800:: db ; a800
|
||||||
|
|
||||||
|
ds $24
|
||||||
|
|
||||||
|
s5_a825:: db ; a825
|
||||||
|
s5_a826:: db ; a826
|
||||||
|
|
||||||
|
ds $6d
|
||||||
|
|
||||||
|
s5_a894:: ds NAME_LENGTH_JAPANESE ; a894
|
||||||
|
|
||||||
|
ds $2
|
||||||
|
|
||||||
|
s5_a89c:: ds 22 ; a89c
|
||||||
|
s5_a8b2:: ds 150 ; a8b2
|
||||||
|
|
||||||
|
s5_a948:: ds 246 ; a948
|
||||||
|
|
||||||
|
ds $3
|
||||||
|
|
||||||
|
s5_aa41:: ds 4 ; aa41
|
||||||
|
|
||||||
|
ds $2
|
||||||
|
|
||||||
|
s5_aa47:: db ; aa47
|
||||||
|
s5_aa48:: db ; aa48
|
||||||
|
|
||||||
|
ds $2
|
||||||
|
|
||||||
|
sMobileLoginPassword:: ds MOBILE_LOGIN_PASSWORD_LENGTH ; aa4b
|
||||||
|
|
||||||
|
ds $1
|
||||||
|
|
||||||
|
s5_aa5d:: ds MOBILE_LOGIN_PASSWORD_LENGTH ; aa5d
|
||||||
|
|
||||||
|
ds $1d
|
||||||
|
|
||||||
|
s5_aa8b:: db ; aa8b
|
||||||
|
s5_aa8c:: db ; aa8c
|
||||||
|
s5_aa8d:: db ; aa8d
|
||||||
|
s5_aa8e:: ds 7 * $cc ; aa8e
|
||||||
|
|
||||||
|
ds $1
|
||||||
|
|
||||||
|
s5_b023:: ds 105 ; b023
|
||||||
|
s5_b08c:: ds 4 ; b08c
|
||||||
|
|
||||||
|
ds $269
|
||||||
|
|
||||||
|
s5_b2f9:: db ; b2f9
|
||||||
|
s5_b2fa:: db ; b2fa
|
||||||
|
s5_b2fb:: db ; b2fb
|
||||||
|
|
||||||
|
ds $b49
|
||||||
|
|
||||||
|
s5_be45:: db ; be45
|
||||||
|
s5_be46:: db ; be46
|
||||||
|
Reference in New Issue
Block a user