47 lines
930 B
Plaintext
47 lines
930 B
Plaintext
|
|
require("LuaUtil")
|
|
require("TextUtil")
|
|
|
|
BossHandBook = {}
|
|
|
|
local totalCombineValue = 0;
|
|
|
|
function BossHandBook.Start()
|
|
|
|
end
|
|
|
|
function BossHandBook.Update()
|
|
|
|
local combineValue = 0
|
|
if(CS.BossBookPanel._BossDictionary ~= null) then
|
|
for k,v in pairs(CS.BossBookPanel._BossDictionary) do
|
|
if(v.Level > 0) then
|
|
local bossTab = CS.BossBookPanel.GetBossBookTab(v.BossId, v.Level)
|
|
combineValue = combineValue + bossTab.Power
|
|
end
|
|
end
|
|
|
|
for k,v in pairs(CS.BossBookPanel.ActedSuidIDs) do
|
|
print("BossHandBook:"..k..","..v)
|
|
local suitTab = TabMan.GetBossHandBookCombineByID(v)
|
|
combineValue = combineValue + suitTab.Power
|
|
end
|
|
end
|
|
|
|
|
|
|
|
if(totalCombineValue ~= combineValue ) then
|
|
totalCombineValue = combineValue;
|
|
print("BossHandBook:"..combineValue)
|
|
combatText:GetComponent("UIImgText").text = totalCombineValue
|
|
end
|
|
end
|
|
|
|
function BossHandBook.OnDisable()
|
|
|
|
end
|
|
|
|
function BossHandBook.OnEnable()
|
|
|
|
end
|