aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-11 09:24:15 -0700
committerAShifter <[email protected]>2017-03-11 09:24:15 -0700
commit5a8cb0cdf76d65e096bd9aeda6ee9c6246a31134 (patch)
tree3e6c43952ef7e665b80033e451814dc8b0cd5bce
parentd15965e442a1d29424f2e6f315dae3281154f944 (diff)
downloadshiftos_thereturn-5a8cb0cdf76d65e096bd9aeda6ee9c6246a31134.tar.gz
shiftos_thereturn-5a8cb0cdf76d65e096bd9aeda6ee9c6246a31134.tar.bz2
shiftos_thereturn-5a8cb0cdf76d65e096bd9aeda6ee9c6246a31134.zip
I don't think Michael liked the ShiftLotto limits
so i fixed it - 1 billion limit combined
-rw-r--r--ShiftOS.WinForms/Applications/ShiftLotto.Designer.cs7
-rw-r--r--ShiftOS.WinForms/Applications/ShiftLotto.cs4
2 files changed, 9 insertions, 2 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftLotto.Designer.cs b/ShiftOS.WinForms/Applications/ShiftLotto.Designer.cs
index 943322e..8b43636 100644
--- a/ShiftOS.WinForms/Applications/ShiftLotto.Designer.cs
+++ b/ShiftOS.WinForms/Applications/ShiftLotto.Designer.cs
@@ -129,7 +129,7 @@ namespace ShiftOS.WinForms.Applications
//
this.cpUpDown.Location = new System.Drawing.Point(22, 138);
this.cpUpDown.Maximum = new decimal(new int[] {
- 10000,
+ 1000000,
0,
0,
0});
@@ -150,6 +150,11 @@ namespace ShiftOS.WinForms.Applications
// difUpDown
//
this.difUpDown.Location = new System.Drawing.Point(299, 138);
+ this.difUpDown.Maximum = new decimal(new int[] {
+ 1000,
+ 0,
+ 0,
+ 0});
this.difUpDown.Minimum = new decimal(new int[] {
10,
0,
diff --git a/ShiftOS.WinForms/Applications/ShiftLotto.cs b/ShiftOS.WinForms/Applications/ShiftLotto.cs
index 7acba3e..4b1c983 100644
--- a/ShiftOS.WinForms/Applications/ShiftLotto.cs
+++ b/ShiftOS.WinForms/Applications/ShiftLotto.cs
@@ -81,7 +81,7 @@ namespace ShiftOS.WinForms.Applications
int codePoints = Convert.ToInt32(Math.Round(cpUpDown.Value, 0));
int difficulty = Convert.ToInt32(Math.Round(difUpDown.Value, 0));
- if (SaveSystem.CurrentSave.Codepoints <= 1)
+ if (SaveSystem.CurrentSave.Codepoints <= 9)
{
Infobox.Show("Not enough Codepoints", "You do not have enough Codepoints to use ShiftLotto!");
}
@@ -121,6 +121,8 @@ namespace ShiftOS.WinForms.Applications
// Remove Codepoints
SaveSystem.TransferCodepointsToVoid(jackpot);
+
+
// Infobox
Infobox.Show("YOU FAILED!", "Sorry! " + jackpot.ToString() + " CP has been removed from your account.");
}