Merge branch 'master' into dev_20230809

# Conflicts:
#	lua/app/config/grid_type.lua
#	lua/app/userdata/dungeon/dungeon_armor_entity.lua
This commit is contained in:
xiekaidong 2023-08-08 11:41:34 +08:00
commit a6b05117b7
5 changed files with 17 additions and 4 deletions

View File

@ -2338,7 +2338,7 @@ function BattleBaseController:shuffleBoard(callback)
else else
self.resetList = table.clearOrCreate(self.resetList) self.resetList = table.clearOrCreate(self.resetList)
for posId, entity in pairs(self.battleData:getGridEnties()) do for posId, entity in pairs(self.battleData:getGridEnties()) do
if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() then if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() and not entity:getCantUpset() then
table.insert(self.resetList, entity) table.insert(self.resetList, entity)
end end
end end
@ -2387,7 +2387,7 @@ function BattleBaseController:getShuffleBoardInfo()
end end
local anySkillCount = 0 local anySkillCount = 0
for posId, entity in pairs(self.battleData:getGridEnties()) do for posId, entity in pairs(self.battleData:getGridEnties()) do
if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() then if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() and not entity:getCantUpset() then
if entity:getSkillId() then if entity:getSkillId() then
local skillEntity = self:getSkillEntityBySkillId(entity:getSkillId()) local skillEntity = self:getSkillEntityBySkillId(entity:getSkillId())
local elementType = skillEntity:getPosition() local elementType = skillEntity:getPosition()

View File

@ -67,6 +67,6 @@ HeroConst.SHOW_NODE =
HeroConst.TRIAL_HERO_ID = 34001 -- 花木兰 HeroConst.TRIAL_HERO_ID = 34001 -- 花木兰
HeroConst.TRIAL_HERO_MIN_CHAPTER = 2 HeroConst.TRIAL_HERO_MIN_CHAPTER = 2
HeroConst.TRIAL_HERO_MAX_CHAPTER = 4 HeroConst.TRIAL_HERO_MAX_CHAPTER = 5
return HeroConst return HeroConst

View File

@ -53,11 +53,12 @@ function SideBarDiscountCell:getSpineName()
end end
function SideBarDiscountCell:onClick() function SideBarDiscountCell:onClick()
DataManager.ShopData:markEntranceDiscountRedPoint()
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_SHOP, {page = GConst.ShopConst.PAGE_TYPE.DISCOUNT}) EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_SHOP, {page = GConst.ShopConst.PAGE_TYPE.DISCOUNT})
end end
function SideBarDiscountCell:getIsShowRedPoint() function SideBarDiscountCell:getIsShowRedPoint()
return false return DataManager.ShopData:getEntranceDiscountRedPoint()
end end
return SideBarDiscountCell return SideBarDiscountCell

View File

@ -446,6 +446,10 @@ function BattleGridEntity:getBftcTime()
return self:getGridTypeConfig().bftc_time or 0 return self:getGridTypeConfig().bftc_time or 0
end end
function BattleGridEntity:getCantUpset()
return self:getGridTypeConfig().cant_upset == 1
end
function BattleGridEntity:getEffectSfx() function BattleGridEntity:getEffectSfx()
local sfxName = self:getGridTypeConfig().effect_sfx local sfxName = self:getGridTypeConfig().effect_sfx
if not sfxName then if not sfxName then

View File

@ -980,6 +980,14 @@ function ShopData:markShopDiscountRedPoint()
LocalData:setShopDiscountRedPointTime(today) LocalData:setShopDiscountRedPointTime(today)
end end
function ShopData:getEntranceDiscountRedPoint()
return not self.isClickedDiscount
end
function ShopData:markEntranceDiscountRedPoint()
self.isClickedDiscount = true
end
function ShopData:checkLoginPopInfo() function ShopData:checkLoginPopInfo()
-- 初始化礼包弹出逻辑 -- 初始化礼包弹出逻辑
local actPopUpGifts = self:getPopUpGiftByType(PayManager.PURCHARSE_TYPE.ACT_GIFT) local actPopUpGifts = self:getPopUpGiftByType(PayManager.PURCHARSE_TYPE.ACT_GIFT)