Codepoints are now stored in 64-bit signed ints

This commit is contained in:
Michael VanOverbeek 2017-02-16 00:46:33 +00:00
parent 88194888fd
commit ac0fcc6ace
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ namespace ShiftOS.Objects
public class Save
{
public string Username { get; set; }
public int Codepoints { get; set; }
public long Codepoints { get; set; }
public Dictionary<string, bool> Upgrades { get; set; }
public int StoryPosition { get; set; }
public string Language { get; set; }

View file

@ -336,7 +336,7 @@ namespace ShiftOS.Server.WebAdmin
{
if (System.IO.Directory.Exists("saves"))
{
int cp = 0;
long cp = 0;
foreach(var file in System.IO.Directory.GetFiles("saves"))
{

View file

@ -146,7 +146,7 @@ namespace ShiftOS.Server
if (args["username"] != null && args["amount"] != null)
{
string userName = args["username"] as string;
int cpAmount = (int)args["amount"];
long cpAmount = (long)args["amount"];
if (Directory.Exists("saves"))
{