Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct European mail documentation #1142

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions engine/pokemon/european_mail.asm
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ SpanishItalianFont:
INCBIN "gfx/font/spanish_italian.1bpp"

ConvertFrenchGermanMailToEnglish:
; Called if mail is French or German
; Converts 's 't 'v from French/German character set to English
; Called when sending French or German mail
; Remaps 's from French/German character set to English
; Converts c' d' j' from French/German character set to unused values in English
ld b, sPartyMon1MailAuthor - sPartyMon1Mail
ld h, d
ld l, e
Expand Down Expand Up @@ -67,8 +68,9 @@ ConvertFrenchGermanMailToEnglish:
ret

ConvertEnglishMailToFrenchGerman:
; Called if mail is English and game is French or German
; Converts 's 't 'v from English character set to French/German
; Called when receiving French or German mail
; Remaps 's from English character set to French/German
; Converts unused values from English character set back to c' d' j' in French/German
ld b, sPartyMon1MailAuthor - sPartyMon1Mail
ld h, d
ld l, e
Expand Down Expand Up @@ -96,11 +98,13 @@ ConvertEnglishMailToFrenchGerman:
ret

ConvertSpanishItalianMailToEnglish:
; Called if mail is Spanish or Italian
; Called when sending Spanish or Italian mail
; Converts 'd 'l 'm 'r 's 't 'v from Spanish/Italian character set to English
; Converts ì í ñ ò ó ú º from Spanish/Italian character set to unused values in English
ConvertEnglishMailToSpanishItalian:
; Called if mail is English and game is Spanish or Italian
; Called when receiving Spanish or Italian mail
; Converts 'd 'l 'm 'r 's 't 'v from English character set to Spanish/Italian
; Converts unused values from English character set back to ì í ñ ò ó ú º in Spanish/Italian
ld b, sPartyMon1MailAuthor - sPartyMon1Mail
ld h, d
ld l, e
Expand Down