Skip to content

Commit

Permalink
Fix if we have followups don't end the game yet
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-sys committed Mar 28, 2020
1 parent c7a78a1 commit 7da56da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class App extends React.Component<IProps, IState> {
if (choice.minigame === "") {
this.state.playerStats.applyStatChanges(choice.statChanges, choice.dlogo);

if (this.state.week > App.maxWeeks) {
if (choice.followUp === "" && this.state.week > App.maxWeeks) {
if (this.state.playerStats.getGpa() >= 1.0) {
// Winning condition
this.state.eventTracker.queueFollowUpEvent(
Expand Down

0 comments on commit 7da56da

Please sign in to comment.