Version update with release notes
Switch to safe loader
This commit is contained in:
2
Main.py
2
Main.py
@@ -27,7 +27,7 @@ from Fill import sell_potions, sell_keys, balance_multiworld_progression, balanc
|
|||||||
from ItemList import generate_itempool, difficulties, fill_prizes, customize_shops
|
from ItemList import generate_itempool, difficulties, fill_prizes, customize_shops
|
||||||
from Utils import output_path, parse_player_names
|
from Utils import output_path, parse_player_names
|
||||||
|
|
||||||
__version__ = '0.3.1.8-u'
|
__version__ = '0.4.0.0-u'
|
||||||
|
|
||||||
|
|
||||||
class EnemizerError(RuntimeError):
|
class EnemizerError(RuntimeError):
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ def get_weights(path):
|
|||||||
if urllib.parse.urlparse(path).scheme:
|
if urllib.parse.urlparse(path).scheme:
|
||||||
return yaml.load(urllib.request.urlopen(path), Loader=yaml.FullLoader)
|
return yaml.load(urllib.request.urlopen(path), Loader=yaml.FullLoader)
|
||||||
with open(path, 'r', encoding='utf-8') as f:
|
with open(path, 'r', encoding='utf-8') as f:
|
||||||
return yaml.load(f, Loader=yaml.FullLoader)
|
return yaml.load(f, Loader=yaml.SafeLoader)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise Exception(f'Failed to read weights file: {e}')
|
raise Exception(f'Failed to read weights file: {e}')
|
||||||
|
|
||||||
|
|||||||
@@ -148,6 +148,13 @@ See the example yaml file for demonstrated usage.
|
|||||||
|
|
||||||
New item counter modified to show total
|
New item counter modified to show total
|
||||||
|
|
||||||
|
## Volatile Notes
|
||||||
|
|
||||||
|
* Mystery yaml parser updated to a package maintained version (Thanks StructuralMike)
|
||||||
|
* Bomb-logic and extend crystal switch logic (Thanks StructuralMike)
|
||||||
|
* Fixed logic for moved locations in playthrough (Thanks compiling)
|
||||||
|
* OWG Glitch logic (Thanks qadan, cheuer, & compiling)
|
||||||
|
|
||||||
# Bug Fixes and Notes.
|
# Bug Fixes and Notes.
|
||||||
|
|
||||||
* 0.3.1.9-u
|
* 0.3.1.9-u
|
||||||
|
|||||||
Reference in New Issue
Block a user