workarounds to custom error

This commit is contained in:
Jacoder23 2024-04-15 06:23:38 +08:00
parent 0868bfbeb7
commit bc0041c987
1 changed files with 27 additions and 11 deletions

View File

@ -1916,8 +1916,10 @@ label start:
$ next_label = "classroom" $ next_label = "classroom"
jump day_transition jump day_transition
else: else:
"Day is currently set to [day]. This should be impossible. You've likely encountered a bug." "Day is currently set to [day]. This should be impossible. You've likely encountered a bug. Doing workaround..."
$ raise Exception("Impossible day " + day + " for location") $ day = 0
jump
$ raise Exception("Impossible day " + str(day) + " for location")
return return
label classroom: label classroom:
@ -2334,8 +2336,10 @@ label start:
jump hallway jump hallway
return return
else: else:
"Day is currently set to [day]. This should be impossible. You've likely encountered a bug." "Day is currently set to [day]. This should be impossible. You've likely encountered a bug. Doing workaround..."
$ raise Exception("Impossible day " + day + " for location") $ day = 1
jump classroom
$ raise Exception("Impossible day " + str(day) + " for location")
return return
# TODO: SKIPPING THE YUUKA PART OF THE STAGE DIRECTIONS IN THIS AREA FOR NOW # TODO: SKIPPING THE YUUKA PART OF THE STAGE DIRECTIONS IN THIS AREA FOR NOW
@ -4749,6 +4753,8 @@ label faculty:
show alice angry show alice angry
alice "Right. Forgiving." alice "Right. Forgiving."
jump exam_cancel_check
"The students": "The students":
yuuka "Thinking about it, I don't even need to talk to the teachers do I?" yuuka "Thinking about it, I don't even need to talk to the teachers do I?"
@ -4786,6 +4792,8 @@ label faculty:
show yuuka amused show yuuka amused
yuuka "Stick in a mud as usual, Alice. Don't worry, I'll handle everything." yuuka "Stick in a mud as usual, Alice. Don't worry, I'll handle everything."
jump exam_cancel_check
else: else:
show yuuka neutral show yuuka neutral
@ -4930,8 +4938,10 @@ label faculty:
jump hallway jump hallway
else: else:
"Day is currently set to [day]. This should be impossible. You've likely encountered a bug." "Day is currently set to [day]. This should be impossible. You've likely encountered a bug. Doing workaround..."
$ raise Exception("Impossible day " + day + " for location") $ day = 2
jump faculty
$ raise Exception("Impossible day " + str(day) + " for location")
return return
label exam: label exam:
@ -5099,8 +5109,10 @@ label exam:
jump penultimate_presentation jump penultimate_presentation
else: else:
"Day is currently set to [day]. This should be impossible. You've likely encountered a bug." "Day is currently set to [day]. This should be impossible. You've likely encountered a bug. Doing workaround..."
$ raise Exception("Impossible day " + day + " for location") $ day = 3
jump exam
$ raise Exception("Impossible day " + str(day) + " for location")
return return
label penultimate_presentation: label penultimate_presentation:
@ -5722,8 +5734,10 @@ label penultimate_presentation:
jump ending jump ending
else: else:
"Day is currently set to [day]. This should be impossible. You've likely encountered a bug." "Day is currently set to [day]. This should be impossible. You've likely encountered a bug. Doing workaround..."
$ raise Exception("Impossible day " + day + " for location") $ day = 4
jump penultimate_presentation
$ raise Exception("Impossible day " + str(day) + " for location")
return return
label finale: label finale:
@ -6224,12 +6238,14 @@ label day_transition:
# TODO: Test if this works in this context and still lets us time travel out # TODO: Test if this works in this context and still lets us time travel out
show text "There's nothing here. RETURN to where you came."
jump pause_loop jump pause_loop
return return
else: else:
"Day is currently set to [day]. This should be impossible. You've likely encountered a bug." "Day is currently set to [day]. This should be impossible. You've likely encountered a bug."
$ raise Exception("Impossible day " + day + " for location") $ raise Exception("Impossible day " + str(day) + " for location")
return return
$ renpy.jump(next_label) $ renpy.jump(next_label)