Skip to content

Commit

Permalink
Emergency fix for encounters always being disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
nleseul committed Jul 14, 2019
1 parent 52e8c8a commit 2f4c6bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ def pack_bytecode(lines):

# As part of easy mode, this disables the check for random encounters.
elif line['line_number'] == 5510:
line['tokens'] = [{'op': 0x8f, 'content': b'Encounters disabled!'}]
if args.easy_mode:
line['tokens'] = [{'op': 0x8f, 'content': b'Encounters disabled!'}]

# These changes all pertain to the title screen. Moving around a bunch of coordinates to make room for
# patch-specific credits.
Expand All @@ -297,10 +298,9 @@ def pack_bytecode(lines):

# Now insert commands for the lines we're injecting.
ops_to_insert = []
new_credit_lines = [(3, b'EN translation patch 0.8a'), (1, b'by Laszlo Benyi & NLeseul')]
new_credit_lines = [(3, b'EN translation patch 0.81a'), (1, b'by Laszlo Benyi & NLeseul')]
if args.easy_mode:
new_credit_lines.append((1, b'EASY MODE!!'))
#pass

for y_spacing, new_credit_line in new_credit_lines:
x_coord = ((40 - len(new_credit_line)) // 2)
Expand Down

0 comments on commit 2f4c6bb

Please sign in to comment.