工作等级获取速率限制

This commit is contained in:
ZouJin 2023-09-13 17:29:45 +08:00
parent c1d9eb6770
commit 5858fd0bbb
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,8 @@ namespace VPet_Simulator.Windows.Interface
var rel = get / spend; var rel = get / spend;
if (rel < 0) if (rel < 0)
return true; return true;
if (Math.Abs(get) > (work.LevelLimit + 4) * 5) //等级获取速率限制
return true;
return rel > 2; // 推荐rel为1.0-1.4之间 超过2.0就是超模 return rel > 2; // 推荐rel为1.0-1.4之间 超过2.0就是超模
} }
} }

View File

@ -315,7 +315,7 @@ namespace VPet_Simulator.Windows
TakeItem(item); TakeItem(item);
Main.Display(item.GetGraph(), item.ImageSource, Main.DisplayToNomal); Main.Display(item.GetGraph(), item.ImageSource, Main.DisplayToNomal);
} }
else if (Core.Save.Feeling < 50) else if (Set.AutoGift && Core.Save.Feeling < 50)
{ {
food = food.FindAll(x => x.Type == Food.FoodType.Gift && x.Feeling > 10); food = food.FindAll(x => x.Type == Food.FoodType.Gift && x.Feeling > 10);
if (food.Count == 0) if (food.Count == 0)