Commit 4bdfcddd authored by Emery Tanghanwaye's avatar Emery Tanghanwaye
Browse files

waterGame: ensure players will fail if they end up in the bad route

parent 78a2f218
......@@ -26,7 +26,7 @@ public class Game : Node2D
private ButtonGroup ButtGroup;
// points counting how many bad choices the player has made
private int BadPoints = 0;
private int BadPoints = 40;
// Basic property for money
public float Money
......@@ -244,7 +244,7 @@ public class Game : Node2D
if (CurrentStage == 5)
{
if (BadPoints >= 20) {
ProfitRate = -ProfitRate;
ProfitRate = -(ProfitRate * 10);
}
else
{
......@@ -296,6 +296,7 @@ public class Game : Node2D
if ((CurrentStage == 5) && (BadPoints >= 20))
{
GoalLabel.Text = "Next Goal: ???";
ProfitRate = -ProfitRate;
}
else
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment