Really you long-ass nerd, Michael...

This commit is contained in:
Michael VanOverbeek 2017-05-30 00:20:19 +00:00
parent b35e50e7ef
commit c6e3d0e905
2 changed files with 4 additions and 4 deletions

View file

@ -111,7 +111,7 @@ namespace ShiftOS.Server
break;
}
sve.Codepoints = rnd.Next(startCP, maxAmt);
sve.Codepoints = (ulong)rnd.Next(startCP, maxAmt);
//FS treasure generation.
/*

View file

@ -288,7 +288,7 @@ namespace ShiftOS.Server
{
args["username"] = args["username"].ToString().ToLower();
string userName = args["username"] as string;
long cpAmount = (long)args["amount"];
ulong cpAmount = (ulong)args["amount"];
if (Directory.Exists("saves"))
{
@ -322,7 +322,7 @@ namespace ShiftOS.Server
args["username"] = args["username"].ToString().ToLower();
string userName = args["username"] as string;
string passw = args["password"] as string;
int cpAmount = (int)args["amount"];
ulong cpAmount = (ulong)args["amount"];
if (Directory.Exists("saves"))
{
@ -335,7 +335,7 @@ namespace ShiftOS.Server
WriteEncFile(saveFile, JsonConvert.SerializeObject(saveFileContents, Formatting.Indented));
Program.ClientDispatcher.Broadcast("update_your_cp", new {
username = userName,
amount = -cpAmount
amount = -(long)cpAmount
});
Program.ClientDispatcher.DispatchTo("update_your_cp", guid, new
{