Use the same ending function

This commit is contained in:
2021-09-23 09:06:37 +10:00
parent 77dafb05fd
commit ef1293e44a
2 changed files with 3 additions and 10 deletions

View File

@ -14,16 +14,8 @@ init python:
] ]
ex_chapters_menu = ex_chapters.copy() ex_chapters_menu = ex_chapters.copy()
#0b0000, ABCD, flash the bits with |=, check with &
if persistent.endings is None: if persistent.endings is None:
endings = 0b0000 ending_image()
#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
pass pass

View File

@ -1,5 +1,6 @@
init python: init -1 python:
def ending_image(): def ending_image():
#0b0000, ABCD, flash the bits with |=, check with &
endings = 0b0000 endings = 0b0000
_e = 0b1 _e = 0b1
for i in range(1, 5): for i in range(1, 5):