Skip to content

Commit

Permalink
Version 0.1.0a9 + Fixed chance calculation on remove
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Sep 18, 2020
1 parent 81a585c commit 2f0c0ce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion installer/requirements-stage-2.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion installer/skytemple.nsi
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ 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,
long_description_content_type='text/x-rst',
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',
Expand Down
3 changes: 3 additions & 0 deletions skytemple/module/dungeon/controller/floor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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()

# </editor-fold>
Expand Down

0 comments on commit 2f0c0ce

Please sign in to comment.