From b8afc27e2f367c4a2f439a2bac8bcd380743c9e2 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 14 Jan 2022 19:27:44 +0100 Subject: [PATCH] Docs: improve "sending_visible" comment --- Main.py | 2 +- worlds/AutoWorld.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Main.py b/Main.py index 5d7ea8e8..cc851ed6 100644 --- a/Main.py +++ b/Main.py @@ -258,7 +258,7 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No precollected_items = {player: [item.code for item in world_precollected] for player, world_precollected in world.precollected_items.items()} precollected_hints = {player: set() for player in range(1, world.players + 1)} - # for now special case Factorio tech_tree_information + sending_visible_players = set() for slot in world.player_ids: diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index e745937d..abeb9783 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -115,7 +115,8 @@ class World(metaclass=AutoWorldRegister): item_names: Set[str] # set of all potential item names location_names: Set[str] # set of all potential location names - # If there is visibility in what is being sent, this is where it will be known. + # If the game displays all contained items to the user, this flag pre-fills the hint system with this information + # For example the "full" tech tree information option in Factorio sending_visible: bool = False def __init__(self, world: MultiWorld, player: int):