Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Note displayed portraits.

  • Loading branch information...
commit 1405c9d666487d679e6a6494425d4da10289b207 1 parent 4905a29
@Zhorken authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 text.py
View
6 text.py
@@ -1,7 +1,7 @@
from struct import unpack
from sys import argv
-from tables import text_table, colors
+from tables import *
def lz_decompress(bytes):
# Copy-pasted straight out of bw_animations.py; pretty unreadable but I
@@ -67,6 +67,10 @@ def read_char():
color = read_char()
color = colors.setdefault(color, '#' + str(color))
print('[[COLOR {0}]]'.format(color), end='')
+ elif char == 0xff08:
+ portrait = read_char()
+ portrait = portraits.setdefault(portrait, '#' + hex(portrait))
+ print('[[PORTRAIT: {0}]]'.format(portrait))
else:
char = text_table.setdefault(char, r'\x{0:04x}'.format(char))
print(char, end='')
Please sign in to comment.
Something went wrong with that request. Please try again.