| | |
| | | for npcID in npcIDList:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GrasslandNPCCount % npcID, 0)
|
| | | npcCountDict = {}
|
| | | for _ in xrange(refreshCount):
|
| | | npcID = GameWorld.GetResultByRandomList(npcIDRateList)
|
| | | if npcID:
|
| | | npcCount = npcCountDict.get(npcID, 0) + 1
|
| | | npcCountDict[npcID] = npcCount
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GrasslandNPCCount % npcID, npcCount)
|
| | | |
| | | # {寻访次数:{mapID:{npcID:个数, ...}, ...}, ...}
|
| | | refreshMapNPCDictAppoint = IpyGameDataPY.GetFuncEvalCfg("CrossGrasslandCfg", 3)
|
| | | fairyDomainVisitCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainVisitCnt)
|
| | | if fairyDomainVisitCnt in refreshMapNPCDictAppoint:
|
| | | appointRefreshMapNPCDict = refreshMapNPCDictAppoint[fairyDomainVisitCnt]
|
| | | npcCountDict = appointRefreshMapNPCDict.get(mapID, {})
|
| | | if not npcCountDict:
|
| | | for _ in xrange(refreshCount):
|
| | | npcID = GameWorld.GetResultByRandomList(npcIDRateList)
|
| | | if npcID:
|
| | | npcCount = npcCountDict.get(npcID, 0) + 1
|
| | | npcCountDict[npcID] = npcCount
|
| | | |
| | | for npcID, npcCount in npcCountDict.items():
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GrasslandNPCCount % npcID, npcCount)
|
| | | |
| | | if mapID == ChConfig.Def_FBMapID_CrossGrasslandXian:
|
| | | FBCommon.DelFBEnterTicket(curPlayer, mapID, lineID)
|
| | |
|