Skip to content

Commit

Permalink
修复超模工作计算错误 Fix LorisYounger#185
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisYounger committed Sep 6, 2023
1 parent 9a46bdc commit ad5d40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VPet-Simulator.Windows.Interface/ExtensionFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static bool IsOverLoad(this Work work)
(work.Feeling >= 0 ? 1 : -1) * Math.Pow((work.Type == Work.WorkType.Play ? -1 : 1) * work.Feeling * 2 + 1, 2) / 12) *
(Math.Pow(work.LevelLimit / 2 + 1, 0.5) / 4 + 1) - 0.5;
if (spend <= 0)
return false;
return true;
var get = (work.MoneyBase + work.MoneyLevel * 10) * (work.MoneyLevel + 1) * (1 + work.FinishBonus / 2);
if (work.Type != Work.WorkType.Work)
{
Expand Down

0 comments on commit ad5d40e

Please sign in to comment.