Anonymous avatar Anonymous committed 0411894

World map party menu bugfixes
- [Bugfix] Crash when all traits have been learned
- [Bugfix] On unit deployment unit selection screen, stats were being plotted twice on top of itself

Comments (0)

Files changed (4)

Story of a Lost Sky/battle_system/trait.py

                                     menu_pos = len(all_learnable_traits)-1
                             
                                 # Updates trait detail display
-                                text_selected_trait = self.engine.get_text_selected_trait(self.engine.trait_catalog[all_learnable_traits[menu_pos][0]])
+                                if all_learnable_traits:
+                                    text_selected_trait = self.engine.get_text_selected_trait(self.engine.trait_catalog[all_learnable_traits[menu_pos][0]])
                     
                     if event.key == K_x:
                         menu_flag = False

Story of a Lost Sky/changelog.txt

 # 8/18/09
+- [Bugfix] Crash when all traits have been learned
 - [Bugfix] On unit deployment unit selection screen, stats were being plotted twice on top of itself
 - [Bugfix] On unit deployment unit placement screen, unit sprites were drawn on top of cursor instead of under
 - [Bugfix][Issue #22] Added in maps for CH2ST1, CH2ST2 which weren't in the repository causing a file not found error

Story of a Lost Sky/readme.txt

     * Artist: Elcura, Jamuko, KirbyM (walfas.org), Water_and_wind
     * Music: ^^flandre^^, Damian, Lego
     * Advisors: Psieye, Tiran, Zer0Axiom, Many others
-    * Testing: Gekko, Deviryuu, J. Szalay, Squidgy
+    * Testing: Gekko, Deviryuu, J. Szalay, Ryuu, Squidgy
     
 This is a doujin work based on Touhou Project by ZUN / Team Shanghai Alice ( http://www16.big.or.jp/~zun/ )
 Several images use Create.swf by KirbyM ( http://www.walfas.org )

Story of a Lost Sky/worldmap_system/worldmap.py

                     
                     # Jumps straight to stats screen
                     if event.key == K_c:
-                        units[selected].wm_stats_loop()
+                        if selected < len(units):
+                            units[selected].wm_stats_loop()
                         
                     if event.key == K_x:
                         menu_flag = False
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.