Skip to content

Commit

Permalink
Force minor items created with create_filler() to be filler
Browse files Browse the repository at this point in the history
  • Loading branch information
lilDavid committed Nov 20, 2024
1 parent 914bfd1 commit 24db33a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections import Counter
from typing import Any, ClassVar, Dict, List, Optional

from BaseClasses import ItemClassification, Tutorial
from BaseClasses import Item, ItemClassification, Tutorial
import settings
from worlds.AutoWorld import WebWorld, World

Expand Down Expand Up @@ -156,6 +156,10 @@ def create_item(self, name: str, force_classification: Optional[ItemClassificati
self.item_name_to_id[name],
self.player)

# Overridden so the extra minor items can be forced filler
def create_filler(self) -> Item:
return self.create_item(self.get_filler_item_name(), ItemClassification.filler)

def create_tanks(self, item_name: str, count: int, progression_count: Optional[int] = None):
if progression_count is None:
progression_count = count
Expand Down

0 comments on commit 24db33a

Please sign in to comment.