diff options
Diffstat (limited to 'game')
-rw-r--r-- | game/03_init.rpy | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/game/03_init.rpy b/game/03_init.rpy index a8c178e..0740c27 100644 --- a/game/03_init.rpy +++ b/game/03_init.rpy @@ -75,7 +75,7 @@ init python: (0, 0), ExtraImage(path), (0, 0), "gfx/square/%d.png" % r) - def card_composite(cid, path): + def card_composite(cid, path, ei=False): # We need to try to get rarity try: r=allunits[int(cid)]["rare"] @@ -89,12 +89,20 @@ init python: except: e=0 - return Composite( + if not ei: + return Composite( (640, 960), (0, 0), "gfx/cards/bg.png", (0, 0), path, (0, 0), "gfx/cards/"+str(r)+".png", (0, 0), "gfx/cards/ele/"+str(e)+".png") + else: + return Composite( + (640, 960), + (0, 0), "gfx/cards/bg.png", + (0, 0), ExtraImage(path), + (0, 0), "gfx/cards/"+str(r)+".png", + (0, 0), "gfx/cards/ele/"+str(e)+".png") # size,) # TODO: square_ and gfx/square/units @@ -339,7 +347,7 @@ init python: if ext in [".png", ".jpg", ".jpeg", ".gif", ".webp"]: # Maybe it is an unit if img.startswith("unit_"): - new_img(img, card_composite(img.replace("unit_", ""), path[1])) + new_img(img, card_composite(img.replace("unit_", ""), path[1], ei=True), isimage=False) elif img.startswith("square_"): new_img(img, square_composite(img.replace("square_", ""), path[1], ei=True), isimage=False) else: |