mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
commit
ebf9b7b253
1 changed files with 9 additions and 9 deletions
|
@ -50,11 +50,11 @@ namespace ShiftOS.WinForms.Applications
|
|||
{
|
||||
timer1.Start();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void OnSkinLoad()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public bool OnUnload()
|
||||
|
@ -64,7 +64,7 @@ namespace ShiftOS.WinForms.Applications
|
|||
|
||||
public void OnUpgrade()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
// The Dynamic Display
|
||||
|
@ -82,13 +82,13 @@ 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 <= 9)
|
||||
if (SaveSystem.CurrentSave.Codepoints < 10)
|
||||
{
|
||||
Infobox.Show("Not enough Codepoints", "You do not have enough Codepoints to use ShiftLotto!");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (SaveSystem.CurrentSave.Codepoints - (ulong)(codePoints * difficulty) <= 0)
|
||||
if (SaveSystem.CurrentSave.Codepoints < (ulong)(codePoints * difficulty))
|
||||
{
|
||||
Infobox.Show("Not enough Codepoints", "You do not have enough Codepoints to gamble this amount!");
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ namespace ShiftOS.WinForms.Applications
|
|||
// If you win
|
||||
|
||||
// Add Codepoints
|
||||
SaveSystem.TransferCodepointsFrom("shiftlotto", jackpot);
|
||||
SaveSystem.TransferCodepointsFrom("shiftlotto", (ulong)(codePoints * difficulty));
|
||||
|
||||
// Infobox
|
||||
Infobox.Show("YOU WON!", "Good Job! " + jackpot.ToString() + " CP has been added to your account. ");
|
||||
|
@ -122,13 +122,13 @@ namespace ShiftOS.WinForms.Applications
|
|||
// Remove Codepoints
|
||||
SaveSystem.TransferCodepointsToVoid(jackpot);
|
||||
|
||||
|
||||
|
||||
|
||||
// Infobox
|
||||
Infobox.Show("YOU FAILED!", "Sorry! " + jackpot.ToString() + " CP has been removed from your account.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue