Update - 1.13.0.124
EN: 1.13.0.124 CN: 1.13.0.124 JP: 1.13.0.128 KR: 1.13.0.130
This commit is contained in:
@@ -105,9 +105,9 @@ end
|
||||
function TowerDefenseCharacterDetailCtrl:RefreshInfoData()
|
||||
local nEntityId = self.TowerdefenseLevelData:GetCharacterEntityId(self.nSelectedId)
|
||||
local Info = AdventureModuleHelper.GetEntityInfo(nEntityId)
|
||||
local atk = Info ~= nil and Info.atk or 0
|
||||
local atk = Info ~= nil and Info.atk:AsFloat() or 0
|
||||
NovaAPI.SetTMPText(self._mapNode.txt_attackValue, tostring(atk))
|
||||
local atkSpeed = Info ~= nil and Info.normalAttackSpd or 0
|
||||
local atkSpeed = Info ~= nil and Info.normalAttackSpd:AsFloat() or 0
|
||||
atkSpeed = clearFloat(atkSpeed)
|
||||
NovaAPI.SetTMPText(self._mapNode.txt_AttackSpeedValue, FormatEffectValue(atkSpeed, true, GameEnum.ValueFormat.TDP))
|
||||
local config = ConfigTable.GetData("TowerDefenseCharacter", self.nSelectedId)
|
||||
|
||||
@@ -98,7 +98,15 @@ function TowerDefenseQuestCtrl:SetData(nActId, bIsSubPanel)
|
||||
table.sort(self.tbGroup, function(a, b)
|
||||
return a < b
|
||||
end)
|
||||
self.nSelecedGroupId = self.tbGroup[1]
|
||||
local nSelectIndex = 1
|
||||
for i, v in ipairs(self.tbGroup) do
|
||||
local bRed = RedDotManager.GetValid(RedDotDefine.Activity_TowerDefense_QuestGroup, {v})
|
||||
if bRed then
|
||||
nSelectIndex = i
|
||||
break
|
||||
end
|
||||
end
|
||||
self.nSelecedGroupId = self.tbGroup[nSelectIndex]
|
||||
self._mapNode.Group_loop_sv:Init(#self.tbGroup, self, self.OnRefreshGroupGrid)
|
||||
self:UpdateQuestList(self.nSelecedGroupId)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user