diff --git a/skytemple/module/lists/controller/misc_settings.glade b/skytemple/module/lists/controller/misc_settings.glade index 0e75ac2c8..375a3b6a8 100644 --- a/skytemple/module/lists/controller/misc_settings.glade +++ b/skytemple/module/lists/controller/misc_settings.glade @@ -52,7 +52,7 @@ True False - + True False @@ -111,7 +111,7 @@ 0 - 9 + 10 2 @@ -129,7 +129,7 @@ 0 - 13 + 14 2 @@ -248,7 +248,7 @@ Exclusive Move-User: 0 - 14 + 15 @@ -262,7 +262,7 @@ Item Master: 0 - 15 + 16 @@ -274,7 +274,7 @@ Item Master: 1 - 14 + 15 @@ -286,7 +286,7 @@ Item Master: 1 - 15 + 16 @@ -295,21 +295,7 @@ Item Master: False end Belly points lost when -walking through walls: - right - - - 0 - 6 - - - - - True - False - end - 1/1000 belly points lost when -walking through walls: +walking through walls, per turn: right @@ -324,18 +310,6 @@ walking through walls: center - - 1 - 6 - - - - - True - True - center - - 1 7 @@ -351,7 +325,7 @@ walking through walls: 0 - 16 + 17 @@ -363,7 +337,7 @@ walking through walls: 1 - 16 + 17 @@ -377,7 +351,7 @@ a move's power by 3 (%): 0 - 8 + 9 @@ -389,7 +363,7 @@ a move's power by 3 (%): 1 - 8 + 9 @@ -402,7 +376,7 @@ a move's power by 3 (%): 0 - 10 + 11 @@ -415,7 +389,7 @@ a move's power by 3 (%): 0 - 11 + 12 @@ -428,7 +402,7 @@ a move's power by 3 (%): 0 - 12 + 13 @@ -440,7 +414,7 @@ a move's power by 3 (%): 1 - 10 + 11 @@ -452,7 +426,7 @@ a move's power by 3 (%): 1 - 11 + 12 @@ -464,7 +438,58 @@ a move's power by 3 (%): 1 - 12 + 13 + + + + + True + False + end + Belly points lost, per turn: + right + + + 0 + 6 + + + + + True + True + center + + + + 1 + 6 + + + + + True + False + end + 1/1000 belly points lost when +walking through walls, per turn: + right + + + 0 + 8 + + + + + True + True + center + + + + 1 + 8 diff --git a/skytemple/module/lists/controller/misc_settings.py b/skytemple/module/lists/controller/misc_settings.py index 73faf9d64..475c4ea3e 100644 --- a/skytemple/module/lists/controller/misc_settings.py +++ b/skytemple/module/lists/controller/misc_settings.py @@ -84,6 +84,15 @@ def on_entry_stolen_spawn_delay_changed(self, widget, *args): self.module.project.modify_binary(BinaryName.OVERLAY_10, lambda bin: HardcodedSpawnRate.set_stolen_spawn_rate(val, bin, static_data)) self.module.mark_misc_settings_as_modified() + def on_entry_belly_lost_changed(self, widget, *args): + try: + val = float(widget.get_text()) + except ValueError: + return + static_data = self.module.project.get_rom_module().get_static_data() + self.module.project.modify_binary(BinaryName.OVERLAY_29, lambda bin: HardcodedDungeonMisc.set_belly_loss_turn(val, bin, static_data)) + self.module.mark_misc_settings_as_modified() + def on_entry_belly_lost_wtw_changed(self, widget, *args): try: val = int(widget.get_text()) @@ -184,6 +193,7 @@ def _init_values(self): self.builder.get_object('cb_main_menu_music').set_active(HardcodedMainMenuMusic.get_main_menu_music(ov00, static_data)) self.builder.get_object('entry_normal_spawn_delay').set_text(str(HardcodedSpawnRate.get_normal_spawn_rate(ov10, static_data))) self.builder.get_object('entry_stolen_spawn_delay').set_text(str(HardcodedSpawnRate.get_stolen_spawn_rate(ov10, static_data))) + self.builder.get_object('entry_belly_lost').set_text(str(HardcodedDungeonMisc.get_belly_loss_turn(ov29, static_data))) self.builder.get_object('entry_belly_lost_wtw').set_text(str(HardcodedDungeonMisc.get_belly_loss_walk_through_walls(ov29, static_data))) self.builder.get_object('entry_belly_lost_wtw_1000').set_text(str(HardcodedDungeonMisc.get_belly_loss_1000ile_walk_through_walls(ov29, static_data))) self.builder.get_object('entry_ginseng_3_chance').set_text(str(HardcodedDungeonMisc.get_ginseng_increase_by_3_chance(ov10, static_data)))