mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Tweak cover JSON format and set names for remaining cover flags
This commit is contained in:
1 parent
577f97b8c8
commit
4be874210b
367 files changed
+125209
-62788
No files matched your search
+16
-1
@@ -265,7 +265,22 @@ class App():
|
||||
output += self.make_float(row['dir'][0])
|
||||
output += self.make_float(row['dir'][1])
|
||||
output += self.make_float(row['dir'][2])
|
||||
output += row['unk18'].to_bytes(4, 'big')
|
||||
|
||||
if row['special'] == 1:
|
||||
output += b'\x00\x20'
|
||||
elif row['special'] == 2:
|
||||
output += b'\x00\x40'
|
||||
elif row['special'] == 3:
|
||||
output += b'\x00\x80'
|
||||
else:
|
||||
output += b'\x00\x00'
|
||||
|
||||
unk1a = row['unk1a']
|
||||
|
||||
if unk1a < 0:
|
||||
unk1a += 0x10000
|
||||
|
||||
output += unk1a.to_bytes(2, 'big')
|
||||
|
||||
return output
|
||||
|
||||
|
||||
Reference in new issue
Block a user