Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions args/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def parse(parser):
help="All weapons enable swdtech and runic")
items.add_argument("-saw", "--stronger-atma-weapon", action="store_true",
help="Atma Weapon moved to higher tier and divisor reduced from 64 to 32")
items.add_argument("-exi", "--exclude-items", type=str, help="Items to exclude from shops and chests. Doesn't affect drops. Separate with periods")


def process(args):
Expand Down Expand Up @@ -177,6 +178,8 @@ def flags(args):

if args.stronger_atma_weapon:
flags += " -saw"
if args.exclude_items:
flags += f" -exi {args.exclude_items}"

return flags

Expand Down
5 changes: 5 additions & 0 deletions data/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ def get_excluded(self):
exclude.append(name_id["Cursed Shld"])
if self.args.permadeath:
exclude.append(name_id["Fenix Down"])
if self.args.exclude_items:
try:
exclude.extend([name_id[item_name] for item_name in self.args.exclude_items.split(".")])
except KeyError as e:
raise KeyError(f"Item to exclude with -exi not found: {e}. Check the spelling and capitalization")

return exclude

Expand Down