| | |
| | | if len(conds) != 2:
|
| | | return 0
|
| | | mapID, lineID = conds
|
| | | grade = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False, [mapID])
|
| | | taskValue = 1 if grade > 0 else 0
|
| | | passLineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBPassLineID % mapID)
|
| | | taskValue = 1 if passLineID >= lineID else 0
|
| | |
|
| | | elif taskType == ChConfig.TaskType_EquipColorItem:
|
| | | if not conds:
|
| | |
| | | ## 检查任务条件是否满足
|
| | | taskType = ipyData.GetTaskType()
|
| | |
|
| | | # 副本xxx过关
|
| | | if taskType == ChConfig.TaskType_FBPass:
|
| | | taskConds = ipyData.GetTaskConds()
|
| | | if not conds or len(conds) != len(taskConds) or len(conds) < 2:
|
| | | return
|
| | | if conds[0] != taskConds[0]:
|
| | | return
|
| | | if conds[1] < taskConds[1]:
|
| | | return
|
| | | |
| | | # 副本xxx挑战
|
| | | elif taskType == ChConfig.TaskType_FBChallenge:
|
| | | if taskType == ChConfig.TaskType_FBChallenge:
|
| | | taskConds = ipyData.GetTaskConds()
|
| | | if not conds or len(conds) != len(taskConds) or len(conds) < 1:
|
| | | return
|