From 6521aa56fbeba8d6509d5736bd35b1d42dcc4029 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 17 十一月 2025 19:12:37 +0800
Subject: [PATCH] 328 【主界面】坐骑系统

---
 Main/Config/PartialConfigs/PlayerPropertyConfig.cs |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/Main/Config/PartialConfigs/PlayerPropertyConfig.cs b/Main/Config/PartialConfigs/PlayerPropertyConfig.cs
index 80dbebe..412e6f6 100644
--- a/Main/Config/PartialConfigs/PlayerPropertyConfig.cs
+++ b/Main/Config/PartialConfigs/PlayerPropertyConfig.cs
@@ -106,12 +106,13 @@
         }
     }
 
-    public static string GetValueDescription(int id, long value)
+    //largeNumFormat 澶ф暟鍊兼牸寮忥細0 榛樿鍘熸暟鍊� 1 鎸変竾鎴栬��(K)鏄剧ず 2 鎸�6浣嶆暟浠ヤ笂锛堟墠杞崲澶ф暟鍊硷紝鏍规嵁鎯呭喌鍙粺涓�璋冩暣锛�
+    public static string GetValueDescription(int id, long value, int largeNumFormat = 1)
     {
-        return GetValueDescription(id, value, true);
+        return GetValueDescriptionEx(id, value, largeNumFormat);
     }
 
-    public static string GetValueDescription(int id, long value, bool largeValue)
+    public static string GetValueDescriptionEx(int id, long value, int largeNumFormat = 1)
     {
         var config = Get(id);
         if (config == null)
@@ -134,10 +135,21 @@
         }
 
         var label = string.Empty;
-        if (largeValue)
+        if (largeNumFormat == 1)
         {
             label = UIHelper.ReplaceLargeNum(result);
         }
+        else if (largeNumFormat == 2)
+        {
+            if (result > 999999)
+            {
+                label = UIHelper.ReplaceLargeNum(result, 6);
+            }
+            else
+            {
+                label = result.ToString();
+            }
+        }
         else
         {
             label = result.ToString();

--
Gitblit v1.8.0