mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Implement "start_hints" option
This commit is contained in:
3
Main.py
3
Main.py
@@ -535,6 +535,9 @@ def main(args, seed=None):
|
|||||||
if location.player in sending_visible_players and location.item.player != location.player:
|
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,
|
precollected_hints[location.player].append(NetUtils.Hint(location.item.player, location.player, location.address,
|
||||||
location.item.code, False))
|
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({
|
multidata = zlib.compress(pickle.dumps({
|
||||||
"slot_data" : slot_data,
|
"slot_data" : slot_data,
|
||||||
"games": games,
|
"games": games,
|
||||||
|
@@ -541,6 +541,8 @@ def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("b
|
|||||||
elif itemvalue:
|
elif itemvalue:
|
||||||
startitems.append(item)
|
startitems.append(item)
|
||||||
ret.startinventory = startitems
|
ret.startinventory = startitems
|
||||||
|
ret.start_hints = set(weights.get('start_hints', []))
|
||||||
|
|
||||||
|
|
||||||
if ret.game == "A Link to the Past":
|
if ret.game == "A Link to the Past":
|
||||||
roll_alttp_settings(ret, weights, plando_options)
|
roll_alttp_settings(ret, weights, plando_options)
|
||||||
|
@@ -42,6 +42,8 @@ progression_balancing:
|
|||||||
# Pegasus Boots: on
|
# Pegasus Boots: on
|
||||||
# Bomb Upgrade (+10): 4
|
# Bomb Upgrade (+10): 4
|
||||||
# Arrow Upgrade (+10): 4
|
# Arrow Upgrade (+10): 4
|
||||||
|
start_hints:
|
||||||
|
- Moon Pearl
|
||||||
# Factorio options:
|
# Factorio options:
|
||||||
tech_tree_layout:
|
tech_tree_layout:
|
||||||
single: 1
|
single: 1
|
||||||
|
Reference in New Issue
Block a user