diff --git a/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua b/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua index e4963c2f0d..41c53df872 100644 --- a/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua @@ -178,6 +178,7 @@ function this.GetLv(indexType,value) return list[i].lv - 1,list[i].value end end + return list[#list].lv,list[#list].value end --indexType 1: 获取总好感度属性 2:获取单个神将好感度属性 @@ -420,9 +421,9 @@ function this.SetProvalue(prolist,proType,tag,nextLv,indexType,_color) for k,v in pairs(prolist) do local str1 = "" if proType == 1 then - str1 = PropertyConfig[k].Info..string.format(" +%s",_color,GetPropertyFormatStrOne(PropertyConfig[k].Style, v) ) + str1 = PropertyConfig[k].Info..string.format(" +%s",_color,GetPropertyFormatStrOne(PropertyConfig[k].Style, v) ) if nextLv and list[nextLv] then - local pro1 = LikabilityManager.GetProData(indexType,-1,nextLv) + local pro1 = LikabilityManager.GetProData(indexType,nextLv,nextLv) if pro1[k] and pro1[k] > 0 then str1 = str1.." "..string.format("(下级额外 +%s)",color1,pro1[k]) end