对于之前的作弊MOD简单检查

This commit is contained in:
ZouJin 2023-08-26 08:39:13 +10:00
parent 8cab62a81f
commit 1ade2d23cc

View File

@ -371,7 +371,14 @@ namespace VPet_Simulator.Windows
AutoSaveTimer.Elapsed += AutoSaveTimer_Elapsed;
if (Set.AutoSaveInterval > 0)
if(Set.Statistics[(gdbe)"stat_bb_food"] < 0 || Set.Statistics[(gdbe)"stat_bb_drink"] < 0 || Set.Statistics[(gdbe)"stat_bb_drug"] < 0
|| Set.Statistics[(gdbe)"stat_bb_snack"] < 0 || Set.Statistics[(gdbe)"stat_bb_functional"] < 0 || Set.Statistics[(gdbe)"stat_bb_meal"] < 0
|| Set.Statistics[(gdbe)"stat_bb_gift"] < 0)
{
hashCheck = false;
}
if (Set.AutoSaveInterval > 0)
{
AutoSaveTimer.Interval = Set.AutoSaveInterval * 60000;
AutoSaveTimer.Start();