| | |
| | | __doHeroBookAct(curPlayer, heroID)
|
| | | return
|
| | |
|
| | | def GetHeroBookActCnt(curPlayer):
|
| | | ## 获取武将图鉴已激活数量
|
| | | bookCnt = 0
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for index in range(ipyDataMgr.GetHeroCount()):
|
| | | ipyData = ipyDataMgr.GetHeroByIndex(index)
|
| | | heroID = ipyData.GetHeroID()
|
| | | if not ipyData.GetPlayerCanUse():
|
| | | continue
|
| | | if not GetHeroBookInitState(curPlayer, heroID):
|
| | | continue
|
| | | bookCnt += 1
|
| | | return bookCnt
|
| | |
|
| | | def __doHeroBookAct(curPlayer, heroID):
|
| | | ## 图鉴激活
|
| | | playerID = curPlayer.GetPlayerID()
|
| | |
| | | Sync_HeroInfo(curPlayer, [heroID])
|
| | |
|
| | | RefreshLordAttr(curPlayer)
|
| | | |
| | | PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_HeroBook)
|
| | | return
|
| | |
|
| | | def __doHeroBookStarLVUP(curPlayer, heroID):
|