Fix for Non-ER Inverted Experimental (Aga and GT weren't logically swapped)
Fix for customizer setting crystals to 0 for either GT/Ganon
This commit is contained in:
2
Main.py
2
Main.py
@@ -34,7 +34,7 @@ from source.overworld.EntranceShuffle2 import link_entrances_new
|
|||||||
from source.tools.BPS import create_bps_from_data
|
from source.tools.BPS import create_bps_from_data
|
||||||
from source.classes.CustomSettings import CustomSettings
|
from source.classes.CustomSettings import CustomSettings
|
||||||
|
|
||||||
version_number = '1.2.0.16'
|
version_number = '1.2.0.17'
|
||||||
version_branch = '-u'
|
version_branch = '-u'
|
||||||
__version__ = f'{version_number}{version_branch}'
|
__version__ = f'{version_number}{version_branch}'
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,9 @@ These are now independent of retro mode and have three options: None, Random, an
|
|||||||
|
|
||||||
# Bug Fixes and Notes
|
# Bug Fixes and Notes
|
||||||
|
|
||||||
|
* 1.2.0.17u
|
||||||
|
* Fix for Non-ER Inverted Experimental (Aga and GT weren't logically swapped)
|
||||||
|
* Fix for customizer setting crystals to 0 for either GT/Ganon
|
||||||
* 1.2.0.16u
|
* 1.2.0.16u
|
||||||
* Fix for partial key logic on vanilla Mire
|
* Fix for partial key logic on vanilla Mire
|
||||||
* Fix for Kholdstare Shell collision when at Lanmo 2
|
* Fix for Kholdstare Shell collision when at Lanmo 2
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import os
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import yaml
|
import yaml
|
||||||
|
from typing import Any
|
||||||
from yaml.representer import Representer
|
from yaml.representer import Representer
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@@ -46,8 +47,8 @@ class CustomSettings(object):
|
|||||||
return meta['players']
|
return meta['players']
|
||||||
|
|
||||||
def adjust_args(self, args):
|
def adjust_args(self, args):
|
||||||
def get_setting(value, default):
|
def get_setting(value: Any, default):
|
||||||
if value:
|
if value or value == 0:
|
||||||
if isinstance(value, dict):
|
if isinstance(value, dict):
|
||||||
return random.choices(list(value.keys()), list(value.values()), k=1)[0]
|
return random.choices(list(value.keys()), list(value.values()), k=1)[0]
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ def link_entrances_new(world, player):
|
|||||||
one_way_map.update(drop_map)
|
one_way_map.update(drop_map)
|
||||||
one_way_map.update(single_entrance_map)
|
one_way_map.update(single_entrance_map)
|
||||||
if avail_pool.inverted:
|
if avail_pool.inverted:
|
||||||
|
default_map['Ganons Tower'] = 'Agahnims Tower Exit'
|
||||||
|
default_map['Agahnims Tower'] = 'Ganons Tower Exit'
|
||||||
default_map['Old Man Cave (West)'] = 'Bumper Cave Exit (Bottom)'
|
default_map['Old Man Cave (West)'] = 'Bumper Cave Exit (Bottom)'
|
||||||
default_map['Death Mountain Return Cave (West)'] = 'Bumper Cave Exit (Top)'
|
default_map['Death Mountain Return Cave (West)'] = 'Bumper Cave Exit (Top)'
|
||||||
default_map['Bumper Cave (Bottom)'] = 'Old Man Cave Exit (West)'
|
default_map['Bumper Cave (Bottom)'] = 'Old Man Cave Exit (West)'
|
||||||
@@ -64,8 +66,6 @@ def link_entrances_new(world, player):
|
|||||||
default_map['Old Man Cave (East)'] = 'Death Mountain Return Cave Exit (West)'
|
default_map['Old Man Cave (East)'] = 'Death Mountain Return Cave Exit (West)'
|
||||||
one_way_map['Bumper Cave (Top)'] = 'Dark Death Mountain Healer Fairy'
|
one_way_map['Bumper Cave (Top)'] = 'Dark Death Mountain Healer Fairy'
|
||||||
del default_map['Bumper Cave (Top)']
|
del default_map['Bumper Cave (Top)']
|
||||||
del one_way_map['Big Bomb Shop']
|
|
||||||
one_way_map['Inverted Big Bomb Shop'] = 'Inverted Big Bomb Shop'
|
|
||||||
avail_pool.default_map = default_map
|
avail_pool.default_map = default_map
|
||||||
avail_pool.one_way_map = one_way_map
|
avail_pool.one_way_map = one_way_map
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user