forked from Cavemanon/SnootGame
rework ch11 'Breaking Things' route, centralize ending checks
This commit is contained in:
@ -10,3 +10,16 @@ label initstats(anon=0, fang=0, trad=False):
|
||||
$ fangscore = fang
|
||||
$ tradwife = trad
|
||||
return
|
||||
|
||||
|
||||
label get_ending:
|
||||
# To check what ending we're getting, call this label and then check the value of _return
|
||||
# Sensible to have this logic defined in only one place for consistency
|
||||
if anonscore >= 4 and fangscore >= 4:
|
||||
return(4) # Golden
|
||||
elif anonscore >= 3 and fangscore <=4:
|
||||
return(3) # Tradwife
|
||||
elif anonscore <= 3 and fangscore >=3:
|
||||
return(2) # Doomer
|
||||
else:
|
||||
return(1) # Shooter
|
Reference in New Issue
Block a user