Refactor the Unown wall word data (#1131)

This commit is contained in:
Sylvie
2024-07-24 10:56:46 -04:00
committed by GitHub
parent 024c8749a0
commit fed587fc37
4 changed files with 50 additions and 56 deletions

View File

@@ -418,6 +418,16 @@
charmap "", $fe
charmap "", $ff
; Unown charmap, for Unown words (see gfx/tilesets/ruins_of_alph.png)
pushc
newcharmap unown
DEF PRINTABLE_UNOWN EQUS "ABCDEFGHIJKLMNOPQRSTUVWXYZ-"
for i, STRLEN("{PRINTABLE_UNOWN}")
charmap STRSUB("{PRINTABLE_UNOWN}", i + 1, 1), $10 * (i / 8) + 2 * i
endr
charmap "@", $ff ; end
popc
; ASCII charmap, for mobile functions
pushc
newcharmap ascii

View File

@@ -320,6 +320,8 @@ DEF NUM_UNOWN_PUZZLES EQU const_value
const UNOWNWORDS_LIGHT ; 1
const UNOWNWORDS_WATER ; 2
const UNOWNWORDS_HO_OH ; 3
DEF NUM_UNOWN_WALLS EQU const_value
DEF UNOWN_WALL_MENU_HEADER_SIZE EQU 5
; MoveTutor setval arguments
const_def 1