summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-03-21 18:14:36 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-03-21 18:14:36 -0400
commitaa3a3224c6077e7f7c9e05b402ecd5e023aac88f (patch)
tree616e92113e1819043944a1f13cf0d3e4758fd0e3
parent381a4b443b0453a5b2f6c59f857c523612e015af (diff)
Use numeric constants in text strings with "{d:interpolation}"
-rw-r--r--constants/misc_constants.asm7
-rw-r--r--constants/script_constants.asm8
-rw-r--r--engine/events/bug_contest/contest.asm2
-rw-r--r--maps/CeladonDeptStore6F.asm6
-rw-r--r--maps/CeladonGameCornerPrizeRoom.asm16
-rw-r--r--maps/GoldenrodDeptStore6F.asm6
-rw-r--r--maps/NationalPark.asm2
-rw-r--r--maps/Route35NationalParkGate.asm4
-rw-r--r--maps/Route36NationalParkGate.asm4
-rw-r--r--maps/Route39Farmhouse.asm2
-rw-r--r--maps/Route43Gate.asm2
-rw-r--r--maps/RuinsOfAlphResearchCenter.asm2
12 files changed, 31 insertions, 30 deletions
diff --git a/constants/misc_constants.asm b/constants/misc_constants.asm
index db60113a..b52ea69f 100644
--- a/constants/misc_constants.asm
+++ b/constants/misc_constants.asm
@@ -51,10 +51,3 @@ MAX_DAY_CARE_EXP EQU $500000
; hall of fame
HOF_MASTER_COUNT EQU 200
-
-; bug-catching contest
-BUG_CONTEST_MINUTES EQU 20
-BUG_CONTEST_SECONDS EQU 0
-BUG_CONTEST_PLAYER EQU 1
-NUM_BUG_CONTESTANTS EQU 10 ; not counting the player
-BUG_CONTESTANT_SIZE EQU 4
diff --git a/constants/script_constants.asm b/constants/script_constants.asm
index 34459a3c..777bde16 100644
--- a/constants/script_constants.asm
+++ b/constants/script_constants.asm
@@ -273,6 +273,14 @@ NUM_DECODESCS EQU const_value
const BUGCONTEST_BOXED_MON ; 1
const BUGCONTEST_NO_CATCH ; 2
+; Bug-Catching Contest values
+BUG_CONTEST_BALLS EQU 20
+BUG_CONTEST_MINUTES EQU 20
+BUG_CONTEST_SECONDS EQU 0
+BUG_CONTEST_PLAYER EQU 1
+NUM_BUG_CONTESTANTS EQU 10 ; not counting the player
+BUG_CONTESTANT_SIZE EQU 4
+
; HealMachineAnim setval arguments
; HealMachineAnim.Pointers indexes (see engine/events/heal_machine_anim.asm)
const_def
diff --git a/engine/events/bug_contest/contest.asm b/engine/events/bug_contest/contest.asm
index 90d35130..4c8da289 100644
--- a/engine/events/bug_contest/contest.asm
+++ b/engine/events/bug_contest/contest.asm
@@ -1,7 +1,7 @@
GiveParkBalls:
xor a
ld [wContestMon], a
- ld a, 20
+ ld a, BUG_CONTEST_BALLS
ld [wParkBallsRemaining], a
farcall StartBugContestTimer
ret
diff --git a/maps/CeladonDeptStore6F.asm b/maps/CeladonDeptStore6F.asm
index a0d4a0dc..596ce4d3 100644
--- a/maps/CeladonDeptStore6F.asm
+++ b/maps/CeladonDeptStore6F.asm
@@ -85,9 +85,9 @@ CeladonDeptStore6FVendingMachine:
.MenuData:
db STATICMENU_CURSOR ; flags
db 4 ; items
- db "FRESH WATER ¥200@"
- db "SODA POP ¥300@"
- db "LEMONADE ¥350@"
+ db "FRESH WATER ¥{d:CELADONDEPTSTORE6F_FRESH_WATER_PRICE}@"
+ db "SODA POP ¥{d:CELADONDEPTSTORE6F_SODA_POP_PRICE}@"
+ db "LEMONADE ¥{d:CELADONDEPTSTORE6F_LEMONADE_PRICE}@"
db "CANCEL@"
CeladonDeptStore6FDirectory:
diff --git a/maps/CeladonGameCornerPrizeRoom.asm b/maps/CeladonGameCornerPrizeRoom.asm
index ccc68114..7aa27c17 100644
--- a/maps/CeladonGameCornerPrizeRoom.asm
+++ b/maps/CeladonGameCornerPrizeRoom.asm
@@ -1,8 +1,8 @@
CELADONGAMECORNERPRIZEROOM_TM32_COINS EQU 1500
CELADONGAMECORNERPRIZEROOM_TM29_COINS EQU 3500
CELADONGAMECORNERPRIZEROOM_TM15_COINS EQU 7500
-CELADONGAMECORNERPRIZEROOM_MR_MIME_COINS EQU 3333
-CELADONGAMECORNERPRIZEROOM_EEVEE_COINS EQU 6666
+CELADONGAMECORNERPRIZEROOM_MR_MIME_COINS EQU 3333
+CELADONGAMECORNERPRIZEROOM_EEVEE_COINS EQU 6666
CELADONGAMECORNERPRIZEROOM_PORYGON_COINS EQU 9999
object_const_def
@@ -116,9 +116,9 @@ CeladonPrizeRoom_TMMenuHeader:
.MenuData:
db STATICMENU_CURSOR ; flags
db 4 ; items
- db "TM32 1500@"
- db "TM29 3500@"
- db "TM15 7500@"
+ db "TM32 {d:CELADONGAMECORNERPRIZEROOM_TM32_COINS}@"
+ db "TM29 {d:CELADONGAMECORNERPRIZEROOM_TM29_COINS}@"
+ db "TM15 {d:CELADONGAMECORNERPRIZEROOM_TM15_COINS}@"
db "CANCEL@"
CeladonGameCornerPrizeRoomPokemonVendor:
@@ -202,9 +202,9 @@ CeladonGameCornerPrizeRoomPokemonVendor:
.MenuData:
db STATICMENU_CURSOR ; flags
db 4 ; items
- db "MR.MIME 3333@"
- db "EEVEE 6666@"
- db "PORYGON 9999@"
+ db "MR.MIME {d:CELADONGAMECORNERPRIZEROOM_MR_MIME_COINS}@"
+ db "EEVEE {d:CELADONGAMECORNERPRIZEROOM_EEVEE_COINS}@"
+ db "PORYGON {d:CELADONGAMECORNERPRIZEROOM_PORYGON_COINS}@"
db "CANCEL@"
CeladonGameCornerPrizeRoomGentlemanText:
diff --git a/maps/GoldenrodDeptStore6F.asm b/maps/GoldenrodDeptStore6F.asm
index 80f129c2..620fbe07 100644
--- a/maps/GoldenrodDeptStore6F.asm
+++ b/maps/GoldenrodDeptStore6F.asm
@@ -79,9 +79,9 @@ GoldenrodVendingMachine:
.MenuData:
db STATICMENU_CURSOR ; flags
db 4 ; items
- db "FRESH WATER ¥200@"
- db "SODA POP ¥300@"
- db "LEMONADE ¥350@"
+ db "FRESH WATER ¥{d:GOLDENRODDEPTSTORE6F_FRESH_WATER_PRICE}@"
+ db "SODA POP ¥{d:GOLDENRODDEPTSTORE6F_SODA_POP_PRICE}@"
+ db "LEMONADE ¥{d:GOLDENRODDEPTSTORE6F_LEMONADE_PRICE}@"
db "CANCEL@"
GoldenrodDeptStore6FLassScript:
diff --git a/maps/NationalPark.asm b/maps/NationalPark.asm
index 6e3f81a4..05241155 100644
--- a/maps/NationalPark.asm
+++ b/maps/NationalPark.asm
@@ -381,7 +381,7 @@ SchoolboyJackTradeMonText:
para "For example…"
- para "There are 50 kinds"
+ para "There are {d:NUM_TMS} kinds"
line "of TM."
para "Traded #MON"
diff --git a/maps/Route35NationalParkGate.asm b/maps/Route35NationalParkGate.asm
index 1bcf37d2..11f6d7e0 100644
--- a/maps/Route35NationalParkGate.asm
+++ b/maps/Route35NationalParkGate.asm
@@ -252,7 +252,7 @@ Route35NationalParkGateOfficer1GiveParkBallsText:
Route35NationalParkGatePlayerReceivedParkBallsText:
text "<PLAYER> received"
- line "20 PARK BALLS."
+ line "{d:BUG_CONTEST_BALLS} PARK BALLS."
done
Route35NationalParkGateOfficer1ExplainsRulesText:
@@ -261,7 +261,7 @@ Route35NationalParkGateOfficer1ExplainsRulesText:
cont "est bug #MON"
cont "is the winner."
- para "You have 20"
+ para "You have {d:BUG_CONTEST_MINUTES}"
line "minutes."
para "If you run out of"
diff --git a/maps/Route36NationalParkGate.asm b/maps/Route36NationalParkGate.asm
index 6d17da10..ac8f1d4f 100644
--- a/maps/Route36NationalParkGate.asm
+++ b/maps/Route36NationalParkGate.asm
@@ -503,7 +503,7 @@ Route36NationalParkGateOfficer1GiveParkBallsText:
Route36NationalParkGatePlayerReceivedParkBallsText:
text "<PLAYER> received"
- line "20 PARK BALLS."
+ line "{d:BUG_CONTEST_BALLS} PARK BALLS."
done
Route36NationalParkGateOfficer1ExplainsRulesText:
@@ -512,7 +512,7 @@ Route36NationalParkGateOfficer1ExplainsRulesText:
cont "est bug #MON"
cont "is the winner."
- para "You have 20"
+ para "You have {d:BUG_CONTEST_MINUTES}"
line "minutes."
para "If you run out of"
diff --git a/maps/Route39Farmhouse.asm b/maps/Route39Farmhouse.asm
index 5765fdbd..0e8f8561 100644
--- a/maps/Route39Farmhouse.asm
+++ b/maps/Route39Farmhouse.asm
@@ -122,7 +122,7 @@ FarmerMText_BuyMilk:
line "to restore HP!"
para "I'll give it to ya"
- line "fer just ¥500."
+ line "fer just ¥{d:ROUTE39FARMHOUSE_MILK_PRICE}."
done
FarmerMText_GotMilk:
diff --git a/maps/Route43Gate.asm b/maps/Route43Gate.asm
index 65e7f3ea..c5ed70c2 100644
--- a/maps/Route43Gate.asm
+++ b/maps/Route43Gate.asm
@@ -196,7 +196,7 @@ RocketText_TollFee:
text "Hold it there,"
line "mister!"
- para "The toll is ¥1000"
+ para "The toll is ¥{d:ROUTE43GATE_TOLL}"
line "to go through."
done
diff --git a/maps/RuinsOfAlphResearchCenter.asm b/maps/RuinsOfAlphResearchCenter.asm
index a29c9d3b..95388560 100644
--- a/maps/RuinsOfAlphResearchCenter.asm
+++ b/maps/RuinsOfAlphResearchCenter.asm
@@ -286,7 +286,7 @@ RuinsOfAlphResearchCenterComputerText_GotAllUnown:
text "Mystery #MON"
line "Name: UNOWN"
- para "A total of 26"
+ para "A total of {d:NUM_UNOWN}"
line "kinds found."
done