Skip to content

Commit 5be46e3

Browse files
committed
Sort itempool to place eggs last
1 parent ea099e1 commit 5be46e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

worlds/smw/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,10 @@ def get_filler_item_name(self) -> str:
323323

324324
def set_rules(self):
325325
set_rules(self)
326+
327+
@classmethod
328+
def stage_fill_hook(cls, multiworld: MultiWorld, progitempool, usefulitempool, filleritempool, fill_locations):
329+
return
330+
if multiworld.get_game_players("Super Mario World"):
331+
progitempool.sort(
332+
key=lambda item: 0 if (item.name != 'Yoshi Egg') else 1)

0 commit comments

Comments
 (0)