Skip to content

Commit

Permalink
remove annoying prints
Browse files Browse the repository at this point in the history
  • Loading branch information
wu4 committed Aug 19, 2024
1 parent 09b2361 commit 3731463
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions worlds/cavern_of_dreams/entrance_rando.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ def _link_entrances(world: "CavernOfDreamsWorld", entrance_map: list[tuple[str,s
to_parent_region_name = parent_regions[to_entrance_name]
to_parent_region = world.multiworld.get_region(to_parent_region_name, world.player)

print(f"{from_entrance_name} -> {to_entrance_name}")

if keep_carryables:
from_entrance.connect(to_parent_region)
else:
Expand All @@ -72,9 +70,6 @@ def create_and_link_entrances(world: "CavernOfDreamsWorld") -> list[EntranceExit
rando_bilinear = _randomize_entrance_pairs(world, bilinear)
rando_one_way = _randomize_entrance_pairs(world, one_way)
entrance_map = [*rando_one_way, *_include_flipped(rando_bilinear)]
# print("rando map:")
# for warp, dest in entrance_map:
# print(f"{warp} -> {dest}")
else:
entrance_map = [*one_way, *_include_flipped(bilinear)]

Expand Down
7 changes: 1 addition & 6 deletions worlds/cavern_of_dreams/item_rando/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,20 +293,15 @@ def _fill_carryablesanity(world: "CavernOfDreamsWorld"):
locations_placed: list[str] = []

def try_place_carryable(carryable_name: str, location_name: str):
print(f"placing {carryable_name} at {location_name}")
location = world.multiworld.get_location(location_name, world.player)
if location.item is not None:
print("failed")
return False
if location.item is not None: return False

location.place_locked_item(world.create_item(carryable_name))
locations_placed.append(location_name)
carryables[carryable_name] -= 1

print("success")
return True


assert try_place_carryable("Jester Boots", "Lostleaf Lake - Deep Woods Jester Boots")

# force_vanilla_deep_woods = world.options.carryablesanity == Carryablesanity.option_mean and not world.options.jester_boots_slope_movement
Expand Down

0 comments on commit 3731463

Please sign in to comment.