| | |
| | | import PetControl
|
| | | import ReadChConfig
|
| | | import GameObj
|
| | | import FBLogic
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
| | | return
|
| | |
|
| | |
|
| | | def NPCMoveByPointList(curNPC, movePointList):
|
| | | def NPCMoveByPointList(curNPC, movePointList, tick):
|
| | | if not movePointList:
|
| | | return
|
| | | pointIndex = curNPC.GetDictByKey(ChConfig.Def_NPC_Dict_MovePointIndex)
|
| | |
| | |
|
| | | curNPC.Move(destPosX, destPosY)
|
| | | return
|
| | | |
| | | # 到达终点
|
| | | if pointIndex == (len(movePointList) - 1):
|
| | | FBLogic.OnTDNPCReachTheGoal(curNPC, tick)
|
| | | |
| | | return
|
| | |
|