From ef1293e44adc0ffdd74552a34e4f32ea2d198c16 Mon Sep 17 00:00:00 2001 From: nutbuster Date: Thu, 23 Sep 2021 09:06:37 +1000 Subject: [PATCH] Use the same ending function --- game/src/extra_chapters_menu.rpy | 10 +--------- game/storyline.rpy | 3 ++- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/game/src/extra_chapters_menu.rpy b/game/src/extra_chapters_menu.rpy index 4701476..55e5529 100644 --- a/game/src/extra_chapters_menu.rpy +++ b/game/src/extra_chapters_menu.rpy @@ -14,16 +14,8 @@ init python: ] ex_chapters_menu = ex_chapters.copy() - #0b0000, ABCD, flash the bits with |=, check with & if persistent.endings is None: - endings = 0b0000 - #seen image for legacy saves/playthroughs, ending image - _e = 0b1 - for i in range(1, 5): - fn = str(i)+"of4.png" - endings |= (_e * renpy.seen_image(fn)) - _e = _e << 0b1 - persistent.endings = endings + ending_image() pass diff --git a/game/storyline.rpy b/game/storyline.rpy index f80610d..fab4826 100644 --- a/game/storyline.rpy +++ b/game/storyline.rpy @@ -1,5 +1,6 @@ -init python: +init -1 python: def ending_image(): + #0b0000, ABCD, flash the bits with |=, check with & endings = 0b0000 _e = 0b1 for i in range(1, 5):