From 681279cb2b14fa40bdfa8a77457d3aed0e16b704 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 13 May 2021 02:35:50 +0200 Subject: [PATCH] Implement "start_hints" option --- Main.py | 3 +++ Mystery.py | 2 ++ playerSettings.yaml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/Main.py b/Main.py index 24a27907..304914c7 100644 --- a/Main.py +++ b/Main.py @@ -535,6 +535,9 @@ def main(args, seed=None): if location.player in sending_visible_players and location.item.player != location.player: precollected_hints[location.player].append(NetUtils.Hint(location.item.player, location.player, location.address, location.item.code, False)) + elif location.item.name in args.start_hints[location.item.player]: + precollected_hints[location.player].append(NetUtils.Hint(location.item.player, location.player, location.address, + location.item.code, False)) multidata = zlib.compress(pickle.dumps({ "slot_data" : slot_data, "games": games, diff --git a/Mystery.py b/Mystery.py index 4abe1183..12758173 100644 --- a/Mystery.py +++ b/Mystery.py @@ -541,6 +541,8 @@ def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("b elif itemvalue: startitems.append(item) ret.startinventory = startitems + ret.start_hints = set(weights.get('start_hints', [])) + if ret.game == "A Link to the Past": roll_alttp_settings(ret, weights, plando_options) diff --git a/playerSettings.yaml b/playerSettings.yaml index 0e59a76b..e212e98c 100644 --- a/playerSettings.yaml +++ b/playerSettings.yaml @@ -42,6 +42,8 @@ progression_balancing: # Pegasus Boots: on # Bomb Upgrade (+10): 4 # Arrow Upgrade (+10): 4 +start_hints: + - Moon Pearl # Factorio options: tech_tree_layout: single: 1