Use the same ending function
This commit is contained in:
parent
77dafb05fd
commit
ef1293e44a
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue