【主城添加鸿蒙碑升级的红点检测】

dev_chengFeng
guowei 2021-02-20 15:44:09 +08:00 committed by DESKTOP-98AVA47\Administrator
parent 375f27f50e
commit 1e2c5ea7c6
2 changed files with 8 additions and 1 deletions

View File

@ -606,7 +606,7 @@ function this.RefreshUpTowerPoint()
if prop and BagManager.GetTotalItemNum(UpViewRechargeType.Gold) >= prop.LevelUp[1][2] then if prop and BagManager.GetTotalItemNum(UpViewRechargeType.Gold) >= prop.LevelUp[1][2] then
-- body -- body
if BagManager.GetTotalItemNum(UpViewRechargeType.GrowthAmulet) >= prop.LevelUp[2][2] then if BagManager.GetTotalItemNum(UpViewRechargeType.GrowthAmulet) >= prop.LevelUp[2][2] then
print("true") LogGreen("true")
return true return true
end end
@ -620,6 +620,10 @@ function this.RefreshUpTowerPoint()
return false return false
end end
--检测主城红点
function this.CheckRedPoinStatusUpTowerMainCityRed()
CheckRedPointStatus(RedPointType.HongMeng_UpTower)
end
--票战力 --票战力
local oldPowerNum = 0 local oldPowerNum = 0
function this.SetOldPowerNum(did) function this.SetOldPowerNum(did)

View File

@ -1245,6 +1245,9 @@ function this:OnShow()
--检测灵兽红点 --检测灵兽红点
PokemonManager.CheckRedPointStatusPokemonMainCityRed() PokemonManager.CheckRedPointStatusPokemonMainCityRed()
--检测鸿蒙碑红点
HarmonyManager.CheckRedPoinStatusUpTowerMainCityRed()
end end