| | |
| | | PlayerTask.__giveNewTask(curPlayer, taskGroup)
|
| | | return
|
| | |
|
| | | taskValue = paramList[1] if len(paramList) > 1 else 0
|
| | | taskValue = paramList[1] if len(paramList) > 1 else None
|
| | | ipyData = IpyGameDataPY.GetIpyGameData("Task", taskID)
|
| | | if not ipyData:
|
| | | GameWorld.DebugAnswer(curPlayer, "该任务ID不存在:%s" % taskID)
|
| | | return
|
| | | taskGroup = ipyData.GetTaskGroup()
|
| | | taskType = ipyData.GetTaskType()
|
| | | needValue = ipyData.GetNeedValue()
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TaskID % taskGroup, taskID)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TaskValue % taskGroup, taskValue)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TaskState % taskGroup, ChConfig.TaskState_Doing)
|
| | | if taskValue == None:
|
| | | PlayerTask.UpdTaskValue(curPlayer, taskType)
|
| | | else:
|
| | | PlayerTask.SetTaskValue(curPlayer, ipyData, taskValue)
|
| | |
|
| | | curValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TaskValue % taskGroup)
|