Merge branch 'dev_20230725' of http://git.juzugame.com/b6-client/b6-lua into dev_20230725
This commit is contained in:
commit
cda0708069
@ -43,7 +43,6 @@ function DungeonTargetCell:showWeapon()
|
|||||||
|
|
||||||
if weaponData:canFarmChapter(self.dungeonId) and remainTime > 0 then
|
if weaponData:canFarmChapter(self.dungeonId) and remainTime > 0 then
|
||||||
-- 扫荡
|
-- 扫荡
|
||||||
self.isSmash = true
|
|
||||||
self.timeObj:setActive(true)
|
self.timeObj:setActive(true)
|
||||||
self.powerObj:setActive(true)
|
self.powerObj:setActive(true)
|
||||||
self.txBtn:setText(I18N:getGlobalText(I18N.GlobalConst.SMASH))
|
self.txBtn:setText(I18N:getGlobalText(I18N.GlobalConst.SMASH))
|
||||||
@ -68,7 +67,7 @@ function DungeonTargetCell:showWeapon()
|
|||||||
self.btn:setTouchEnable(false)
|
self.btn:setTouchEnable(false)
|
||||||
end
|
end
|
||||||
self.btn:addClickListener(function()
|
self.btn:addClickListener(function()
|
||||||
if self.isSmash then
|
if weaponData:canFarmChapter(self.dungeonId) and remainTime > 0 then
|
||||||
ModuleManager.DungeonWeaponManager:reqSweep(self.dungeonId, self.target)
|
ModuleManager.DungeonWeaponManager:reqSweep(self.dungeonId, self.target)
|
||||||
else
|
else
|
||||||
ModuleManager.DungeonWeaponManager:showMainUI()
|
ModuleManager.DungeonWeaponManager:showMainUI()
|
||||||
@ -88,7 +87,6 @@ function DungeonTargetCell:showArmor()
|
|||||||
|
|
||||||
if armorData:canFarmChapter(self.dungeonId) and remainTime > 0 then
|
if armorData:canFarmChapter(self.dungeonId) and remainTime > 0 then
|
||||||
-- 扫荡
|
-- 扫荡
|
||||||
self.isSmash = true
|
|
||||||
self.timeObj:setActive(true)
|
self.timeObj:setActive(true)
|
||||||
self.powerObj:setActive(true)
|
self.powerObj:setActive(true)
|
||||||
self.txBtn:setText(I18N:getGlobalText(I18N.GlobalConst.SMASH))
|
self.txBtn:setText(I18N:getGlobalText(I18N.GlobalConst.SMASH))
|
||||||
@ -114,7 +112,7 @@ function DungeonTargetCell:showArmor()
|
|||||||
self.btn:setTouchEnable(false)
|
self.btn:setTouchEnable(false)
|
||||||
end
|
end
|
||||||
self.btn:addClickListener(function()
|
self.btn:addClickListener(function()
|
||||||
if self.isSmash then
|
if armorData:canFarmChapter(self.dungeonId) and remainTime > 0 then
|
||||||
ModuleManager.DungeonArmorManager:reqSweep(self.dungeonId, self.target)
|
ModuleManager.DungeonArmorManager:reqSweep(self.dungeonId, self.target)
|
||||||
else
|
else
|
||||||
ModuleManager.DungeonArmorManager:showMainUI()
|
ModuleManager.DungeonArmorManager:showMainUI()
|
||||||
|
|||||||
@ -120,9 +120,9 @@ function HeroDetailUI:onLoadRootComplete()
|
|||||||
self:addEventListener(EventManager.CUSTOM_EVENT.GO_DUNGEON_UI, function()
|
self:addEventListener(EventManager.CUSTOM_EVENT.GO_DUNGEON_UI, function()
|
||||||
self:closeUI()
|
self:closeUI()
|
||||||
end)
|
end)
|
||||||
self:bind(DataManager.BagData.ItemData:getItemById(GConst.ItemConst.ITEM_ID_GOLD), "isDirty", function()
|
self:bind(DataManager.BagData.ItemData, "dirty", function()
|
||||||
self:refreshShow()
|
self:refreshShow()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function HeroDetailUI:updateSide()
|
function HeroDetailUI:updateSide()
|
||||||
|
|||||||
@ -129,6 +129,9 @@ function HeroEntity:setEquipAttrValue(name, value)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function HeroEntity:addEquipAttrValue(name, value)
|
function HeroEntity:addEquipAttrValue(name, value)
|
||||||
|
if self.equipAttr[name] == nil then
|
||||||
|
self.equipAttr[name] = 0
|
||||||
|
end
|
||||||
self.equipAttr[name] = self.equipAttr[name] + value
|
self.equipAttr[name] = self.equipAttr[name] + value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user