Merge pull request #110 from AShifter/master

I don't think Michael liked ShiftLotto codepoint limits
This commit is contained in:
Rylan 2017-03-12 11:19:49 -04:00 committed by GitHub
commit 11da99a43b
2 changed files with 9 additions and 2 deletions

View file

@ -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,

View file

@ -82,7 +82,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!");
}
@ -122,6 +122,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.");
}