Skip to content

Commit

Permalink
Merge pull request #35 from hmsjayne/random-treasure
Browse files Browse the repository at this point in the history
Oops, accidentally left debug code
  • Loading branch information
nic0lette authored Sep 2, 2019
2 parents 9ca8c36 + 345d006 commit 867efb9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions randomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def randomize_rom(rom: Rom, flags: Flags, rom_seed: str) -> Rom:
rom = event_text_block.pack(rom)

rom = update_xp_requirements(rom, flags.exp_mult)

rom = random_treasures(rom, rng)

if flags.key_item_shuffle is not None:
placement = KeyItemPlacement(rom, rng.randint(0, 0xffffffff))
Expand Down
2 changes: 0 additions & 2 deletions randomizer/randomtreasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def random_bucketed_treasures(rom: Rom, rng: Random, wealth_level: int=0) -> Rom
moneyCount += 1
else:
print("BAD CHEST")
return
rng.shuffle(chests_to_shuffle)

chest_data = OutputStream()
Expand All @@ -111,4 +110,3 @@ def random_bucketed_treasures(rom: Rom, rng: Random, wealth_level: int=0) -> Rom
chest.write(chest_data)

return rom.apply_patch(0x217FB4, chest_data.get_buffer())

0 comments on commit 867efb9

Please sign in to comment.