好感度0级挂机收益显示错误修改

dev_chengFeng
jiaoyangna 2021-10-08 14:31:28 +08:00
parent ce39857111
commit 6700723aaa
1 changed files with 7 additions and 1 deletions

View File

@ -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("<color=#%s>%s</color>",_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("<color=#%s>%s</color>",_color,tempStr))
end
end
table.insert(newProList,str1)