From c1b9603dd61aad06c5a6253ac90d78ba5535df1a Mon Sep 17 00:00:00 2001 From: ZouJin Date: Thu, 14 Sep 2023 20:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=B4=AD=E4=B9=B0=E4=B8=8D?= =?UTF-8?q?=E8=8A=B1=E5=85=89=E9=92=B1=20&=20=E6=B2=A1=E9=92=B1=E6=97=B6?= =?UTF-8?q?=E5=AE=A0=E7=89=A9=E7=BB=99=E4=BD=A0=E7=A7=81=E6=88=BF=E9=92=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.cs | 2 +- .../WinDesign/winBetterBuy.xaml.cs | 20 ++++++++++++++++--- .../mod/0000_core/lang/en/Base2309.lps | 3 +++ .../mod/0000_core/lang/zh-Hans/Base2309.lps | 5 ++++- .../mod/0000_core/lang/zh-Hant/Base2309.lps | 5 ++++- 5 files changed, 29 insertions(+), 6 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index a351d72..0c7f924 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -283,7 +283,7 @@ namespace VPet_Simulator.Windows { if (Set.AutoBuy && Core.Save.Money >= 100) { - var havemoney = Core.Save.Money * 1.2; + var havemoney = Core.Save.Money * 1.2 - 120; List food = Foods.FindAll(x => x.Price >= 2 && x.Health >= 0 && x.Exp >= 0 && x.Likability >= 0 && x.Price < havemoney //桌宠不吃负面的食物 && !x.IsOverLoad() // 不吃超模食物 ); diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs index 0561b65..9a11e86 100644 --- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs @@ -73,6 +73,20 @@ namespace VPet_Simulator.Windows } } } + //没钱了,宠物给你私房钱 (开罗传统) + if (mw.Core.Save.Money <= 1) + { + if (mw.Set.PetData[(gbol)"self"]) + { + MessageBoxX.Show("更好买老顾客大优惠!桌宠的食物钱我来出!\n更好买提示您:$10以下的食物/药品等随便赊账"); + } + else + { + MessageBoxX.Show("看到您囊中羞涩,桌宠拿出了1000块私房钱出来给你"); + mw.Set.PetData[(gbol)"self"] = true; + mw.Core.Save.Money += 1000; + } + } Show(); } @@ -344,7 +358,7 @@ namespace VPet_Simulator.Windows { _puswitchautobuy = sender as Switch; _puswitchautobuy.IsChecked = mw.Set.AutoBuy; - _puswitchautobuy.Click += Switch_AutoBuy_Checked; + _puswitchautobuy.Click += Switch_AutoBuy_Checked; } private void Switch_AutoBuy_Checked(object sender, RoutedEventArgs e) { @@ -361,7 +375,7 @@ namespace VPet_Simulator.Windows } else { - mw.Set.AutoBuy = false; + mw.Set.AutoBuy = false; _puswitchautogift.Visibility = Visibility.Collapsed; } } @@ -377,7 +391,7 @@ namespace VPet_Simulator.Windows } } private void Switch_AutoGift_Checked(object sender, RoutedEventArgs e) - { + { mw.Set.AutoGift = _puswitchautogift.IsChecked.Value; } } diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2309.lps b/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2309.lps index 6364e0b..b1904c7 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2309.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2309.lps @@ -28,3 +28,6 @@ EXP#EXP:| 没有需要提交的翻译的内容#There are no translations that need to be submitted:| 当宠物不开心的时候会自己给自己买礼物\r请注意,宠物可能会乱花钱,而且礼物一般都非常贵\r额外加收20%运送费用#When the pet is unhappy, it will buy gifts for itself\rPlease note that pets may spend money indiscriminately, and gifts are generally very expensive\rAdditional 20% shipping costs:| 让宠物自己买礼物#Let the pet buy gifts for itself:| +按好感度#By favorability:| +更好买老顾客大优惠!桌宠的食物钱我来出!\n更好买提示您:$10以下的食物/药品等随便赊账#Better buy old customers big discounts! I'll pay for the food money of the VPET!\nBetter buy tips you: $10 or less food / medicine, etc. can be charged at will:| +看到您囊中羞涩,桌宠拿出了1000块私房钱出来给你#Seeing that you are shy in your pocket, the VPET took out 1000 yuan of private money to give you:| \ No newline at end of file diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2309.lps b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2309.lps index 8490526..7c4aaf9 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2309.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2309.lps @@ -27,4 +27,7 @@ EXP#EXP:| 我已确认,并在卸载游戏前会关闭该功能#我已确认,并在卸载游戏前会关闭该功能:| 没有需要提交的翻译的内容#没有需要提交的翻译的内容:| 当宠物不开心的时候会自己给自己买礼物\r请注意,宠物可能会乱花钱,而且礼物一般都非常贵\r额外加收20%运送费用#当宠物不开心的时候会自己给自己买礼物\r请注意,宠物可能会乱花钱,而且礼物一般都非常贵\r额外加收20%运送费用:| -让宠物自己买礼物#让宠物自己买礼物:| \ No newline at end of file +让宠物自己买礼物#让宠物自己买礼物:| +按好感度#按好感度:| +更好买老顾客大优惠!桌宠的食物钱我来出!\n更好买提示您:$10以下的食物/药品等随便赊账#更好买老顾客大优惠!桌宠的食物钱我来出!\n更好买提示您:$10以下的食物/药品等随便赊账:| +看到您囊中羞涩,桌宠拿出了1000块私房钱出来给你#看到您囊中羞涩,桌宠拿出了1000块私房钱出来给你:| \ No newline at end of file diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2309.lps b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2309.lps index e74adde..e05377d 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2309.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hant/Base2309.lps @@ -27,4 +27,7 @@ EXP#EXP:| 我已确认,并在卸载游戏前会关闭该功能#我已確認,並在卸載遊戲前會關閉該功能:| 没有需要提交的翻译的内容#沒有需要提交的翻譯的內容:| 当宠物不开心的时候会自己给自己买礼物\r请注意,宠物可能会乱花钱,而且礼物一般都非常贵\r额外加收20%运送费用#當寵物不開心的時候會自己給自己買禮物\r請注意,寵物可能會亂花錢,而且禮物一般都非常貴\r額外加收20%運送費用:| -让宠物自己买礼物#讓寵物自己買禮物:| \ No newline at end of file +让宠物自己买礼物#讓寵物自己買禮物:| +按好感度#按好感度:| +更好买老顾客大优惠!桌宠的食物钱我来出!\n更好买提示您:$10以下的食物/药品等随便赊账#更好買老顧客大優惠!桌寵的食物錢我來出!\n更好買提示您:$10以下的食物/藥品等隨便賒賬:| +看到您囊中羞涩,桌宠拿出了1000块私房钱出来给你#看到您囊中羞澀,桌寵拿出了1000塊私房錢出來給你:| \ No newline at end of file