mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
Revent 修复最高有效度为50%的bug
This commit is contained in:
parent
d38dd1a58e
commit
fa2c40e97a
@ -628,11 +628,11 @@ namespace VPet_Simulator.Windows
|
|||||||
}
|
}
|
||||||
double eatuseps;
|
double eatuseps;
|
||||||
if (item.Type == FoodType.Gift)
|
if (item.Type == FoodType.Gift)
|
||||||
eatuseps = Math.Max(0.5, 1 - Math.Pow((eattime - now).TotalHours, 2) * 0.01);
|
eatuseps = Math.Max(0.5, 1 - eattimes * eattimes * 0.01);
|
||||||
else
|
else
|
||||||
eatuseps = Math.Max(0.5, 1 - Math.Pow((eattime - now).TotalHours, 2) * 0.02);
|
eatuseps = Math.Max(0.5, 1 - eattimes * eattimes * 0.02);
|
||||||
//开始加点
|
//开始加点
|
||||||
Core.Save.EatFood(item, Math.Min(0.5, eatuseps));
|
Core.Save.EatFood(item, eatuseps);
|
||||||
//吃腻了
|
//吃腻了
|
||||||
eattimes += Math.Max(0.5, Math.Min(4, 2 - (item.Likability + item.Feeling / 2) / 5));
|
eattimes += Math.Max(0.5, Math.Min(4, 2 - (item.Likability + item.Feeling / 2) / 5));
|
||||||
GameSavesData["buytime"].SetDateTime(item.Name, now.AddHours(eattimes));
|
GameSavesData["buytime"].SetDateTime(item.Name, now.AddHours(eattimes));
|
||||||
|
Loading…
Reference in New Issue
Block a user