| | |
| | | if awardMoneyInfo and len(awardMoneyInfo) == 2:
|
| | | moneyType, moneyValue = awardMoneyInfo
|
| | | if moneyType and moneyValue:
|
| | | PlayerControl.GiveMoney(curPlayer, moneyType, moneyValue, "HeroBookAct")
|
| | | PlayerControl.GiveMoney(curPlayer, moneyType, moneyValue, "HeroBookAct", notifyAward=True)
|
| | |
|
| | | Sync_HeroInfo(curPlayer, [heroID])
|
| | |
|
| | |
| | | for syncItem in syncItemDict.values():
|
| | | syncItem.Sync_Item()
|
| | |
|
| | | lineup = PlayerOnline.GetOnlinePlayer(curPlayer).GetLineup(lineupID)
|
| | | lineup = PlayerOnline.GetOnlinePlayer(curPlayer).GetLineup(lineupID, False)
|
| | | lineup.UpdLineup(heroItemDict, shapeType)
|
| | | return
|
| | |
|
| | |
| | | for index in range(ipyDataMgr.GetHeroCount()):
|
| | | ipyData = ipyDataMgr.GetHeroByIndex(index)
|
| | | heroID = ipyData.GetHeroID()
|
| | | if not ipyData.GetPlayerCanUse():
|
| | | continue
|
| | | if not GetHeroBookInitState(curPlayer, heroID):
|
| | | # 图鉴未激活
|
| | | continue
|
| | |
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for index in range(ipyDataMgr.GetHeroCount()):
|
| | | ipyData = ipyDataMgr.GetHeroByIndex(index)
|
| | | if not ipyData.GetPlayerCanUse():
|
| | | continue
|
| | | syncHeroIDList.append(ipyData.GetHeroID())
|
| | |
|
| | | if not syncHeroIDList:
|
| | |
| | | lineupList = []
|
| | | olPlayer = PlayerOnline.GetOnlinePlayer(curPlayer)
|
| | | for lineupID in syncIDList:
|
| | | lineup = olPlayer.GetLineup(lineupID)
|
| | | lineup = olPlayer.GetLineup(lineupID, False)
|
| | | if not lineup:
|
| | | continue
|
| | |
|