forked from Cavemanon/SnootGame
Use the same ending function
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
@ -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):
|
||||||
|
Reference in New Issue
Block a user