Zillion: validate rescue item links (#1140)

This commit is contained in:
Doug Hoskisson
2022-10-28 12:56:50 -07:00
committed by GitHub
parent 53974d568b
commit f298b8d6e7
3 changed files with 48 additions and 8 deletions

View File

@@ -90,6 +90,8 @@ def call_all(world: "MultiWorld", method_name: str, *args: Any) -> None:
f"Duplicate item reference of \"{item.name}\" in \"{world.worlds[player].game}\" "
f"of player \"{world.player_name[player]}\". Please make a copy instead.")
# TODO: investigate: Iterating through a set is not a deterministic order.
# If any random is used, this could make unreproducible seed.
for world_type in world_types:
stage_callable = getattr(world_type, f"stage_{method_name}", None)
if stage_callable: