Early Items option (#1086)

* Early Items option

* Early Items description update

* Change Early Items to dict

* Rewrite early items as extra fill steps

* Move if statement up

* Document early_items

* Move early_items handling before fill_hook

* Apply suggestions from code review

Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>

* Subnautica pre-fill moved to early_items

* Subnautica early items fix

* Remove unit test bug workaround

* beauxq's pr

Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>
This commit is contained in:
Alchav
2022-10-27 03:00:24 -04:00
committed by GitHub
parent 700fe8b75e
commit 4b18920819
6 changed files with 58 additions and 18 deletions

View File

@@ -883,6 +883,11 @@ class NonLocalItems(ItemSet):
display_name = "Not Local Items"
class EarlyItems(ItemDict):
"""Force the specified items to be in locations that are reachable from the start."""
display_name = "Early Items"
class StartInventory(ItemDict):
"""Start with these items."""
verify_item_name = True
@@ -981,6 +986,7 @@ per_game_common_options = {
**common_options, # can be overwritten per-game
"local_items": LocalItems,
"non_local_items": NonLocalItems,
"early_items": EarlyItems,
"start_inventory": StartInventory,
"start_hints": StartHints,
"start_location_hints": StartLocationHints,