Testing endGame. Added .game object ref to end dialog, and deleted game.turn part of #grow if-else statement. Game over dialog now triggers, but only AFTER maxturn has been reached. WIP
Changed game.gameOver to true at game.maxturn -1
Move all end_results dialog commands to endGame. Trigger gameOver = true using addTurn, at maxturn-2 turns. This ensures that by maxturn-1, when the game is over, the end dialog is triggered using setTimeout.
Small type corrections to end_dialog, removed 'Real' from dollars h4.
Restored results dialogs, added parseInt to #weather_outcome which shows gameweather
Changed all strings cropA and cropB to crop A and crop B, with space, so they show up better in results dialogs.
Changed weatherResults (var holding discrete weather results string) to weatherReport for consistency with continuous version
Added commented labels to help organize weatherResults function. Moved jquery code to populate spans to top of displayResultsDialog.
Remove gameVersionObject parameter from updateGame - wasn't working. Instead, use if-else statement to decide values of bonuses.
added prefix game. to bonus dollars in bonus dialogs code block
Moved function call to updateContinuous to end of each if-else statement. Weather Report now works in results dialog. AWESOME.