From 2f0c0cebca042a521e3290e89a5294dead3eae02 Mon Sep 17 00:00:00 2001 From: Parakoopa Date: Sun, 13 Sep 2020 21:57:02 +0200 Subject: [PATCH] Version 0.1.0a9 + Fixed chance calculation on remove --- installer/requirements-stage-2.txt | 2 +- installer/skytemple.nsi | 2 +- requirements.txt | 2 +- setup.py | 4 ++-- skytemple/module/dungeon/controller/floor.py | 3 +++ 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/installer/requirements-stage-2.txt b/installer/requirements-stage-2.txt index 3bd858628..de4496c6f 100644 --- a/installer/requirements-stage-2.txt +++ b/installer/requirements-stage-2.txt @@ -1,4 +1,4 @@ -skytemple-files==0.1.0a8 +skytemple-files==0.1.0a9 explorerscript==0.0.4 skytemple-ssb-debugger==0.0.4 tilequant==0.0.1 diff --git a/installer/skytemple.nsi b/installer/skytemple.nsi index 3e13091a8..0c3658fec 100644 --- a/installer/skytemple.nsi +++ b/installer/skytemple.nsi @@ -1,5 +1,5 @@ !define PRODUCT_NAME "SkyTemple" -!define PRODUCT_VERSION "0.1.0a8" +!define PRODUCT_VERSION "0.1.0a9" !define DIST_DIR "dist\skytemple" !define APPEXE "skytemple.exe" diff --git a/requirements.txt b/requirements.txt index 76ebd7bef..9712f8a9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ ndspy==3.0.0 -skytemple-files==0.1.0a8 +skytemple-files==0.1.0a9 pygobject==3.36.0 pycairo==1.18.2 natsort==7.0.0 diff --git a/setup.py b/setup.py index cbd72b397..adb9d3c7d 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def recursive_pkg_files(file_ext): setup( name='skytemple', - version='0.1.0a8', + version='0.1.0a9', packages=find_packages(), description='GUI Application to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky (EU/US)', long_description=long_description, @@ -30,7 +30,7 @@ def recursive_pkg_files(file_ext): url='https://github.com/SkyTemple/skytemple/', install_requires=[ 'ndspy >= 3.0.0', - 'skytemple-files >= 0.1.0a8', + 'skytemple-files >= 0.1.0a9', 'pygobject >= 3.26.0', 'pycairo >= 1.16.0', 'natsort >= 7.0.0', diff --git a/skytemple/module/dungeon/controller/floor.py b/skytemple/module/dungeon/controller/floor.py index 605042815..69e55bf3d 100644 --- a/skytemple/module/dungeon/controller/floor.py +++ b/skytemple/module/dungeon/controller/floor.py @@ -391,6 +391,7 @@ def on_monster_spawns_remove_clicked(self, *args): model, treeiter = tree.get_selection().get_selected() if model is not None and treeiter is not None: model.remove(treeiter) + self._recalculate_spawn_chances('monster_spawns_store', 5, 4) self._save_monster_spawn_rates() def on_kecleon_level_entry_changed(self, w: Gtk.Entry, *args): @@ -485,6 +486,7 @@ def on_item_categories_remove_clicked(self, *args): return if model is not None and treeiter is not None: model.remove(treeiter) + self._recalculate_spawn_chances('item_categories_store', 4, 3) self._save_item_spawn_rates() def on_cr_items_cat_thrown_pierce_item_name_edited(self, widget, path, text): @@ -720,6 +722,7 @@ def _on_cat_item_remove_clicked(self, tree_name: str): model, treeiter = tree.get_selection().get_selected() if model is not None and treeiter is not None: model.remove(treeiter) + self._recalculate_spawn_chances(Gtk.Buildable.get_name(tree.get_model()), 4, 3) self._save_item_spawn_rates() #