Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LADX: drop rupee farm condition #4189

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions worlds/ladx/Locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,6 @@ def filter_item(item):
add_item_rule(self, filter_item)


def has_free_weapon(state: CollectionState, player: int) -> bool:
return state.has("Progressive Sword", player) or state.has("Magic Rod", player) or state.has("Boomerang", player) or state.has("Hookshot", player)


# If the player has access to farm enough rupees to afford a game, we assume that they can keep beating the game
def can_farm_rupees(state: CollectionState, player: int) -> bool:
return has_free_weapon(state, player) and (state.has("Can Play Trendy Game", player=player) or state.has("RAFT", player=player))
threeandthreee marked this conversation as resolved.
Show resolved Hide resolved


class LinksAwakeningRegion(Region):
dungeon_index = None
ladxr_region = None
Expand Down Expand Up @@ -121,9 +112,7 @@ def __contains__(self, item):
def get(self, item, default):
# Don't allow any money usage if you can't get back wasted rupees
if item == "RUPEES":
if can_farm_rupees(self.state, self.player):
return self.state.prog_items[self.player]["RUPEES"]
return 0
return self.state.prog_items[self.player]["RUPEES"]
elif item.endswith("_USED"):
return 0
else:
Expand Down
Loading