From 97c753d8e6014aeefd6d6a47d01f7fcda3e4fbf7 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 10 六月 2019 11:12:26 +0800
Subject: [PATCH] 7179 【前端】【2.0】百分比属性保留X位小数

---
 Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs b/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs
index 0133f8c..fb0ebab 100644
--- a/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs
+++ b/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs
@@ -67,10 +67,10 @@
 
     public static string GetValueDescription(int id, int value)
     {
-        return GetValueDescription(id, value, 1, false);
+        return GetValueDescription(id, value, false);
     }
 
-    public static string GetValueDescription(int id, int value, int decimalCount, bool largeValue)
+    public static string GetValueDescription(int id, int value, bool largeValue)
     {
         var config = Get(id);
         if (config == null)
@@ -85,11 +85,11 @@
         }
         else if (config.ISPercentage == 1)
         {
-            result = (float)Math.Round(value / 100f, decimalCount);
+            result = (float)Math.Round(value / 100f, config.decimalCount);
         }
         else if (config.ISPercentage == 2)
         {
-            result = (float)Math.Round(value / 100f, decimalCount);
+            result = (float)Math.Round(value / 100f, config.decimalCount);
         }
 
         var label = string.Empty;

--
Gitblit v1.8.0