This commit is contained in:
puxuan 2025-10-22 17:32:13 +08:00
parent 93fd4001ff
commit 6af5bad659
13 changed files with 43 additions and 11 deletions

View File

@ -465,7 +465,7 @@ end
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
DataManager.PlayerData:addAdCount()
BIReport:postAdEvent()

View File

@ -380,6 +380,9 @@ function GFunc.getTaskDesc(taskType, taskTarget)
-- return I18N:getText("task_type", taskType, "desc", grading)
-- local curScore = DataManager.ArenaData:getGradingScore(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
-- 防具副本显示章节和关卡
local cfg = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR):getConfig(taskTarget)

View File

@ -176,6 +176,18 @@ function HeroManager:getSkillRogueDesc(skillId, value)
return I18N:getText("skill_rogue", skillId, "desc", str)
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)
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
if not cfg then

View File

@ -450,11 +450,11 @@ function TaskManager:gotoMainShopUI()
end
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
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
function TaskManager:gotoMainHeroUI()
@ -462,18 +462,30 @@ function TaskManager:gotoMainHeroUI()
end
function TaskManager:gotoSummonUI()
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.SUMMON_OPEN) then
return
end
ModuleManager.SummonManager:showSummonMainUI()
end
function TaskManager:gotoArenaUI()
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ARENA) then
return
end
ModuleManager.ArenaManager:showArenaUI()
end
function TaskManager:gotoDailyChallengeUI()
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.DAILY_CHALLENGE) then
return
end
ModuleManager.DailyChallengeManager:showDailyChallengeUI()
end
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})
end

View File

@ -44,7 +44,7 @@ function TaskComp:refresh(parentUI, day, period)
end)
else
self.rewardCells[id]:hideFrameAnimation()
self.rewardCells[id]:removeClickListener()
self.rewardCells[id]:clearClickListener()
end
end

View File

@ -18,7 +18,7 @@ local SIDE_DEF = GConst.BattleConst.SIDE_DEF
local CacheVector2 = CS.UnityEngine.Vector2(0, 0)
local DEFAULT_X = 10000
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 = {
[8] = true,
[9] = true,

View File

@ -112,7 +112,8 @@ function BattleSkillSelectComp:refreshBtns()
cfgAdCount = GFunc.getConstIntValue("daily_challenge_ads_refresh_rogue_limit")
end
local talentCount = DataManager.TalentData:getSkillRefreshCount()
local adCount = battleController.battleData:getADRefreshSkillCount() + talentCount
cfgAdCount = cfgAdCount + talentCount
local adCount = battleController.battleData:getADRefreshSkillCount()
if cfgAdCount > adCount then
adBtn:setActive(true)
else

View File

@ -81,9 +81,7 @@ function IdleDropUI:onLoadRootComplete()
self.adTimesTx = uiMap["idle_drop_ui.bg.ad_times_tx"]
self.quickTimesTx = uiMap["idle_drop_ui.bg.quick_times_tx"]
self.adBtn:addClickListener(function()
SDKManager:showFullScreenAds(BIReport.ADS_CLICK_TYPE.IDLE_QUICK_DROP, function()
ModuleManager.IdleManager:getIdleQuickRewrad(true)
end)
ModuleManager.IdleManager:getIdleQuickRewrad(true)
end)
self.privilegeBtn = uiMap["idle_drop_ui.bg.privilege_btn"]
self.privilegeBtn:addClickListener(function()

View File

@ -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.bg1:setSprite(GConst.ATLAS_PATH.UI_SUMMON, "summon_card_" .. cfg.qlt)
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.animator:SetTrigger("t_open")
self.baseObject:performWithDelayGlobal(function()

View File

@ -177,6 +177,9 @@ function TaskMainUI:refreshDaily()
end)
elseif DataManager.DailyTaskData:isStageReceived(stageId) then
self.boxBtnSpines[i]:playAnim("idle02", true, false)
item:addClickListener(function()
ModuleManager.TipsManager:showRewardsTips(DataManager.DailyTaskData:getStageReward(stageId), nil, item)
end)
else
self.boxBtnSpines[i]:playAnim("idle01", true, false)
item:addClickListener(function()

View File

@ -56,6 +56,7 @@ function ItemEntity:checkForceLockAndAddNum()
-- local fragmentId = DataManager.ForceData:getForceItemIdByQlt(self:getId())
if heroEntity:getLv() <= 0 then
heroEntity:setLv(1 ,true)
self.data.num = self.data.num - 1
-- BIReport:postForceUnlock(self:getId())
end
-- 不转换万能碎片

View File

@ -74,6 +74,7 @@ function PaymentData:addPayment(rechargeId)
self.data.payAverage = self.data.payTotal / self.data.payTotalCount
self.payCount[rechargeId] = (self.payCount[rechargeId] or 0) + 1
-- DataManager.PlayerData:addPayScore(cfg.score)
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_BUY_ANYONE)
if EDITOR_MODE then
Logger.logHighlight("消费总额:" .. tostring(self:getPayTotal()))

View File

@ -196,7 +196,8 @@ end
--@region 红点
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
function SummonData:hasSummonCost1()