fix bug
This commit is contained in:
parent
93fd4001ff
commit
6af5bad659
@ -465,7 +465,7 @@ end
|
|||||||
|
|
||||||
function SDKManager:adRewradAd(noReport)
|
function SDKManager:adRewradAd(noReport)
|
||||||
-- 看广告
|
-- 看广告
|
||||||
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.AD_WATCH_NUM)
|
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_WATCH_AD)
|
||||||
if not noReport then
|
if not noReport then
|
||||||
DataManager.PlayerData:addAdCount()
|
DataManager.PlayerData:addAdCount()
|
||||||
BIReport:postAdEvent()
|
BIReport:postAdEvent()
|
||||||
|
|||||||
@ -380,6 +380,9 @@ function GFunc.getTaskDesc(taskType, taskTarget)
|
|||||||
-- return I18N:getText("task_type", taskType, "desc", grading)
|
-- return I18N:getText("task_type", taskType, "desc", grading)
|
||||||
-- local curScore = DataManager.ArenaData:getGradingScore(taskTarget)
|
-- local curScore = DataManager.ArenaData:getGradingScore(taskTarget)
|
||||||
return I18N:getText("task_type", taskType, "desc", taskTarget)
|
return I18N:getText("task_type", taskType, "desc", taskTarget)
|
||||||
|
elseif taskType == GConst.TaskConst.TASK_TYPE.X_PASS_CHAPTER then
|
||||||
|
local str = DataManager.ChapterData:getChapterNameXYMode(taskTarget)
|
||||||
|
return I18N:getText("task_type", taskType, "desc", str)
|
||||||
elseif taskType == GConst.TaskConst.TASK_TYPE.X_DUNGEON_ARMOR then
|
elseif taskType == GConst.TaskConst.TASK_TYPE.X_DUNGEON_ARMOR then
|
||||||
-- 防具副本显示章节和关卡
|
-- 防具副本显示章节和关卡
|
||||||
local cfg = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR):getConfig(taskTarget)
|
local cfg = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR):getConfig(taskTarget)
|
||||||
|
|||||||
@ -176,6 +176,18 @@ function HeroManager:getSkillRogueDesc(skillId, value)
|
|||||||
return I18N:getText("skill_rogue", skillId, "desc", str)
|
return I18N:getText("skill_rogue", skillId, "desc", str)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function HeroManager:getSkillRogueDesc2(skillId, value)
|
||||||
|
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
|
||||||
|
if not cfg then
|
||||||
|
return GConst.EMPTY_STRING
|
||||||
|
end
|
||||||
|
local str
|
||||||
|
if cfg.attr then
|
||||||
|
str = GFunc.getFinalBuffValue(cfg.attr.type, value)
|
||||||
|
end
|
||||||
|
return I18N:getText("skill_rogue", skillId, "rougedesc", str)
|
||||||
|
end
|
||||||
|
|
||||||
function HeroManager:getSkillRogueDescEntry(skillId, entry)
|
function HeroManager:getSkillRogueDescEntry(skillId, entry)
|
||||||
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
|
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
|
||||||
if not cfg then
|
if not cfg then
|
||||||
|
|||||||
@ -450,11 +450,11 @@ function TaskManager:gotoMainShopUI()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:gotoMainShopGemUI()
|
function TaskManager:gotoMainShopGemUI()
|
||||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.CHANGE_MAIN_CITY_PAGE, {page = GConst.MainCityConst.BOTTOM_PAGE.SHOP, subType = GConst.ShopConst.MAIN_PAGE_TYPE.GEM_STORE})
|
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_SHOP, {page = GConst.MainCityConst.BOTTOM_PAGE.SHOP, subType = GConst.ShopConst.MAIN_PAGE_TYPE.GEM_STORE})
|
||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:gotoMainShopGoldUI()
|
function TaskManager:gotoMainShopGoldUI()
|
||||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.CHANGE_MAIN_CITY_PAGE, {page = GConst.MainCityConst.BOTTOM_PAGE.SHOP, subType = GConst.ShopConst.MAIN_PAGE_TYPE.GOLD_STORE})
|
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_SHOP, {page = GConst.MainCityConst.BOTTOM_PAGE.SHOP, subType = GConst.ShopConst.MAIN_PAGE_TYPE.GOLD_STORE})
|
||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:gotoMainHeroUI()
|
function TaskManager:gotoMainHeroUI()
|
||||||
@ -462,18 +462,30 @@ function TaskManager:gotoMainHeroUI()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:gotoSummonUI()
|
function TaskManager:gotoSummonUI()
|
||||||
|
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.SUMMON_OPEN) then
|
||||||
|
return
|
||||||
|
end
|
||||||
ModuleManager.SummonManager:showSummonMainUI()
|
ModuleManager.SummonManager:showSummonMainUI()
|
||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:gotoArenaUI()
|
function TaskManager:gotoArenaUI()
|
||||||
|
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ARENA) then
|
||||||
|
return
|
||||||
|
end
|
||||||
ModuleManager.ArenaManager:showArenaUI()
|
ModuleManager.ArenaManager:showArenaUI()
|
||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:gotoDailyChallengeUI()
|
function TaskManager:gotoDailyChallengeUI()
|
||||||
|
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.DAILY_CHALLENGE) then
|
||||||
|
return
|
||||||
|
end
|
||||||
ModuleManager.DailyChallengeManager:showDailyChallengeUI()
|
ModuleManager.DailyChallengeManager:showDailyChallengeUI()
|
||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:gotoTalentUI()
|
function TaskManager:gotoTalentUI()
|
||||||
|
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.TALENT_OPEN) then
|
||||||
|
return
|
||||||
|
end
|
||||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.CHANGE_MAIN_CITY_PAGE, {page = GConst.MainCityConst.BOTTOM_PAGE.COMPANY, companyIdx = 1})
|
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.CHANGE_MAIN_CITY_PAGE, {page = GConst.MainCityConst.BOTTOM_PAGE.COMPANY, companyIdx = 1})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ function TaskComp:refresh(parentUI, day, period)
|
|||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
self.rewardCells[id]:hideFrameAnimation()
|
self.rewardCells[id]:hideFrameAnimation()
|
||||||
self.rewardCells[id]:removeClickListener()
|
self.rewardCells[id]:clearClickListener()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ local SIDE_DEF = GConst.BattleConst.SIDE_DEF
|
|||||||
local CacheVector2 = CS.UnityEngine.Vector2(0, 0)
|
local CacheVector2 = CS.UnityEngine.Vector2(0, 0)
|
||||||
local DEFAULT_X = 10000
|
local DEFAULT_X = 10000
|
||||||
local CACHE_SKILL_POS_1 = {x = 10, y = 360}
|
local CACHE_SKILL_POS_1 = {x = 10, y = 360}
|
||||||
local CACHE_SKILL_POS_2 = {x = 10, y = 420}
|
local CACHE_SKILL_POS_2 = {x = 10, y = 470}
|
||||||
local MAX_LASTSIBLING_TYPE = {
|
local MAX_LASTSIBLING_TYPE = {
|
||||||
[8] = true,
|
[8] = true,
|
||||||
[9] = true,
|
[9] = true,
|
||||||
|
|||||||
@ -112,7 +112,8 @@ function BattleSkillSelectComp:refreshBtns()
|
|||||||
cfgAdCount = GFunc.getConstIntValue("daily_challenge_ads_refresh_rogue_limit")
|
cfgAdCount = GFunc.getConstIntValue("daily_challenge_ads_refresh_rogue_limit")
|
||||||
end
|
end
|
||||||
local talentCount = DataManager.TalentData:getSkillRefreshCount()
|
local talentCount = DataManager.TalentData:getSkillRefreshCount()
|
||||||
local adCount = battleController.battleData:getADRefreshSkillCount() + talentCount
|
cfgAdCount = cfgAdCount + talentCount
|
||||||
|
local adCount = battleController.battleData:getADRefreshSkillCount()
|
||||||
if cfgAdCount > adCount then
|
if cfgAdCount > adCount then
|
||||||
adBtn:setActive(true)
|
adBtn:setActive(true)
|
||||||
else
|
else
|
||||||
|
|||||||
@ -81,9 +81,7 @@ function IdleDropUI:onLoadRootComplete()
|
|||||||
self.adTimesTx = uiMap["idle_drop_ui.bg.ad_times_tx"]
|
self.adTimesTx = uiMap["idle_drop_ui.bg.ad_times_tx"]
|
||||||
self.quickTimesTx = uiMap["idle_drop_ui.bg.quick_times_tx"]
|
self.quickTimesTx = uiMap["idle_drop_ui.bg.quick_times_tx"]
|
||||||
self.adBtn:addClickListener(function()
|
self.adBtn:addClickListener(function()
|
||||||
SDKManager:showFullScreenAds(BIReport.ADS_CLICK_TYPE.IDLE_QUICK_DROP, function()
|
ModuleManager.IdleManager:getIdleQuickRewrad(true)
|
||||||
ModuleManager.IdleManager:getIdleQuickRewrad(true)
|
|
||||||
end)
|
|
||||||
end)
|
end)
|
||||||
self.privilegeBtn = uiMap["idle_drop_ui.bg.privilege_btn"]
|
self.privilegeBtn = uiMap["idle_drop_ui.bg.privilege_btn"]
|
||||||
self.privilegeBtn:addClickListener(function()
|
self.privilegeBtn:addClickListener(function()
|
||||||
|
|||||||
@ -30,7 +30,7 @@ function SummonRewardCell:refresh(reward, index, parentUI)
|
|||||||
self.bg:setSprite(GConst.ATLAS_PATH.ICON_HERO_SUMMON, "summon_card_b_" .. cfg.qlt)
|
self.bg:setSprite(GConst.ATLAS_PATH.ICON_HERO_SUMMON, "summon_card_b_" .. cfg.qlt)
|
||||||
self.bg1:setSprite(GConst.ATLAS_PATH.UI_SUMMON, "summon_card_" .. cfg.qlt)
|
self.bg1:setSprite(GConst.ATLAS_PATH.UI_SUMMON, "summon_card_" .. cfg.qlt)
|
||||||
self.txName:setText(ModuleManager.HeroManager:getHeroName(reward.item.id))
|
self.txName:setText(ModuleManager.HeroManager:getHeroName(reward.item.id))
|
||||||
self.txCount:setText("x" .. reward.item.count)
|
-- self.txCount:setText("x" .. reward.item.count)
|
||||||
self:getBaseObject():setActive(true)
|
self:getBaseObject():setActive(true)
|
||||||
self.animator:SetTrigger("t_open")
|
self.animator:SetTrigger("t_open")
|
||||||
self.baseObject:performWithDelayGlobal(function()
|
self.baseObject:performWithDelayGlobal(function()
|
||||||
|
|||||||
@ -177,6 +177,9 @@ function TaskMainUI:refreshDaily()
|
|||||||
end)
|
end)
|
||||||
elseif DataManager.DailyTaskData:isStageReceived(stageId) then
|
elseif DataManager.DailyTaskData:isStageReceived(stageId) then
|
||||||
self.boxBtnSpines[i]:playAnim("idle02", true, false)
|
self.boxBtnSpines[i]:playAnim("idle02", true, false)
|
||||||
|
item:addClickListener(function()
|
||||||
|
ModuleManager.TipsManager:showRewardsTips(DataManager.DailyTaskData:getStageReward(stageId), nil, item)
|
||||||
|
end)
|
||||||
else
|
else
|
||||||
self.boxBtnSpines[i]:playAnim("idle01", true, false)
|
self.boxBtnSpines[i]:playAnim("idle01", true, false)
|
||||||
item:addClickListener(function()
|
item:addClickListener(function()
|
||||||
|
|||||||
@ -56,6 +56,7 @@ function ItemEntity:checkForceLockAndAddNum()
|
|||||||
-- local fragmentId = DataManager.ForceData:getForceItemIdByQlt(self:getId())
|
-- local fragmentId = DataManager.ForceData:getForceItemIdByQlt(self:getId())
|
||||||
if heroEntity:getLv() <= 0 then
|
if heroEntity:getLv() <= 0 then
|
||||||
heroEntity:setLv(1 ,true)
|
heroEntity:setLv(1 ,true)
|
||||||
|
self.data.num = self.data.num - 1
|
||||||
-- BIReport:postForceUnlock(self:getId())
|
-- BIReport:postForceUnlock(self:getId())
|
||||||
end
|
end
|
||||||
-- 不转换万能碎片
|
-- 不转换万能碎片
|
||||||
|
|||||||
@ -74,6 +74,7 @@ function PaymentData:addPayment(rechargeId)
|
|||||||
self.data.payAverage = self.data.payTotal / self.data.payTotalCount
|
self.data.payAverage = self.data.payTotal / self.data.payTotalCount
|
||||||
self.payCount[rechargeId] = (self.payCount[rechargeId] or 0) + 1
|
self.payCount[rechargeId] = (self.payCount[rechargeId] or 0) + 1
|
||||||
-- DataManager.PlayerData:addPayScore(cfg.score)
|
-- DataManager.PlayerData:addPayScore(cfg.score)
|
||||||
|
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_BUY_ANYONE)
|
||||||
|
|
||||||
if EDITOR_MODE then
|
if EDITOR_MODE then
|
||||||
Logger.logHighlight("消费总额:" .. tostring(self:getPayTotal()))
|
Logger.logHighlight("消费总额:" .. tostring(self:getPayTotal()))
|
||||||
|
|||||||
@ -196,7 +196,8 @@ end
|
|||||||
|
|
||||||
--@region 红点
|
--@region 红点
|
||||||
function SummonData:hasSummonCostRedPoint()
|
function SummonData:hasSummonCostRedPoint()
|
||||||
return self:hasSummonFree(1) or self:hasSummonFree(2) or self:hasSummonCost1() or self:hasSummonCost2()
|
-- return self:hasSummonFree(1) or self:hasSummonFree(2) or self:hasSummonCost1() or self:hasSummonCost2()
|
||||||
|
return self:hasSummonFree(1) or self:hasSummonCost1()
|
||||||
end
|
end
|
||||||
|
|
||||||
function SummonData:hasSummonCost1()
|
function SummonData:hasSummonCost1()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user