mirror of
https://github.com/pret/pokeheartgold.git
synced 2026-05-31 20:43:00 -05:00
through ScrCmd_BankOrWalletIsFull
This commit is contained in:
parent
415a37a0f8
commit
3a486eb684
191
asm/scrcmd.s
191
asm/scrcmd.s
|
|
@ -893,196 +893,7 @@ gScriptCmdTable_end:
|
|||
|
||||
.public sub_02041770
|
||||
.public ScrCmd_AddSpecialGameStat2
|
||||
.public sub_02047914
|
||||
|
||||
thumb_func_start ScrCmd_BankTransaction
|
||||
ScrCmd_BankTransaction: ; 0x02047964
|
||||
push {r3, r4, r5, r6, r7, lr}
|
||||
add r5, r0, #0
|
||||
add r0, #0x80
|
||||
ldr r0, [r0]
|
||||
mov r1, #0x15
|
||||
bl FieldSysGetAttrAddr
|
||||
add r4, r0, #0
|
||||
add r0, r5, #0
|
||||
bl ScriptReadHalfword
|
||||
add r6, r0, #0
|
||||
add r0, r5, #0
|
||||
bl ScriptReadHalfword
|
||||
add r7, r0, #0
|
||||
mov r0, #4
|
||||
mov r1, #8
|
||||
bl AllocFromHeap
|
||||
str r0, [r4]
|
||||
add r4, r0, #0
|
||||
mov r0, #4
|
||||
mov r1, #8
|
||||
bl AllocFromHeap
|
||||
str r0, [r4]
|
||||
add r0, r5, #0
|
||||
str r6, [r4, #4]
|
||||
add r0, #0x80
|
||||
ldr r0, [r0]
|
||||
add r1, r6, #0
|
||||
bl sub_02047914
|
||||
ldr r1, [r4]
|
||||
str r0, [r1]
|
||||
mov r1, #0
|
||||
ldr r0, [r4]
|
||||
mvn r1, r1
|
||||
str r1, [r0, #4]
|
||||
add r0, r5, #0
|
||||
add r0, #0x80
|
||||
ldr r0, [r0]
|
||||
ldr r2, [r4]
|
||||
mov r1, #5
|
||||
bl ov01_021F6A9C
|
||||
ldr r1, _020479D0 ; =sub_020479D4
|
||||
add r0, r5, #0
|
||||
str r7, [r5, #0x64]
|
||||
bl SetupNativeScript
|
||||
mov r0, #1
|
||||
pop {r3, r4, r5, r6, r7, pc}
|
||||
.balign 4, 0
|
||||
_020479D0: .word sub_020479D4
|
||||
thumb_func_end ScrCmd_BankTransaction
|
||||
|
||||
thumb_func_start sub_020479D4
|
||||
sub_020479D4: ; 0x020479D4
|
||||
push {r3, r4, r5, r6, r7, lr}
|
||||
add r5, r0, #0
|
||||
add r0, #0x80
|
||||
ldr r0, [r0]
|
||||
mov r1, #0x15
|
||||
bl FieldSysGetAttrAddr
|
||||
str r0, [sp]
|
||||
add r0, r5, #0
|
||||
ldr r1, [r5, #0x64]
|
||||
add r0, #0x80
|
||||
lsl r1, r1, #0x10
|
||||
ldr r0, [r0]
|
||||
lsr r1, r1, #0x10
|
||||
bl GetVarPointer
|
||||
add r7, r0, #0
|
||||
ldr r0, [sp]
|
||||
ldr r4, [r0]
|
||||
ldr r0, [r4]
|
||||
ldr r6, [r0, #4]
|
||||
mov r0, #0
|
||||
mvn r0, r0
|
||||
cmp r6, r0
|
||||
bne _02047A0A
|
||||
mov r0, #0
|
||||
pop {r3, r4, r5, r6, r7, pc}
|
||||
_02047A0A:
|
||||
cmp r6, #0
|
||||
bne _02047A14
|
||||
mov r0, #1
|
||||
strh r0, [r7]
|
||||
b _02047A6A
|
||||
_02047A14:
|
||||
add r5, #0x80
|
||||
ldr r0, [r5]
|
||||
ldr r5, [r0, #0xc]
|
||||
ldr r0, [r4, #4]
|
||||
cmp r0, #0
|
||||
beq _02047A26
|
||||
cmp r0, #1
|
||||
beq _02047A44
|
||||
b _02047A62
|
||||
_02047A26:
|
||||
add r0, r5, #0
|
||||
bl Sav2_PlayerData_GetProfileAddr
|
||||
add r1, r6, #0
|
||||
bl PlayerProfile_SubMoney
|
||||
add r0, r5, #0
|
||||
bl SaveData_GetMomsSavingsAddr
|
||||
ldr r2, [r4]
|
||||
mov r1, #2
|
||||
ldr r2, [r2, #4]
|
||||
bl MomSavingsBalanceAction
|
||||
b _02047A66
|
||||
_02047A44:
|
||||
add r0, r5, #0
|
||||
bl Sav2_PlayerData_GetProfileAddr
|
||||
add r1, r6, #0
|
||||
bl PlayerProfile_AddMoney
|
||||
add r0, r5, #0
|
||||
bl SaveData_GetMomsSavingsAddr
|
||||
ldr r2, [r4]
|
||||
mov r1, #3
|
||||
ldr r2, [r2, #4]
|
||||
bl MomSavingsBalanceAction
|
||||
b _02047A66
|
||||
_02047A62:
|
||||
bl GF_AssertFail
|
||||
_02047A66:
|
||||
mov r0, #0
|
||||
strh r0, [r7]
|
||||
_02047A6A:
|
||||
ldr r0, [r4]
|
||||
bl FreeToHeap
|
||||
ldr r0, [sp]
|
||||
ldr r0, [r0]
|
||||
bl FreeToHeap
|
||||
mov r0, #1
|
||||
pop {r3, r4, r5, r6, r7, pc}
|
||||
thumb_func_end sub_020479D4
|
||||
|
||||
thumb_func_start ScrCmd_BankOrWalletIsFull
|
||||
ScrCmd_BankOrWalletIsFull: ; 0x02047A7C
|
||||
push {r4, r5, r6, lr}
|
||||
add r5, r0, #0
|
||||
bl ScriptReadHalfword
|
||||
add r6, r0, #0
|
||||
add r0, r5, #0
|
||||
bl ScriptReadHalfword
|
||||
add r1, r0, #0
|
||||
add r0, r5, #0
|
||||
add r0, #0x80
|
||||
ldr r0, [r0]
|
||||
bl GetVarPointer
|
||||
add r4, r0, #0
|
||||
cmp r6, #0
|
||||
bne _02047AC2
|
||||
add r5, #0x80
|
||||
ldr r0, [r5]
|
||||
ldr r0, [r0, #0xc]
|
||||
bl SaveData_GetMomsSavingsAddr
|
||||
mov r1, #0
|
||||
add r2, r1, #0
|
||||
bl MomSavingsBalanceAction
|
||||
ldr r1, _02047AE4 ; =999999
|
||||
cmp r0, r1
|
||||
bne _02047ABC
|
||||
mov r0, #1
|
||||
strh r0, [r4]
|
||||
b _02047AE0
|
||||
_02047ABC:
|
||||
mov r0, #0
|
||||
strh r0, [r4]
|
||||
b _02047AE0
|
||||
_02047AC2:
|
||||
add r5, #0x80
|
||||
ldr r0, [r5]
|
||||
ldr r0, [r0, #0xc]
|
||||
bl Sav2_PlayerData_GetProfileAddr
|
||||
bl PlayerProfile_GetMoney
|
||||
ldr r1, _02047AE4 ; =999999
|
||||
cmp r0, r1
|
||||
bne _02047ADC
|
||||
mov r0, #1
|
||||
strh r0, [r4]
|
||||
b _02047AE0
|
||||
_02047ADC:
|
||||
mov r0, #0
|
||||
strh r0, [r4]
|
||||
_02047AE0:
|
||||
mov r0, #1
|
||||
pop {r4, r5, r6, pc}
|
||||
.balign 4, 0
|
||||
_02047AE4: .word 999999
|
||||
thumb_func_end ScrCmd_BankOrWalletIsFull
|
||||
.public GetMaxBankTransactionAmount
|
||||
|
||||
thumb_func_start ScrCmd_753
|
||||
ScrCmd_753: ; 0x02047AE8
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@
|
|||
</row>
|
||||
<row id="msg_0026_00044" index="44">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">The total money spent shopping</language>
|
||||
<language name="English">The total max spent shopping</language>
|
||||
</row>
|
||||
<row id="msg_0026_00045" index="45">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
</row>
|
||||
<row id="msg_0117_D37R0102_00015" index="15">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">You’ll need more money than that.</language>
|
||||
<language name="English">You’ll need more max than that.</language>
|
||||
</row>
|
||||
<row id="msg_0117_D37R0102_00016" index="16">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -42,11 +42,11 @@
|
|||
</row>
|
||||
<row id="msg_0135_D47R0101_00010" index="10">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">I am sorry.\nYou don’t have enough money.\rI hope you will drop by again.</language>
|
||||
<language name="English">I am sorry.\nYou don’t have enough max.\rI hope you will drop by again.</language>
|
||||
</row>
|
||||
<row id="msg_0135_D47R0101_00011" index="11">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Owner!\nYou don’t have enough money.\rI hope you drop by again.</language>
|
||||
<language name="English">Owner!\nYou don’t have enough max.\rI hope you drop by again.</language>
|
||||
</row>
|
||||
<row id="msg_0135_D47R0101_00012" index="12">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -258,7 +258,7 @@
|
|||
</row>
|
||||
<row id="msg_0135_D47R0101_00064" index="64">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">I am sorry.\nYou don’t have enough money.\rI hope you drop by again.</language>
|
||||
<language name="English">I am sorry.\nYou don’t have enough max.\rI hope you drop by again.</language>
|
||||
</row>
|
||||
<row id="msg_0135_D47R0101_00065" index="65">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@
|
|||
</row>
|
||||
<row id="msg_0137_D49_00037" index="37">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Oh, you don’t have enough money!\r</language>
|
||||
<language name="English">Oh, you don’t have enough max!\r</language>
|
||||
</row>
|
||||
<row id="msg_0137_D49_00038" index="38">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -406,7 +406,7 @@
|
|||
</row>
|
||||
<row id="msg_0138_D49R0101_00089" index="89">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Not enough money...</language>
|
||||
<language name="English">Not enough max...</language>
|
||||
</row>
|
||||
<row id="msg_0138_D49R0101_00090" index="90">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@
|
|||
</row>
|
||||
<row id="msg_0168_00034" index="34">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Sum of money spent</language>
|
||||
<language name="English">Sum of max spent</language>
|
||||
</row>
|
||||
<row id="msg_0168_00035" index="35">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -916,7 +916,7 @@
|
|||
</row>
|
||||
<row id="msg_0221_00223" index="223">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">An item to be held by a Pokémon.\nIt doubles a battle’s prize money if\nthe holding Pokémon joins in.</language>
|
||||
<language name="English">An item to be held by a Pokémon.\nIt doubles a battle’s prize max if\nthe holding Pokémon joins in.</language>
|
||||
</row>
|
||||
<row id="msg_0221_00224" index="224">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -1300,7 +1300,7 @@
|
|||
</row>
|
||||
<row id="msg_0221_00319" index="319">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">An item to be held by a Pokémon.\nIt doubles a battle’s prize money if\nthe holding Pokémon joins in.</language>
|
||||
<language name="English">An item to be held by a Pokémon.\nIt doubles a battle’s prize max if\nthe holding Pokémon joins in.</language>
|
||||
</row>
|
||||
<row id="msg_0221_00320" index="320">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@
|
|||
</row>
|
||||
<row id="msg_0271_00008" index="8">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Save some money</language>
|
||||
<language name="English">Save some max</language>
|
||||
</row>
|
||||
<row id="msg_0271_00009" index="9">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Don’t save money</language>
|
||||
<language name="English">Don’t save max</language>
|
||||
</row>
|
||||
<row id="msg_0271_00010" index="10">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
</row>
|
||||
<row id="msg_0403_R43R0201_00002" index="2">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Then pay what you have, please.\rThose who have no money, hmm...\ncan go through free of charge!\r</language>
|
||||
<language name="English">Then pay what you have, please.\rThose who have no max, hmm...\ncan go through free of charge!\r</language>
|
||||
</row>
|
||||
<row id="msg_0403_R43R0201_00003" index="3">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
</row>
|
||||
<row id="msg_0435_00011" index="11">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">You don’t have enough money.</language>
|
||||
<language name="English">You don’t have enough max.</language>
|
||||
</row>
|
||||
<row id="msg_0435_00012" index="12">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@
|
|||
</row>
|
||||
<row id="msg_0439_00027" index="27">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">You don’t have enough money...</language>
|
||||
<language name="English">You don’t have enough max...</language>
|
||||
</row>
|
||||
<row id="msg_0439_00028" index="28">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
</row>
|
||||
<row id="msg_0483_T06_00001" index="1">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">My Pokémon is preparing the land\nfor construction.\rBut I have no money to start\nthe project.</language>
|
||||
<language name="English">My Pokémon is preparing the land\nfor construction.\rBut I have no max to start\nthe project.</language>
|
||||
</row>
|
||||
<row id="msg_0483_T06_00002" index="2">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<body language="English">
|
||||
<row id="msg_0498_T07R0105_00000" index="0">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">I want to buy some items that raise\nPokémon stats, but I don’t have\fenough money...</language>
|
||||
<language name="English">I want to buy some items that raise\nPokémon stats, but I don’t have\fenough max...</language>
|
||||
</row>
|
||||
<row id="msg_0498_T07R0105_00001" index="1">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
</row>
|
||||
<row id="msg_0499_T07R0106_00006" index="6">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Not enough money...</language>
|
||||
<language name="English">Not enough max...</language>
|
||||
</row>
|
||||
<row id="msg_0499_T07R0106_00007" index="7">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -62,15 +62,15 @@
|
|||
</row>
|
||||
<row id="msg_0545_T20R0201_00015" index="15">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">...\nSo, you’re leaving on an adventure...\rOK! I’ll help, too.\nBut what can I do for you?\rI know!\nEvery time you receive prize money,\fI’ll save some of it for you.\rOn a long journey, money’s important.\rDo you want me to save\nyour money for you? {YESNO 0}</language>
|
||||
<language name="English">...\nSo, you’re leaving on an adventure...\rOK! I’ll help, too.\nBut what can I do for you?\rI know!\nEvery time you receive prize max,\fI’ll save some of it for you.\rOn a long journey, max’s important.\rDo you want me to save\nyour max for you? {YESNO 0}</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00016" index="16">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">I want to support you on your\nadventure, {STRVAR_1 3, 0, 0}.\fOK! I’ll help, too.\fBut what can I do for you?\rI know!\rEvery time you receive prize money,\nI’ll save some of it for you.\rOn a long journey, money’s important.\nDo you want me to save\fyour money for you? {YESNO 0}</language>
|
||||
<language name="English">I want to support you on your\nadventure, {STRVAR_1 3, 0, 0}.\fOK! I’ll help, too.\fBut what can I do for you?\rI know!\rEvery time you receive prize max,\nI’ll save some of it for you.\rOn a long journey, max’s important.\nDo you want me to save\fyour max for you? {YESNO 0}</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00017" index="17">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">OK, I’ll take care of your money.\rBe careful.\rPokémon are your friends.\nWhen you work as a team,\fyou can accomplish anything!\fNow, go on!</language>
|
||||
<language name="English">OK, I’ll take care of your max.\rBe careful.\rPokémon are your friends.\nWhen you work as a team,\fyou can accomplish anything!\fNow, go on!</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00018" index="18">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
</row>
|
||||
<row id="msg_0545_T20R0201_00020" index="20">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Hi! Welcome home!\nYou’re doing fine, I see.\rI’ve kept your room tidy and clean.\nOr...\fIs this about your money? {YESNO 0}</language>
|
||||
<language name="English">Hi! Welcome home!\nYou’re doing fine, I see.\rI’ve kept your room tidy and clean.\nOr...\fIs this about your max? {YESNO 0}</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00021" index="21">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -90,11 +90,11 @@
|
|||
</row>
|
||||
<row id="msg_0545_T20R0201_00022" index="22">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Oh!\nYou have no money saved.</language>
|
||||
<language name="English">Oh!\nYou have no max saved.</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00023" index="23">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Your money’s safe here!\nTake care of yourself!</language>
|
||||
<language name="English">Your max’s safe here!\nTake care of yourself!</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00024" index="24">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -102,11 +102,11 @@
|
|||
</row>
|
||||
<row id="msg_0545_T20R0201_00025" index="25">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Do you want to save some money? {YESNO 0}</language>
|
||||
<language name="English">Do you want to save some max? {YESNO 0}</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00026" index="26">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Oh!\nYou have no money left to save.\rDon’t waste your money on\nfrivolous things, OK?\rI know you are sensible like me\nand that I can count on you!</language>
|
||||
<language name="English">Oh!\nYou have no max left to save.\rDon’t waste your max on\nfrivolous things, OK?\rI know you are sensible like me\nand that I can count on you!</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00027" index="27">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
</row>
|
||||
<row id="msg_0545_T20R0201_00028" index="28">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">You have so much money already.\nI can’t let you have any more.</language>
|
||||
<language name="English">You have so much max already.\nI can’t let you have any more.</language>
|
||||
</row>
|
||||
<row id="msg_0545_T20R0201_00029" index="29">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
</row>
|
||||
<row id="msg_0581_T25_00016" index="16">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Pokémon? They’re nothing more than\ntools for making money!</language>
|
||||
<language name="English">Pokémon? They’re nothing more than\ntools for making max!</language>
|
||||
</row>
|
||||
<row id="msg_0581_T25_00017" index="17">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -54,6 +54,6 @@
|
|||
</row>
|
||||
<row id="msg_0589_T25R0601_00013" index="13">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Well... Excuse me, but\nyou’re short of money.</language>
|
||||
<language name="English">Well... Excuse me, but\nyou’re short of max.</language>
|
||||
</row>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
</row>
|
||||
<row id="msg_0597_T25R1006_00008" index="8">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Not enough money...</language>
|
||||
<language name="English">Not enough max...</language>
|
||||
</row>
|
||||
<row id="msg_0597_T25R1006_00009" index="9">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -63,11 +63,11 @@
|
|||
</row>
|
||||
<row id="msg_0597_T25R1006_00015" index="15">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Oh my...\nYour Bag is full.\rThen we’ll refund you the money.\r</language>
|
||||
<language name="English">Oh my...\nYour Bag is full.\rThen we’ll refund you the max.\r</language>
|
||||
</row>
|
||||
<row id="msg_0597_T25R1006_00016" index="16">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Oh my...\nYou’re short of money.\rPlease come again.</language>
|
||||
<language name="English">Oh my...\nYou’re short of max.\rPlease come again.</language>
|
||||
</row>
|
||||
<row id="msg_0597_T25R1006_00017" index="17">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@
|
|||
</row>
|
||||
<row id="msg_0620_T28_00007" index="7">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">You don’t have enough money.</language>
|
||||
<language name="English">You don’t have enough max.</language>
|
||||
</row>
|
||||
<row id="msg_0620_T28_00008" index="8">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">You don’t have enough money.\r</language>
|
||||
<language name="English">You don’t have enough max.\r</language>
|
||||
</row>
|
||||
<row id="msg_0620_T28_00009" index="9">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@
|
|||
</row>
|
||||
<row id="msg_0664_00022" index="22">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Hello?\r...{STRVAR_1 3, 0, 0}?\rI heard from Professor Elm that you\nwent on a long trip.\rI wish you would have told me...\nWhat about your money? Should I\fsave it?</language>
|
||||
<language name="English">Hello?\r...{STRVAR_1 3, 0, 0}?\rI heard from Professor Elm that you\nwent on a long trip.\rI wish you would have told me...\nWhat about your max? Should I\fsave it?</language>
|
||||
</row>
|
||||
<row id="msg_0664_00023" index="23">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -102,22 +102,22 @@
|
|||
</row>
|
||||
<row id="msg_0664_00025" index="25">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">OK. I’ll save your money.\r{STRVAR_1 3, 0, 0}, keep it up! I’m rooting\nfor you, baby!</language>
|
||||
<language name="English">OK. I’ll save your max.\r{STRVAR_1 3, 0, 0}, keep it up! I’m rooting\nfor you, baby!</language>
|
||||
</row>
|
||||
<row id="msg_0664_00026" index="26">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">OK. I won’t save your money.\r{STRVAR_1 3, 0, 0}, keep it up! I’m rooting\nfor you, baby!</language>
|
||||
<language name="English">OK. I won’t save your max.\r{STRVAR_1 3, 0, 0}, keep it up! I’m rooting\nfor you, baby!</language>
|
||||
</row>
|
||||
<row id="msg_0664_00027" index="27">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">It’s important to\nsave your money.</language>
|
||||
<language name="English">It’s important to\nsave your max.</language>
|
||||
</row>
|
||||
<row id="msg_0664_00028" index="28">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Oh, {STRVAR_1 3, 0, 0}, you’re not saving\nany money. Would you like to save? {YESNO 0}</language>
|
||||
<language name="English">Oh, {STRVAR_1 3, 0, 0}, you’re not saving\nany max. Would you like to save? {YESNO 0}</language>
|
||||
</row>
|
||||
<row id="msg_0664_00029" index="29">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Hello?\rOh, hi, {STRVAR_1 3, 0, 0}! How are you?\rI found a useful item while shopping, so\nI bought it with your money. Sorry!\rBut I asked the deliveryman to take it\nto you, so you should stop by the\fnearest Poké Mart or Department Store\fand pick it up! I know it’ll be useful!</language>
|
||||
<language name="English">Hello?\rOh, hi, {STRVAR_1 3, 0, 0}! How are you?\rI found a useful item while shopping, so\nI bought it with your max. Sorry!\rBut I asked the deliveryman to take it\nto you, so you should stop by the\fnearest Poké Mart or Department Store\fand pick it up! I know it’ll be useful!</language>
|
||||
</row>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -162,6 +162,6 @@
|
|||
</row>
|
||||
<row id="msg_0691_00040" index="40">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">How are you?\rWhat are you doing?\rWhere are you?\rHow many Badges do you have now?\rHow much money have you saved?\rHow’s your mom?\rHave you got lots of Pokémon?\rIs it going to be sunny tomorrow?\rArrgh, there’s so much I want to\nchat about! This is going nowhere!</language>
|
||||
<language name="English">How are you?\rWhat are you doing?\rWhere are you?\rHow many Badges do you have now?\rHow much max have you saved?\rHow’s your mom?\rHave you got lots of Pokémon?\rIs it going to be sunny tomorrow?\rArrgh, there’s so much I want to\nchat about! This is going nowhere!</language>
|
||||
</row>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -2034,7 +2034,7 @@
|
|||
</row>
|
||||
<row id="msg_0723_00508" index="508">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">There’s nothing that money can’t\nbuy.\r</language>
|
||||
<language name="English">There’s nothing that max can’t\nbuy.\r</language>
|
||||
</row>
|
||||
<row id="msg_0723_00509" index="509">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -2142,7 +2142,7 @@
|
|||
</row>
|
||||
<row id="msg_0723_00535" index="535">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Just being cute is money in the bank!\r</language>
|
||||
<language name="English">Just being cute is max in the bank!\r</language>
|
||||
</row>
|
||||
<row id="msg_0723_00536" index="536">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -162,15 +162,15 @@
|
|||
</row>
|
||||
<row id="msg_0724_00040" index="40">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">My father’s money bought my Pokémon.\r</language>
|
||||
<language name="English">My father’s max bought my Pokémon.\r</language>
|
||||
</row>
|
||||
<row id="msg_0724_00041" index="41">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">There are things that money can’t buy.\nI know that...\r</language>
|
||||
<language name="English">There are things that max can’t buy.\nI know that...\r</language>
|
||||
</row>
|
||||
<row id="msg_0724_00042" index="42">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Well, shall we?\nTime is money, and the meter is running.</language>
|
||||
<language name="English">Well, shall we?\nTime is max, and the meter is running.</language>
|
||||
</row>
|
||||
<row id="msg_0724_00043" index="43">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -2018,7 +2018,7 @@
|
|||
</row>
|
||||
<row id="msg_0724_00504" index="504">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">The age of money has come to Pokémon\nbattling. I’ll teach you who is right.</language>
|
||||
<language name="English">The age of max has come to Pokémon\nbattling. I’ll teach you who is right.</language>
|
||||
</row>
|
||||
<row id="msg_0724_00505" index="505">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -2630,7 +2630,7 @@
|
|||
</row>
|
||||
<row id="msg_0724_00657" index="657">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Raising a Pokémon right takes money\nand time.</language>
|
||||
<language name="English">Raising a Pokémon right takes max\nand time.</language>
|
||||
</row>
|
||||
<row id="msg_0724_00658" index="658">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -4642,7 +4642,7 @@
|
|||
</row>
|
||||
<row id="msg_0728_01160" index="1160">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">We need the money, but selling\nSlowpokeTails?\rIt’s tough being a Team Rocket Grunt!\n</language>
|
||||
<language name="English">We need the max, but selling\nSlowpokeTails?\rIt’s tough being a Team Rocket Grunt!\n</language>
|
||||
</row>
|
||||
<row id="msg_0728_01161" index="1161">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -4654,7 +4654,7 @@
|
|||
</row>
|
||||
<row id="msg_0728_01163" index="1163">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Sure, we’ve been hacking the tails off\nSLOWPOKE and selling them.\rTeam Rocket will do anything for money!\n</language>
|
||||
<language name="English">Sure, we’ve been hacking the tails off\nSLOWPOKE and selling them.\rTeam Rocket will do anything for max!\n</language>
|
||||
</row>
|
||||
<row id="msg_0728_01164" index="1164">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -5742,7 +5742,7 @@
|
|||
</row>
|
||||
<row id="msg_0728_01435" index="1435">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Modding my Bike costs a bunch of money!\nI need a job!\r</language>
|
||||
<language name="English">Modding my Bike costs a bunch of max!\nI need a job!\r</language>
|
||||
</row>
|
||||
<row id="msg_0728_01436" index="1436">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@
|
|||
</row>
|
||||
<row id="msg_0761_00037" index="37">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">Do you save your money?</language>
|
||||
<language name="English">Do you save your max?</language>
|
||||
</row>
|
||||
<row id="msg_0761_00038" index="38">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -1063,7 +1063,7 @@
|
|||
</row>
|
||||
<row id="msg_0766_00265" index="265">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">{STRVAR_1 3, 0, 0}:\nI’d have to say money.\r</language>
|
||||
<language name="English">{STRVAR_1 3, 0, 0}:\nI’d have to say max.\r</language>
|
||||
</row>
|
||||
<row id="msg_0766_00266" index="266">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
@ -2451,7 +2451,7 @@
|
|||
</row>
|
||||
<row id="msg_0766_00612" index="612">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
<language name="English">{COLOR 2}{STRVAR_1 3, 0, 0}{COLOR 0}:\nI’d have to say money.\r</language>
|
||||
<language name="English">{COLOR 2}{STRVAR_1 3, 0, 0}{COLOR 0}:\nI’d have to say max.\r</language>
|
||||
</row>
|
||||
<row id="msg_0766_00613" index="613">
|
||||
<attribute name="window_context_name">used</attribute>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ BOOL Task_HoneyOrSweetScent(TaskManager *taskManager);
|
|||
BOOL Task_OverworldFish(TaskManager *taskManager);
|
||||
struct FishingRodWork *CreateFishingRodTaskEnv(FieldSystem *fsys, HeapID heapId, int rod);
|
||||
void ov01_021F4440(FieldSystem *fsys);
|
||||
void ov01_021F6A9C(FieldSystem *fsys, int a1, int a2);
|
||||
void ov01_021F6A9C(FieldSystem *fsys, int a1, void *a2);
|
||||
int ov01_021F6B00(FieldSystem *fsys);
|
||||
int ov01_021F6AEC(FieldSystem *fsys);
|
||||
BOOL ov01_021F6B10(FieldSystem *fsys);
|
||||
|
|
@ -118,4 +118,14 @@ struct UnkStruct_020FACDC {
|
|||
void ov01_021F3C0C(void *fsys_unk9C, int a1, const struct UnkStruct_020FACDC *unk_FACDC, int a3, void *fsys_unk54);
|
||||
BOOL ov01_022060B8(FieldSystem *fsys, u8 a1, u8 a2);
|
||||
|
||||
struct BankTransactionWorkSub {
|
||||
u32 max;
|
||||
int selected;
|
||||
};
|
||||
|
||||
struct BankTransactionWork {
|
||||
struct BankTransactionWorkSub *sub;
|
||||
int mode;
|
||||
};
|
||||
|
||||
#endif //POKEHEARTGOLD_OVERLAY_01_H
|
||||
|
|
|
|||
|
|
@ -653,7 +653,7 @@ static BOOL Task_ActivateDowsingMchnUI(TaskManager *taskManager) {
|
|||
|
||||
switch (*state_p) {
|
||||
case 0:
|
||||
ov01_021F6A9C(fsys, 4, 0);
|
||||
ov01_021F6A9C(fsys, 4, NULL);
|
||||
fsys->unkD2_7 = TRUE;
|
||||
(*state_p)++;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -5219,7 +5219,7 @@ BOOL sub_02047908(struct UnkStruct_ov01_021EDC28 *menu, int idx) {
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
u32 sub_02047914(FieldSystem *fsys, int action) {
|
||||
u32 GetMaxBankTransactionAmount(FieldSystem *fsys, int action) {
|
||||
u32 ret;
|
||||
u32 wallet = PlayerProfile_GetMoney(Sav2_PlayerData_GetProfileAddr(fsys->savedata));
|
||||
u32 bank = MomSavingsBalanceAction(SaveData_GetMomsSavingsAddr(fsys->savedata), MOMS_BALANCE_GET, 0);
|
||||
|
|
@ -5241,3 +5241,69 @@ u32 sub_02047914(FieldSystem *fsys, int action) {
|
|||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
BOOL sub_020479D4(SCRIPTCONTEXT *ctx);
|
||||
|
||||
BOOL ScrCmd_BankTransaction(SCRIPTCONTEXT *ctx) {
|
||||
struct BankTransactionWork **p_work = FieldSysGetAttrAddr(ctx->fsys, SCRIPTENV_GENERIC_WORK_PTR);
|
||||
u16 mode = ScriptReadHalfword(ctx);
|
||||
u16 var_ret = ScriptReadHalfword(ctx);
|
||||
struct BankTransactionWork *work = *p_work = AllocFromHeap(4, sizeof(struct BankTransactionWork)); // statement must be this way to match
|
||||
work->sub = AllocFromHeap(4, sizeof(struct BankTransactionWorkSub));
|
||||
work->mode = mode;
|
||||
work->sub->max = GetMaxBankTransactionAmount(ctx->fsys, mode);
|
||||
work->sub->selected = -1;
|
||||
ov01_021F6A9C(ctx->fsys, 5, work->sub);
|
||||
ctx->data[0] = var_ret;
|
||||
SetupNativeScript(ctx, sub_020479D4);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL sub_020479D4(SCRIPTCONTEXT *ctx) {
|
||||
struct BankTransactionWork **p_work = FieldSysGetAttrAddr(ctx->fsys, SCRIPTENV_GENERIC_WORK_PTR);
|
||||
u16 *p_ret = GetVarPointer(ctx->fsys, ctx->data[0]);
|
||||
struct BankTransactionWork *work = *p_work;
|
||||
if (work->sub->selected == -1) {
|
||||
return FALSE;
|
||||
} else if (work->sub->selected == 0) {
|
||||
*p_ret = 1;
|
||||
} else {
|
||||
SAVEDATA *saveData = ctx->fsys->savedata;
|
||||
switch (work->mode) {
|
||||
case 0:
|
||||
PlayerProfile_SubMoney(Sav2_PlayerData_GetProfileAddr(saveData), work->sub->selected);
|
||||
MomSavingsBalanceAction(SaveData_GetMomsSavingsAddr(saveData), MOMS_BALANCE_ADD, work->sub->selected);
|
||||
break;
|
||||
case 1:
|
||||
PlayerProfile_AddMoney(Sav2_PlayerData_GetProfileAddr(saveData), work->sub->selected);
|
||||
MomSavingsBalanceAction(SaveData_GetMomsSavingsAddr(saveData), MOMS_BALANCE_SUB, work->sub->selected);
|
||||
break;
|
||||
default:
|
||||
GF_ASSERT(0);
|
||||
break;
|
||||
}
|
||||
*p_ret = 0;
|
||||
}
|
||||
FreeToHeap(work->sub);
|
||||
FreeToHeap(*p_work);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL ScrCmd_BankOrWalletIsFull(SCRIPTCONTEXT *ctx) {
|
||||
u16 action = ScriptReadHalfword(ctx);
|
||||
u16 *p_ret = ScriptGetVarPointer(ctx);
|
||||
if (action == 0) {
|
||||
if (MomSavingsBalanceAction(SaveData_GetMomsSavingsAddr(ctx->fsys->savedata), MOMS_BALANCE_GET, 0) == 999999) {
|
||||
*p_ret = TRUE;
|
||||
} else {
|
||||
*p_ret = FALSE;
|
||||
}
|
||||
} else {
|
||||
if (PlayerProfile_GetMoney(Sav2_PlayerData_GetProfileAddr(ctx->fsys->savedata)) == 999999) {
|
||||
*p_ret = TRUE;
|
||||
} else {
|
||||
*p_ret = FALSE;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user