yyl
2026-02-09 5a4e34c8a85737c0fa5b5775122da31155cbaef3
Main/Config/PartialConfigs/PlayerPropertyConfig.cs
@@ -81,6 +81,7 @@
        return GetFullDescription(property.x, property.y);
    }
    // 获取属性全描述,包括属性名和属性值 参考格式 string format = "{0}" + UIHelper.AppendColor(TextColType.Green, "+{1}");
    public static string GetFullDescription(int id, long value, string format="{0}+{1}")
    {
        var config = Get(id);
@@ -106,13 +107,47 @@
        }
    }
    //largeNumFormat 大数值格式:0 默认原数值 1 按万或者(K)显示 2 按6位数以上(才转换大数值,根据情况可统一调整)
    public static string GetValueDescription(int id, long value, int largeNumFormat = 1)
    //基础属性描述
    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位数以上(才转换大数值,根据情况可统一调整)3 超过亿缩写
    public static string GetValueDescription(int id, long value, int largeNumFormat = 2)
    {
        return GetValueDescriptionEx(id, value, largeNumFormat);
    }
    public static string GetValueDescriptionEx(int id, long value, int largeNumFormat = 1)
    //带格式
    public static string GetValueDescriptionFormat(int id, long value, int largeNumFormat = 2, string format="+{0}")
    {
        return string.Format(format, GetValueDescriptionEx(id, value, largeNumFormat));
    }
    static string GetValueDescriptionEx(int id, long value, int largeNumFormat = 2)
    {
        var config = Get(id);
        if (config == null)
@@ -143,7 +178,18 @@
        {
            if (result > 999999)
            {
                label = UIHelper.ReplaceLargeNum(result, 6);
                label = UIHelper.ReplaceLargeNum(result);
            }
            else
            {
                label = result.ToString();
            }
        }
        else if (largeNumFormat == 3)
        {
            if (result > 100000000)
            {
                label = UIHelper.ReplaceLargeNum(result);
            }
            else
            {