From a1685a61a830658c021cae5c23cd0d3355f617a9 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 24 十二月 2025 18:58:36 +0800
Subject: [PATCH] 0312 吞噬界面显示全体属性文字
---
Main/System/HeroUI/HeroGiftEatWin.cs | 2 +-
Main/Config/PartialConfigs/PlayerPropertyConfig.cs | 27 +++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/Main/Config/PartialConfigs/PlayerPropertyConfig.cs b/Main/Config/PartialConfigs/PlayerPropertyConfig.cs
index 5a65d14..401630f 100644
--- a/Main/Config/PartialConfigs/PlayerPropertyConfig.cs
+++ b/Main/Config/PartialConfigs/PlayerPropertyConfig.cs
@@ -106,6 +106,33 @@
}
}
+ public static string GetBaseFullDescription(int id, long value, string format="{0}+{1}")
+ {
+ var config = Get(id);
+ if (config == null)
+ {
+ return string.Empty;
+ }
+ string showName = config.ShowName;
+ if (id == 6 || id == 16)
+ {
+ showName = Language.Get("herocard59");
+ }
+ else if (id == 7 || id == 17)
+ {
+ showName = Language.Get("herocard60");
+ }
+ else if (id == 8 || id == 18)
+ {
+ showName = Language.Get("herocard61");
+ }
+ return string.Format(format, showName, GetValueDescription(id, value));
+ }
+
+
+
+
+
//largeNumFormat 澶ф暟鍊兼牸寮忥細0 榛樿鍘熸暟鍊� 1 鎸変竾鎴栬��(K)鏄剧ず 2 鎸�6浣嶆暟浠ヤ笂锛堟墠杞崲澶ф暟鍊硷紝鏍规嵁鎯呭喌鍙粺涓�璋冩暣锛�
public static string GetValueDescription(int id, long value, int largeNumFormat = 2)
{
diff --git a/Main/System/HeroUI/HeroGiftEatWin.cs b/Main/System/HeroUI/HeroGiftEatWin.cs
index 70ffe29..ba5ca91 100644
--- a/Main/System/HeroUI/HeroGiftEatWin.cs
+++ b/Main/System/HeroUI/HeroGiftEatWin.cs
@@ -71,7 +71,7 @@
for (int i = 0; i < addAttrTexts.Length; i++)
{
int id = PlayerPropertyConfig.basePerAttrs[i];
- addAttrTexts[i].text = PlayerPropertyConfig.GetFullDescription(id, hero.qualityConfig.StarAddPer,
+ addAttrTexts[i].text = PlayerPropertyConfig.GetBaseFullDescription(id, hero.qualityConfig.StarAddPer,
"{0}+" + UIHelper.AppendColor(TextColType.Green, "{1}", true));
}
addGiftTip.SetActive(!hero.IsFullGift());
--
Gitblit v1.8.0