Skip to content

Commit

Permalink
[Reverse-engineering] [th03] Character IDs
Browse files Browse the repository at this point in the history
Part of P0061, funded by Touhou Patch Center.
  • Loading branch information
nmlgc committed Dec 5, 2019
1 parent 96684f4 commit 04d24cc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
12 changes: 12 additions & 0 deletions th03/chars/chars.h
@@ -0,0 +1,12 @@
typedef enum {
PLAYCHAR_REIMU = 0
PLAYCHAR_MIMA = 1
PLAYCHAR_MARISA = 2
PLAYCHAR_ELLEN = 3
PLAYCHAR_KOTOHIME = 4
PLAYCHAR_KANA = 5
PLAYCHAR_RIKAKO = 6
PLAYCHAR_CHIYURI = 7
PLAYCHAR_YUMEMI = 8
PLAYCHAR_COUNT = 9
} playchars_t;
10 changes: 10 additions & 0 deletions th03/chars/chars.inc
@@ -0,0 +1,10 @@
PLAYCHAR_REIMU = 0
PLAYCHAR_MIMA = 1
PLAYCHAR_MARISA = 2
PLAYCHAR_ELLEN = 3
PLAYCHAR_KOTOHIME = 4
PLAYCHAR_KANA = 5
PLAYCHAR_RIKAKO = 6
PLAYCHAR_CHIYURI = 7
PLAYCHAR_YUMEMI = 8
PLAYCHAR_COUNT = 9
1 change: 1 addition & 0 deletions th03/th03.inc
Expand Up @@ -3,3 +3,4 @@ include th03/defconv.inc
include th03/mem.inc
include th03/math/randring.inc
include th03/hardware/input.inc
include th03/chars/chars.inc
2 changes: 1 addition & 1 deletion th03_main.asm
Expand Up @@ -875,7 +875,7 @@ loc_9D85:
mov al, [bx]
mov [di+17h], al
mov bx, [bp+var_2]
cmp bx, 8
cmp bx, PLAYCHAR_COUNT - 1
ja short loc_9E23
add bx, bx
jmp cs:off_9E99[bx]
Expand Down

0 comments on commit 04d24cc

Please sign in to comment.