Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs
@@ -27,4 +27,29 @@ m_PropCfgs.TryGetValue(type, out list); return list; } public static string GetPropertyDescription(int propertyId, int value) { var config = Get(propertyId); if (config == null) { return string.Empty; } if (config.ISPercentage == 0) { return value.ToString(); } else if (config.ISPercentage == 1) { return (float)Math.Round(value / 100f, 1) + "%"; } else if (config.ISPercentage == 2) { return ((float)Math.Round(value / 100f, 1)).ToString(); } return string.Empty; } }