| | |
| | | #-------------------------------------------------------------------------------
|
| | |
|
| | | import GameWorld
|
| | | import PlayerRune
|
| | | import IPY_GameWorld
|
| | | import IpyGameDataPY
|
| | | import FormulaControl
|
| | |
| | | # 通知前端
|
| | | sendPack = ChPyNetSendPack.tagMCTreasureResult()
|
| | | sendPack.Clear()
|
| | | sendPack.TreasureType = treasureType
|
| | | sendPack.TreasureIndex = treasureIndex
|
| | | sendPack.CostType = costType
|
| | | sendPack.AddMoneyType = addScoreType
|
| | | sendPack.AddMoneyValue = addScore
|
| | | sendPack.AddTreasureLuck = addLuck
|
| | |
| | | return
|
| | | if heroIpyData.GetRecruitBySelf() and not PlayerHero.GetHeroActivite(curPlayer, itemID):
|
| | | GameWorld.DebugLog("武将未激活不产出! itemID=%s" % itemID, playerID)
|
| | | return
|
| | | |
| | | elif itemData.GetType() == ChConfig.Def_ItemType_Rune:
|
| | | if not PlayerRune.GetIsOpenByRuneID(curPlayer, itemID):
|
| | | GameWorld.DebugLog("未解锁的符印不产出! itemID=%s" % itemID, playerID)
|
| | | return
|
| | |
|
| | | return True
|