| | |
| | | if gridNum in notifyGridNumList and notifyKeyDict:
|
| | | notifyKey = notifyKeyDict.get(gridNum, notifyKeyDict.get(0, ""))
|
| | | if itemObj.GetType() == ChConfig.Def_ItemType_Hero:
|
| | | if PlayerHero.GetHeroActivite(curPlayer, itemID):
|
| | | if treasureType in TreasureType_HeroCallList and PlayerHero.GetHeroActivite(curPlayer, itemID):
|
| | | notifyKey = ""
|
| | | GameWorld.DebugLog("招募武将非首次获得的不广播了! itemID=%s" % itemID, playerID)
|
| | | elif notifyKey:
|
| | |
| | | GameWorld.DebugLog(" 公共免费心愿次数! gridNum=%s,wishLibID=%s,preOutTotal=%s,canFreeCnt=%s"
|
| | | % (gridNum, wishLibID, preOutTotal, canFreeCnt), playerID)
|
| | |
|
| | | if preOutTotal >= canFreeCnt:
|
| | | if treasureType in TreasureType_HeroCallList and PlayerGoldInvest.GetInvestState(curPlayer, ChConfig.InvestType_Month):
|
| | | GameWorld.DebugLog(" 月卡特权心愿免费")
|
| | | elif preOutTotal >= canFreeCnt:
|
| | | if not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TreasureWishUseItem % (treasureType, wishLibID)):
|
| | | GameWorld.DebugLog(" 玩家心愿卡未启用,走默认随机规则! gridNum=%s,wishLibID=%s" % (gridNum, wishLibID), playerID)
|
| | | return
|