From af63daaeaf0dca1935e107e449fa9321ab3d875b Mon Sep 17 00:00:00 2001
From: jiaoyangna <3046463818@qq.com>
Date: Mon, 27 Sep 2021 19:20:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E6=84=9F=E5=BA=A6=E5=88=B0=E8=BE=BE?=
=?UTF-8?q?=E6=9C=80=E5=A4=A7=E5=80=BC=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 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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