修复点击说话不触发成就的bug

This commit is contained in:
ZouJin 2023-10-01 02:45:49 +08:00
parent 9d3970e959
commit e5278e6720
2 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@ namespace VPet_Simulator.Windows
/// <summary> /// <summary>
/// 版本号 /// 版本号
/// </summary> /// </summary>
public int version { get; } = 107; public int version { get; } = 108;
/// <summary> /// <summary>
/// 版本号 /// 版本号
/// </summary> /// </summary>

View File

@ -663,24 +663,24 @@ namespace VPet_Simulator.Windows
{ {
if (rt.Exp > 0) if (rt.Exp > 0)
{ {
GameSavesData.Statistics[(gint)"stat_rt_exp_p"]++; GameSavesData.Statistics[(gint)"stat_say_exp_p"]++;
} }
else else
GameSavesData.Statistics[(gint)"stat_rt_exp_d"]++; GameSavesData.Statistics[(gint)"stat_say_exp_d"]++;
} }
if (rt.Likability != 0) if (rt.Likability != 0)
{ {
if (rt.Likability > 0) if (rt.Likability > 0)
GameSavesData.Statistics[(gint)"stat_rt_like_p"]++; GameSavesData.Statistics[(gint)"stat_say_like_p"]++;
else else
GameSavesData.Statistics[(gint)"stat_rt_like_d"]++; GameSavesData.Statistics[(gint)"stat_say_like_d"]++;
} }
if (rt.Money != 0) if (rt.Money != 0)
{ {
if (rt.Money > 0) if (rt.Money > 0)
GameSavesData.Statistics[(gint)"stat_rt_money_p"]++; GameSavesData.Statistics[(gint)"stat_say_money_p"]++;
else else
GameSavesData.Statistics[(gint)"stat_rt_money_d"]++; GameSavesData.Statistics[(gint)"stat_say_money_d"]++;
} }
Main.Core.Save.EatFood(rt); Main.Core.Save.EatFood(rt);
Main.Core.Save.Money += rt.Money; Main.Core.Save.Money += rt.Money;