Skip to content

Commit

Permalink
Blasphemous: Add start_inventory_from_pool (#4217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exempt-Medic authored Nov 30, 2024
1 parent 7cbd50a commit ca6792a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion worlds/blasphemous/Options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from Options import Choice, Toggle, DefaultOnToggle, DeathLink, PerGameCommonOptions, OptionGroup
from Options import Choice, Toggle, DefaultOnToggle, DeathLink, PerGameCommonOptions, StartInventoryPool, OptionGroup
import random


Expand Down Expand Up @@ -213,6 +213,7 @@ class BlasphemousDeathLink(DeathLink):

@dataclass
class BlasphemousOptions(PerGameCommonOptions):
start_inventory_from_pool: StartInventoryPool
prie_dieu_warp: PrieDieuWarp
skip_cutscenes: SkipCutscenes
corpse_hints: CorpseHints
Expand Down
9 changes: 0 additions & 9 deletions worlds/blasphemous/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ def create_items(self):
]

skipped_items = []
junk: int = 0

for item, count in self.options.start_inventory.value.items():
for _ in range(count):
skipped_items.append(item)
junk += 1

skipped_items.extend(unrandomized_dict.values())

Expand Down Expand Up @@ -194,9 +188,6 @@ def create_items(self):
for _ in range(count):
pool.append(self.create_item(item["name"]))

for _ in range(junk):
pool.append(self.create_item(self.get_filler_item_name()))

self.multiworld.itempool += pool

self.place_items_from_dict(unrandomized_dict)
Expand Down

0 comments on commit ca6792a

Please sign in to comment.