【百宝斋】杂货商店和魂印商店免费次数到达上限的红点加回来——2

dev_chengFeng
zhangqiang 2021-04-21 19:53:13 +08:00
parent 9d773c0532
commit 6e5bec75bf
1 changed files with 13 additions and 2 deletions

View File

@ -1018,9 +1018,20 @@ function this.ShopRefreshRPIsShow(shopType)
if not this.IsActive(shopType) then
return false
end
--新加判断
local isAutoRecover, leftCount = this.IsAutoRecoverCount(shopType)
local shopInfo = this.GetShopInfoByType(shopType)
-- 计算剩余免费次数
if isAutoRecover and shopInfo then
local maxTime = shopInfo.IfManualRefresh[1]
if leftCount >= maxTime then
return true
end
end
return false
-- 商店剩余刷新次数
local leftRefreshCount = this.GetShopLeftRefreshCount(shopType)
return leftRefreshCount > 0
-- local leftRefreshCount = this.GetShopLeftRefreshCount(shopType)
-- return leftRefreshCount > 0
end