mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
去除工作等级指数
This commit is contained in:
parent
4aa4f4f41b
commit
c6528e1676
@ -232,7 +232,7 @@ namespace VPet_Simulator.Core
|
||||
}
|
||||
if (addhealth > 0)
|
||||
Core.Save.Health += addhealth * TimePass;
|
||||
var addmoney = Math.Max(0, TimePass * (nowwork.MoneyBase * (efficiency) + Math.Pow(Core.Save.Level, 0.75) * nowwork.MoneyLevel * (efficiency - 0.5) * 2));
|
||||
var addmoney = Math.Max(0, nowwork.MoneyBase * (1.500000000 * efficiency - 0.5));
|
||||
if (nowwork.Type == GraphHelper.Work.WorkType.Work)
|
||||
Core.Save.Money += addmoney;
|
||||
else
|
||||
@ -564,7 +564,7 @@ namespace VPet_Simulator.Core
|
||||
else
|
||||
MessageBoxX.Show(LocalizeCore.Translate("您的桌宠 {0} 生病啦,没法进行{1}", Core.Save.Name,
|
||||
work.NameTrans), LocalizeCore.Translate("{0}取消", work.NameTrans));
|
||||
Visibility = Visibility.Collapsed;
|
||||
ToolBar.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -107,11 +107,6 @@ namespace VPet_Simulator.Core
|
||||
[Line(ignoreCase: true)]
|
||||
public string Graph { get; set; }
|
||||
/// <summary>
|
||||
/// 工作盈利/学习等级倍率
|
||||
/// </summary>
|
||||
[Line(ignoreCase: true)]
|
||||
public double MoneyLevel { get; set; }
|
||||
/// <summary>
|
||||
/// 工作盈利/学习基本倍率
|
||||
/// </summary>
|
||||
[Line(ignoreCase: true)]
|
||||
|
@ -28,7 +28,7 @@ namespace VPet_Simulator.Windows.Interface
|
||||
double get = 0;
|
||||
foreach (var lv in WorkCalLevel)
|
||||
{
|
||||
get += (work.MoneyBase + Math.Sqrt(lv) * work.MoneyLevel) * (1 + work.FinishBonus / 2);
|
||||
get += (work.MoneyBase + Math.Sqrt(lv)) * (1 + work.FinishBonus / 2);
|
||||
}
|
||||
get /= WorkCalLevel.Length;
|
||||
if (work.Type != Work.WorkType.Work)
|
||||
|
@ -1564,7 +1564,6 @@ namespace VPet_Simulator.Windows
|
||||
{
|
||||
if (work.IsOverLoad())
|
||||
{
|
||||
work.MoneyLevel = 0.5;
|
||||
work.MoneyBase = 8;
|
||||
if (work.Type == Work.WorkType.Work)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user