diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-08-06 20:14:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-08-06 20:14:53 -0300 |
commit | bfc900505ff81f497efa5c9bcac07087e95d8881 (patch) | |
tree | 0266af9617c580f540363392071d58fd532843d3 /game/03_init.rpy | |
parent | a209d1487599c55ff3803512a2c3f839258aacbc (diff) | |
download | client-bfc900505ff81f497efa5c9bcac07087e95d8881.tar.gz client-bfc900505ff81f497efa5c9bcac07087e95d8881.tar.bz2 client-bfc900505ff81f497efa5c9bcac07087e95d8881.tar.xz client-bfc900505ff81f497efa5c9bcac07087e95d8881.zip |
Clean up the code from previous commit. For short, allunits was not initialized.
It is not initialized to load the main hero, but should be initalized for others.
Diffstat (limited to 'game/03_init.rpy')
-rw-r--r-- | game/03_init.rpy | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/game/03_init.rpy b/game/03_init.rpy index 33ab838..4364737 100644 --- a/game/03_init.rpy +++ b/game/03_init.rpy @@ -59,7 +59,7 @@ init python: try: r=allunits[int(cid)]["rare"] except: - r=8 # FIXME: Also, is allunits already initialized? + r=8 # allunits probably unitialized # We need to try to get the element try: @@ -87,14 +87,8 @@ init python: # We need to try to get rarity try: r=allunits[int(cid)]["rare"] - except NameError: # allunits is not yet defined - r=8 - print("WARNING: %s %s %d without allunits" % (str(cid), path, ei)) except: - r=8 # FIXME: Also, is allunits already initialized? - print("CC %s %s %d" % (str(cid), path, ei)) - #traceback.print_stack() - #traceback.print_exc() + r=8 # allunits probably unitialized # We need to try to get the element try: @@ -180,7 +174,7 @@ init python: continue - # Load sprite images: "unit" (FIXME: Unitialized) + # Load sprite images: "unit" (XXX: Unitialized - rarity not shown) for file in renpy.list_files(): fn=file.replace('gfx/units/','').replace('/', ' ').replace('.png','').replace('.webp','') if file.startswith('gfx/units/'): @@ -255,7 +249,7 @@ init python: continue - # Load summon images: "square" (FIXME unitialized) + # Load summon images: "square" (XXX: Unitialized - rarity not shown) for file in renpy.list_files(): fn=file.replace('gfx/square/','').replace('/', ' ').replace('.png','').replace('.webp','') if file.startswith('gfx/square/'): |