From 6700723aaaa10153a91e620a51e49e88c7cecf76 Mon Sep 17 00:00:00 2001
From: jiaoyangna <3046463818@qq.com>
Date: Fri, 8 Oct 2021 14:31:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E6=84=9F=E5=BA=A60=E7=BA=A7=E6=8C=82?=
=?UTF-8?q?=E6=9C=BA=E6=94=B6=E7=9B=8A=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../~Lua/Modules/Likability/LikabilityManager.lua | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua b/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua
index 74e56415bf..f0f31b75dd 100644
--- a/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua
+++ b/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua
@@ -435,7 +435,13 @@ function this.SetProvalue(prolist,proType,tag,nextLv,indexType,_color)
else
local config = ConfigManager.TryGetConfigDataByKey(ConfigName.PrivilegeTypeConfig,"PrivilegeType",k)
if config then
- str1 = string.format(config.Name,string.format("%s",_color,GetEquipPropertyFormatStr(config.IfFloat, v)))
+ local tempStr = ""
+ if v > 0 then
+ tempStr = GetEquipPropertyFormatStr(config.IfFloat, v)
+ else
+ tempStr = string.format("%d%%", 0)
+ end
+ str1 = string.format(config.Name,string.format("%s",_color,tempStr))
end
end
table.insert(newProList,str1)