This commit is contained in:
puxuan 2025-09-23 20:17:16 +08:00
parent f4e02995ad
commit 37237493aa

View File

@ -115,7 +115,7 @@ function TalentData:_updateAllAttr()
local lv = self:getLevels(id) local lv = self:getLevels(id)
if lv and lv > 0 and cfg.attr then if lv and lv > 0 and cfg.attr then
for _, v in ipairs(cfg.attr) do for _, v in ipairs(cfg.attr) do
self.allAttr[v.type] = (self.allAttr[v.type] or 0) + v.num self.allAttr[v.type] = (self.allAttr[v.type] or 0) + v.num * lv
end end
end end
end end