【百宝斋】杂货商店和魂印商店免费次数到达上限的红点加回来——2
parent
9d773c0532
commit
6e5bec75bf
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue