Skip to content

Commit

Permalink
Replace "¯" and "%" (breakable whitespace) with more meaningful charm…
Browse files Browse the repository at this point in the history
…ap names
  • Loading branch information
Rangi42 committed Jan 2, 2024
1 parent a1c8b2d commit 16571da
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 46 deletions.
6 changes: 3 additions & 3 deletions constants/charmap.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

charmap "<NULL>", $00
charmap "<CR>", $16
charmap "¯", $1f ; soft linebreak
charmap "<BSP>", $1f ; breakable space (usually " ", or "<LF>" on the Town Map)
charmap "<LF>", $22
charmap "<POKE>", $24 ; "<PO><KE>"
charmap "%", $25 ; soft linebreak in landmark names
charmap "<WBR>", $25 ; word-break opportunity (usually skipped, or "<LF>" on the Town Map)
charmap "<RED>", $38 ; wRedsName
charmap "<GREEN>", $39 ; wGreensName
charmap "<ENEMY>", $3f
Expand Down Expand Up @@ -189,7 +189,7 @@
charmap "▶", $ed
charmap "▼", $ee
charmap "♂", $ef
charmap "¥", $f0
charmap "¥", $f0 ; Poké Dollar sign
charmap "×", $f1
charmap "<DOT>", $f2 ; decimal point; same as "." in English
charmap "/", $f3
Expand Down
66 changes: 33 additions & 33 deletions data/maps/landmarks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -105,52 +105,52 @@ Landmarks:
landmark 140, 116, FastShipName
assert_table_length NUM_LANDMARKS

NewBarkTownName: db "NEW BARK¯TOWN@"
CherrygroveCityName: db "CHERRYGROVE¯CITY@"
NewBarkTownName: db "NEW BARK<BSP>TOWN@"
CherrygroveCityName: db "CHERRYGROVE<BSP>CITY@"
VioletCityName: db "VIOLET CITY@"
AzaleaTownName: db "AZALEA TOWN@"
GoldenrodCityName: db "GOLDENROD¯CITY@"
EcruteakCityName: db "ECRUTEAK¯CITY@"
OlivineCityName: db "OLIVINE¯CITY@"
CianwoodCityName: db "CIANWOOD¯CITY@"
MahoganyTownName: db "MAHOGANY¯TOWN@"
BlackthornCityName: db "BLACKTHORN¯CITY@"
LakeOfRageName: db "LAKE OF¯RAGE@"
GoldenrodCityName: db "GOLDENROD<BSP>CITY@"
EcruteakCityName: db "ECRUTEAK<BSP>CITY@"
OlivineCityName: db "OLIVINE<BSP>CITY@"
CianwoodCityName: db "CIANWOOD<BSP>CITY@"
MahoganyTownName: db "MAHOGANY<BSP>TOWN@"
BlackthornCityName: db "BLACKTHORN<BSP>CITY@"
LakeOfRageName: db "LAKE OF<BSP>RAGE@"
SilverCaveName: db "SILVER CAVE@"
SproutTowerName: db "SPROUT¯TOWER@"
RuinsOfAlphName: db "RUINS¯OF ALPH@"
SproutTowerName: db "SPROUT<BSP>TOWER@"
RuinsOfAlphName: db "RUINS<BSP>OF ALPH@"
UnionCaveName: db "UNION CAVE@"
SlowpokeWellName: db "SLOWPOKE¯WELL@"
SlowpokeWellName: db "SLOWPOKE<BSP>WELL@"
RadioTowerName: db "RADIO TOWER@"
PowerPlantName: db "POWER PLANT@"
NationalParkName: db "NATIONAL¯PARK@"
NationalParkName: db "NATIONAL<BSP>PARK@"
TinTowerName: db "TIN TOWER@"
LighthouseName: db "LIGHTHOUSE@"
WhirlIslandsName: db "WHIRL¯ISLANDS@"
WhirlIslandsName: db "WHIRL<BSP>ISLANDS@"
MtMortarName: db "MT.MORTAR@"
DragonsDenName: db "DRAGON'S¯DEN@"
DragonsDenName: db "DRAGON'S<BSP>DEN@"
IcePathName: db "ICE PATH@"
NotApplicableName: db "N/A@" ; unreferenced ; "オバケやしき" ("HAUNTED HOUSE") in Japanese
PalletTownName: db "PALLET TOWN@"
ViridianCityName: db "VIRIDIAN¯CITY@"
ViridianCityName: db "VIRIDIAN<BSP>CITY@"
PewterCityName: db "PEWTER CITY@"
CeruleanCityName: db "CERULEAN¯CITY@"
LavenderTownName: db "LAVENDER¯TOWN@"
VermilionCityName: db "VERMILION¯CITY@"
CeladonCityName: db "CELADON¯CITY@"
SaffronCityName: db "SAFFRON¯CITY@"
FuchsiaCityName: db "FUCHSIA¯CITY@"
CinnabarIslandName: db "CINNABAR¯ISLAND@"
IndigoPlateauName: db "INDIGO¯PLATEAU@"
VictoryRoadName: db "VICTORY¯ROAD@"
CeruleanCityName: db "CERULEAN<BSP>CITY@"
LavenderTownName: db "LAVENDER<BSP>TOWN@"
VermilionCityName: db "VERMILION<BSP>CITY@"
CeladonCityName: db "CELADON<BSP>CITY@"
SaffronCityName: db "SAFFRON<BSP>CITY@"
FuchsiaCityName: db "FUCHSIA<BSP>CITY@"
CinnabarIslandName: db "CINNABAR<BSP>ISLAND@"
IndigoPlateauName: db "INDIGO<BSP>PLATEAU@"
VictoryRoadName: db "VICTORY<BSP>ROAD@"
MtMoonName: db "MT.MOON@"
RockTunnelName: db "ROCK TUNNEL@"
LavRadioTowerName: db "LAV¯RADIO TOWER@"
LavRadioTowerName: db "LAV<BSP>RADIO TOWER@"
SilphCoName: db "SILPH CO.@" ; unreferenced
SafariZoneName: db "SAFARI ZONE@" ; unreferenced
SeafoamIslandsName: db "SEAFOAM¯ISLANDS@"
PokemonMansionName: db "#MON¯MANSION@" ; unreferenced
CeruleanCaveName: db "CERULEAN¯CAVE@" ; unreferenced
SeafoamIslandsName: db "SEAFOAM<BSP>ISLANDS@"
PokemonMansionName: db "#MON<BSP>MANSION@" ; unreferenced
CeruleanCaveName: db "CERULEAN<BSP>CAVE@" ; unreferenced
Route1Name: db "ROUTE 1@"
Route2Name: db "ROUTE 2@"
Route3Name: db "ROUTE 3@"
Expand Down Expand Up @@ -198,11 +198,11 @@ Route44Name: db "ROUTE 44@"
Route45Name: db "ROUTE 45@"
Route46Name: db "ROUTE 46@"
DarkCaveName: db "DARK CAVE@"
IlexForestName: db "ILEX¯FOREST@"
BurnedTowerName: db "BURNED¯TOWER@"
IlexForestName: db "ILEX<BSP>FOREST@"
BurnedTowerName: db "BURNED<BSP>TOWER@"
FastShipName: db "FAST SHIP@"
ViridianForestName: db "VIRIDIAN¯FOREST@" ; unreferenced
DiglettsCaveName: db "DIGLETT's¯CAVE@"
ViridianForestName: db "VIRIDIAN<BSP>FOREST@" ; unreferenced
DiglettsCaveName: db "DIGLETT's<BSP>CAVE@"
TohjoFallsName: db "TOHJO FALLS@"
UndergroundName: db "UNDERGROUND@"
SpecialMapName: db "SPECIAL@"
12 changes: 6 additions & 6 deletions data/moves/grammar.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
; Used by GetMoveGrammar (see engine/battle/used_move_text.asm)
; Each move is given an identifier for what usedmovetext to use (0-4).
; Made redundant in English localization, where all are just "[mon]¯used [move]!"
; Made redundant in English localization, where all are just "[mon]<LINE>used [move]!"

MoveGrammar:
; 0: originally "[mon]の¯[move]¯つかった!" ("[mon]¯used¯[move]!")
; 0: originally "[mon]の<LINE>[move]を つかった!" ("[mon]<LINE>used [move]!")
db SWORDS_DANCE
db GROWTH
db STRENGTH
Expand Down Expand Up @@ -35,7 +35,7 @@ MoveGrammar:
db EXTREMESPEED
db 0 ; end set

; 1: originally "[mon]の¯[move]した!" ("[mon]¯did [move]!")
; 1: originally "[mon]の<LINE>[move]した!" ("[mon]<LINE>did [move]!")
db RECOVER
db TELEPORT
db BIDE
Expand All @@ -44,7 +44,7 @@ MoveGrammar:
db FLAIL
db 0 ; end set

; 2: originally "[mon]の¯[move]¯した!" ("[mon]¯did¯[move]!")
; 2: originally "[mon]の<LINE>[move]を した!" ("[mon]<LINE>did [move]!")
db MEDITATE
db AGILITY
db MIMIC
Expand All @@ -55,7 +55,7 @@ MoveGrammar:
db SCARY_FACE
db 0 ; end set

; 3: originally "[mon]の¯[move] こうげき!" ("[mon]'s¯[move] attack!")
; 3: originally "[mon]の<LINE>[move] こうげき!" ("[mon]'s<LINE>[move] attack!")
db POUND
db SCRATCH
db VICEGRIP
Expand Down Expand Up @@ -96,6 +96,6 @@ MoveGrammar:
db ROCK_SMASH
db 0 ; end set

; 4: originally "[mon]の¯[move]!" ("[mon]'s¯[move]!")
; 4: originally "[mon]の<LINE>[move]!" ("[mon]'s<LINE>[move]!")
; Any move not listed above uses this grammar.
db -1 ; end
4 changes: 2 additions & 2 deletions engine/pokegear/townmap_convertlinebreakcharacters.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ TownMap_ConvertLineBreakCharacters:
ld a, [hl]
cp "@"
jr z, .end
cp "%"
cp "<WBR>"
jr z, .line_feed
cp "¯"
cp "<BSP>"
jr z, .line_feed
inc hl
jr .loop
Expand Down
4 changes: 2 additions & 2 deletions home/text.asm
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ ENDM
dict "<PROMPT>", PromptText
dict "<PKMN>", PlacePKMN
dict "<POKE>", PlacePOKE
dict "%", NextChar
dict "¯", " "
dict "<WBR>", NextChar
dict "<BSP>", " "
dict "<DEXEND>", PlaceDexEnd
dict "<TARGET>", PlaceMoveTargetsName
dict "<USER>", PlaceMoveUsersName
Expand Down
4 changes: 4 additions & 0 deletions macros/legacy.asm
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ DEF pcscript EQUS "PCScript"
DEF gamecornercoinvendor EQUS "GameCornerCoinVendorScript"
DEF happinesschecknpc EQUS "HappinessCheckScript"

; constants/charmap.asm
charmap "%", "<BSP>"
charmap "¯", "<WBR>"

; constants/sprite_constants.asm
DEF SPRITE_BUENA EQUS "SPRITE_BEAUTY"

Expand Down

0 comments on commit 16571da

Please sign in to comment.