summaryrefslogtreecommitdiff
path: root/game/03_init.rpy
diff options
context:
space:
mode:
Diffstat (limited to 'game/03_init.rpy')
-rw-r--r--game/03_init.rpy25
1 files changed, 21 insertions, 4 deletions
diff --git a/game/03_init.rpy b/game/03_init.rpy
index e6b8ff1..43e67e5 100644
--- a/game/03_init.rpy
+++ b/game/03_init.rpy
@@ -125,7 +125,7 @@ init python:
renpy.image(name, card_composite(fn, file))
dl=dl_search(persistent.allfiles, 0, name)
- if dl is not ERR_INVALID:
+ if dl is ERR_INVALID:
persistent.allfiles.append((name, file))
allfiles.append(name)
continue
@@ -153,7 +153,7 @@ init python:
name = "dialog_"+fn
renpy.image(name, Image(file, yanchor=1.0))
dl=dl_search(persistent.allfiles, 0, name)
- if dl is not ERR_INVALID:
+ if dl is ERR_INVALID:
persistent.allfiles.append((name, file))
allfiles.append(name)
continue
@@ -168,7 +168,7 @@ init python:
name = "bg "+fn
renpy.image(name, Frame(file, 0, 0))
dl=dl_search(persistent.allfiles, 0, name)
- if dl is not ERR_INVALID:
+ if dl is ERR_INVALID:
persistent.allfiles.append((name, file))
allfiles.append(name)
continue
@@ -183,12 +183,29 @@ init python:
name = "summon_"+fn
renpy.image(name, Image(file, yanchor=1.0))
dl=dl_search(persistent.allfiles, 0, name)
- if dl is not ERR_INVALID:
+ if dl is ERR_INVALID:
persistent.allfiles.append((name, file))
allfiles.append(name)
continue
continue
+
+ # Load summon images: "square"
+ for file in renpy.list_files():
+ fn=file.replace('gfx/square/','').replace('/', ' ').replace('.png','').replace('.webp','')
+ if file.startswith('gfx/square/'):
+ if file.endswith('.png') or file.endswith('.webp'):
+ name = "square_"+fn
+ renpy.image(name, Image(file, yanchor=1.0))
+ dl=dl_search(persistent.allfiles, 0, name)
+ if dl is ERR_INVALID:
+ persistent.allfiles.append((name, file))
+ allfiles.append(name)
+ continue
+ continue
+
+
+
def star_write(am):
i, st = 0, ""
while i < am: