diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-24 19:29:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-24 19:29:39 -0300 |
commit | 985270c0451c5f607bcef5d4e940930439fd8b99 (patch) | |
tree | 6d2e7b02cdb922b788b761392beb380ff05bfb92 | |
parent | 711123e774db392e87016c33a798a9c10687228b (diff) | |
download | client-985270c0451c5f607bcef5d4e940930439fd8b99.tar.gz client-985270c0451c5f607bcef5d4e940930439fd8b99.tar.bz2 client-985270c0451c5f607bcef5d4e940930439fd8b99.tar.xz client-985270c0451c5f607bcef5d4e940930439fd8b99.zip |
Error handling: Ignore errors in victory screen
But I wonder why...
-rw-r--r-- | game/battle.rpy | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/game/battle.rpy b/game/battle.rpy index 4b6d5e0..86831d7 100644 --- a/game/battle.rpy +++ b/game/battle.rpy @@ -29,6 +29,7 @@ init python: label combat: # Implement combat view + $stdout("================= prepare for combat") $ hud_clear() $ show_img("bg battle", False) scene bg battle @@ -151,12 +152,16 @@ label results: expmsg="PLAYER {b}RANK UP!{/b} (Max Ap: %d -> %d)" % (Player["max_ap"]-response["rank"]+1, Player["max_ap"]) # Report screen - renpy.call_screen("msgbox", "Result:\n%s\n\nGp: %d\n%s\nLoot:\n%s" % ( + try: + renpy.call_screen("msgbox", "Result:\n%s\n\nGp: %d\n%s\nLoot:\n%s" % ( _("VICTORY!"), response["gp"], expmsg, "{size=12}"+loot+"{/size}" - )) + )) + except: + stdout("ERROR SHOWING VICTORY BOX") + pass # Update inventory data and restore $ inv=get_inventory() |