rework ch11 'Breaking Things' route, centralize ending checks

This commit is contained in:
2021-08-21 13:27:58 +01:00
parent d35a7f0437
commit f7b81d2b72
4 changed files with 192 additions and 67 deletions

View File

@ -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