From ebf5a45ea28fa8007d8fd3d26c6a36e86b41a654 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 14 六月 2023 18:17:16 +0800
Subject: [PATCH] 0312 版本同步- 升星成功率,关闭所有界面可能导致副本退出按钮不存在问题
---
System/WindowBase/WindowCenter.cs | 2 +-
System/EquipStar/EquipStarModel.cs | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/System/EquipStar/EquipStarModel.cs b/System/EquipStar/EquipStarModel.cs
index 0e558b3..77c3acf 100644
--- a/System/EquipStar/EquipStarModel.cs
+++ b/System/EquipStar/EquipStarModel.cs
@@ -647,11 +647,11 @@
var isSuit = item.config.SuiteiD > 0;
if (isSuit)
{
- successRate = Mathf.Clamp(Mathf.CeilToInt(config.SuitRate * amendRate), GeneralDefine.suitEquipStarUpgradeRateFloor, GeneralDefine.suitEquipStarUpgradeRateCeiling);
+ successRate = Mathf.Clamp(Mathf.CeilToInt((float)Math.Round(config.SuitRate * amendRate, 2)), GeneralDefine.suitEquipStarUpgradeRateFloor, GeneralDefine.suitEquipStarUpgradeRateCeiling);
}
else
{
- successRate = Mathf.Clamp(Mathf.CeilToInt(config.UnSuitRate * amendRate), GeneralDefine.normalEquipStarUpgradeRateFloor, GeneralDefine.normalEquipStarUpgradeRateCeiling);
+ successRate = Mathf.Clamp(Mathf.CeilToInt((float)Math.Round(config.UnSuitRate * amendRate, 2)), GeneralDefine.normalEquipStarUpgradeRateFloor, GeneralDefine.normalEquipStarUpgradeRateCeiling);
}
return successRate * 0.01f;
diff --git a/System/WindowBase/WindowCenter.cs b/System/WindowBase/WindowCenter.cs
index 7102451..dff297a 100644
--- a/System/WindowBase/WindowCenter.cs
+++ b/System/WindowBase/WindowCenter.cs
@@ -216,7 +216,7 @@
return new List<string>(windows.Keys);
}
- public void CloseAll(CloseAllIgnoreType ignoreType = CloseAllIgnoreType.System)
+ public void CloseAll(CloseAllIgnoreType ignoreType = CloseAllIgnoreType.BaseAndCustom)
{
for (var i = windows.Keys.Count - 1; i >= 0; i--)
{
--
Gitblit v1.8.0