修复最高有效度为50%的bug

This commit is contained in:
ZouJin 2024-04-18 22:32:34 +08:00
parent 11e3215bef
commit 2c4f5f9f71

View File

@ -632,7 +632,7 @@ namespace VPet_Simulator.Windows
else
eatuseps = Math.Max(0.5, 1 - Math.Pow((eattime - now).TotalHours, 2) * 0.02);
//开始加点
Core.Save.EatFood(item, Math.Max(0.5, eatuseps));
Core.Save.EatFood(item, Math.Min(0.5, eatuseps));
//吃腻了
eattimes += Math.Max(0.5, Math.Min(4, 2 - (item.Likability + item.Feeling / 2) / 5));
GameSavesData["buytime"].SetDateTime(item.Name, now.AddHours(eattimes));