diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index a05a5f3..de6c27c 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -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; diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2403.lps b/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2403.lps index 7c4c8a1..cfc6994 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2403.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2403.lps @@ -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:| \ No newline at end of file +好友{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:| \ No newline at end of file diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2403.lps b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2403.lps index 674ac4e..785a051 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2403.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2403.lps @@ -51,4 +51,6 @@ theme#主题:| 送客#送客:| 已成功连接到访客表#已成功连接到访客表:| 好友{0}已退出访客表#好友{0}已退出访客表:| -好友{0}已加入访客表#好友{0}已加入访客表:| \ No newline at end of file +好友{0}已加入访客表#好友{0}已加入访客表:| +您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值:| +数据溢出恢复#数据溢出恢复:| \ No newline at end of file diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2403.lps b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2403.lps index b963190..e44bf9b 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2403.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2403.lps @@ -51,4 +51,6 @@ theme#主題:| 送客#送客:| 已成功连接到访客表#已成功連接到訪客表:| 好友{0}已退出访客表#好友{0}已退出訪客表:| -好友{0}已加入访客表#好友{0}已加入訪客表:| \ No newline at end of file +好友{0}已加入访客表#好友{0}已加入訪客表:| +您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#您以前遭遇過數據溢出, 已根據遊戲時長自動添加進目前數值:| +数据溢出恢复#數據溢出恢復:| \ No newline at end of file