mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Lingo: Enable start_inventory_from_pool (#2781)
This commit is contained in:
committed by
GitHub
parent
016c1e9bb4
commit
3a51c035ac
@@ -82,9 +82,8 @@ class LingoWorld(World):
|
|||||||
skips = int(non_traps * skip_percentage / 100.0)
|
skips = int(non_traps * skip_percentage / 100.0)
|
||||||
non_skips = non_traps - skips
|
non_skips = non_traps - skips
|
||||||
|
|
||||||
filler_list = [":)", "The Feeling of Being Lost", "Wanderlust", "Empty White Hallways"]
|
|
||||||
for i in range(0, non_skips):
|
for i in range(0, non_skips):
|
||||||
pool.append(self.create_item(filler_list[i % len(filler_list)]))
|
pool.append(self.create_item(self.get_filler_item_name()))
|
||||||
|
|
||||||
for i in range(0, skips):
|
for i in range(0, skips):
|
||||||
pool.append(self.create_item("Puzzle Skip"))
|
pool.append(self.create_item("Puzzle Skip"))
|
||||||
@@ -130,3 +129,7 @@ class LingoWorld(World):
|
|||||||
slot_data["painting_entrance_to_exit"] = self.player_logic.painting_mapping
|
slot_data["painting_entrance_to_exit"] = self.player_logic.painting_mapping
|
||||||
|
|
||||||
return slot_data
|
return slot_data
|
||||||
|
|
||||||
|
def get_filler_item_name(self) -> str:
|
||||||
|
filler_list = [":)", "The Feeling of Being Lost", "Wanderlust", "Empty White Hallways"]
|
||||||
|
return self.random.choice(filler_list)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from Options import Toggle, Choice, DefaultOnToggle, Range, PerGameCommonOptions
|
from Options import Toggle, Choice, DefaultOnToggle, Range, PerGameCommonOptions, StartInventoryPool
|
||||||
|
|
||||||
|
|
||||||
class ShuffleDoors(Choice):
|
class ShuffleDoors(Choice):
|
||||||
@@ -136,3 +136,4 @@ class LingoOptions(PerGameCommonOptions):
|
|||||||
trap_percentage: TrapPercentage
|
trap_percentage: TrapPercentage
|
||||||
puzzle_skip_percentage: PuzzleSkipPercentage
|
puzzle_skip_percentage: PuzzleSkipPercentage
|
||||||
death_link: DeathLink
|
death_link: DeathLink
|
||||||
|
start_inventory_from_pool: StartInventoryPool
|
||||||
|
|||||||
Reference in New Issue
Block a user