| | |
| | | factionSafeAreaRandPosList = IpyGameDataPY.GetFuncEvalCfg("CrossBattlefieldFB", 3)
|
| | | if faction and faction <= len(factionSafeAreaRandPosList):
|
| | | safePosX, safePosY, _ = factionSafeAreaRandPosList[faction - 1]
|
| | | rebornPosList.append([safePosX, safePosY, 3])
|
| | | rebornPosList.append([safePosX, safePosY, 0, 3])
|
| | |
|
| | | # 包含占领的水晶
|
| | | if includeCrystal:
|
| | |
| | | if str(npcID) not in crystalNPCIDPosDict:
|
| | | continue
|
| | | posInfo = crystalNPCIDPosDict[str(npcID)]
|
| | | rebornPosList.append([posInfo[0], posInfo[1], 3])
|
| | | rebornPosList.append([posInfo[0], posInfo[1], 3, 6])
|
| | |
|
| | | if not rebornPosList:
|
| | | return
|
| | | randPosX, randPosY, radius = random.choice(rebornPosList)
|
| | | posPoint = GameMap.GetEmptyPlaceInArea(randPosX, randPosY, radius)
|
| | | randPosX, randPosY, minDist, maxDist = random.choice(rebornPosList)
|
| | | posPoint = GameMap.GetEmptyPlaceInAreaEx(randPosX, randPosY, minDist, maxDist)
|
| | | return posPoint.GetPosX(), posPoint.GetPosY()
|
| | |
|
| | | #def GetFBRobotRandomMovePos(curNPC):
|