Skip to content

Commit

Permalink
Bug fix for writing SequinGate objects
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowUnicorn7297 authored Oct 14, 2020
1 parent 97c4d9d commit e31b097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ def write_gate_comp(f, obj):
write_string(f, obj['spn_name'])
write_param_path(f, obj.get('param_path'), obj.get('param_path_hash'))

write_int(len(obj['boss_patterns']))
write_int(f, len(obj['boss_patterns']))
for boss_pattern in obj['boss_patterns']:
if 'node_name' in boss_pattern:
write_hash(f, boss_pattern['node_name'])
else:
write_hex(f, boss_pattern['node_name_hash'])
write_hex_reverse(f, boss_pattern['node_name_hash'])
write_string(f, boss_pattern['lvl_name'])
write_bool(f, True)
write_string(f, boss_pattern['sentry_type'])
Expand Down

0 comments on commit e31b097

Please sign in to comment.