Skip to content

Commit dff7c2f

Browse files
committed
Changed how the dialogue text is handled
1 parent 59c9c42 commit dff7c2f

12 files changed

Lines changed: 14869 additions & 32670 deletions

‎scripts/decode.py‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,7 @@ def decode(code):
2727
c = code.split(' ')
2828
output = []
2929
in_string = False
30-
in_e8 = False
3130
for cc in c:
32-
if in_e8:
33-
if cc != 'EA':
34-
output += f" ${cc}"
35-
continue
36-
else:
37-
in_e8 = False
3831
match cc:
3932
case '0F':
4033
output[-1] = tenten[output[-1]]
@@ -58,9 +51,6 @@ def decode(code):
5851
match cc:
5952
case 'E6':
6053
output += ".db $E6\n"
61-
case 'E8':
62-
output += ".db $E8"
63-
in_e8 = True
6454
case 'EA':
6555
output += ".db SPEAK\n"
6656
case 'ED':

‎scripts/preprocess.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
def mapper(match):
1515
jp = match.group(1)
16-
output = []
16+
output = [".db"]
1717
for c in jp:
1818
if c == ' ':
1919
output.append("$FF")

0 commit comments

Comments
 (0)