mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
桌宠生日相关统计
This commit is contained in:
parent
8e822cb3ef
commit
a047c906db
@ -499,6 +499,18 @@ namespace VPet_Simulator.Windows
|
||||
}
|
||||
}
|
||||
|
||||
//桌宠生日:第一次启动日期
|
||||
if (GameSavesData.Data.FindLine("birthday") == null)
|
||||
{
|
||||
var sf = new FileInfo(ExtensionValue.BaseDirectory + @"\Setting.lps");
|
||||
if (sf.Exists)
|
||||
{
|
||||
GameSavesData[(gdat)"birthday"] = sf.CreationTime.Date;
|
||||
}
|
||||
else
|
||||
GameSavesData[(gdat)"birthday"] = DateTime.Now.Date;
|
||||
}
|
||||
|
||||
AutoSaveTimer.Elapsed += AutoSaveTimer_Elapsed;
|
||||
|
||||
if (GameSavesData.Statistics[(gdbe)"stat_bb_food"] < 0 || GameSavesData.Statistics[(gdbe)"stat_bb_drink"] < 0 || GameSavesData.Statistics[(gdbe)"stat_bb_drug"] < 0
|
||||
|
Loading…
Reference in New Issue
Block a user