mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复重复溢出数据恢复和不加好感度的错误
This commit is contained in:
parent
2ef3c78916
commit
8a37eb27de
@ -851,6 +851,7 @@ namespace VPet_Simulator.Windows
|
||||
}
|
||||
if (tmp.Data[(gbol)"round"])
|
||||
{//根据游玩时间补偿数据溢出
|
||||
Dispatcher.Invoke(() => MessageBoxX.Show("您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值".Translate(), "数据溢出恢复".Translate()));
|
||||
var totalhour = (int)(tmp.Statistics[(gint)"stat_total_time"] / 3600);//总计游玩时间/小时
|
||||
if (totalhour < 500)
|
||||
{
|
||||
@ -859,9 +860,12 @@ namespace VPet_Simulator.Windows
|
||||
else
|
||||
{
|
||||
double lm = Math.Sqrt(totalhour / 500);
|
||||
tmp.GameSave.LevelMax = (int)lm;
|
||||
tmp.GameSave.LevelMax += (int)lm;
|
||||
tmp.GameSave.Exp += (totalhour % 500 + (lm - (int)lm) * 500) * 200;
|
||||
|
||||
}
|
||||
tmp.GameSave.LikabilityMax += totalhour / 10;
|
||||
tmp.Data[(gbol)"round"] = false;
|
||||
}
|
||||
GameSavesData = tmp;
|
||||
Core.Save = tmp.GameSave;
|
||||
|
@ -51,4 +51,6 @@ theme#Theme:|
|
||||
送客#SendGuest:|
|
||||
已成功连接到访客表#Successfully connected to the Guest List:|
|
||||
好友{0}已退出访客表#Friend {0} has exited the Guest List:|
|
||||
好友{0}已加入访客表#Friend {0} has joined the Guest List:|
|
||||
好友{0}已加入访客表#Friend {0} has joined the Guest List:|
|
||||
您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#You have encountered data overflow before, and the current value has been automatically added according to the game duration:|
|
||||
数据溢出恢复#Data overflow recovery:|
|
@ -51,4 +51,6 @@ theme#主题:|
|
||||
送客#送客:|
|
||||
已成功连接到访客表#已成功连接到访客表:|
|
||||
好友{0}已退出访客表#好友{0}已退出访客表:|
|
||||
好友{0}已加入访客表#好友{0}已加入访客表:|
|
||||
好友{0}已加入访客表#好友{0}已加入访客表:|
|
||||
您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值:|
|
||||
数据溢出恢复#数据溢出恢复:|
|
@ -51,4 +51,6 @@ theme#主題:|
|
||||
送客#送客:|
|
||||
已成功连接到访客表#已成功連接到訪客表:|
|
||||
好友{0}已退出访客表#好友{0}已退出訪客表:|
|
||||
好友{0}已加入访客表#好友{0}已加入訪客表:|
|
||||
好友{0}已加入访客表#好友{0}已加入訪客表:|
|
||||
您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#您以前遭遇過數據溢出, 已根據遊戲時長自動添加進目前數值:|
|
||||
数据溢出恢复#數據溢出恢復:|
|
Loading…
Reference in New Issue
Block a user