| | |
| | | import PlayerBillboard
|
| | | import PlayerTongTianLing
|
| | | import PlayerGubao
|
| | | import PlayerTask
|
| | |
|
| | | #------------------------------------------------------------------------------
|
| | |
|
| | | # 渡劫任务类型
|
| | | RealmTaskTypeList = (
|
| | | RealmTaskType_LV, # 等级 1
|
| | | RealmTaskType_PassMap, # 过关关卡 2
|
| | | RealmTaskType_MainLevel, # 主线关卡 2
|
| | | RealmTaskType_UseXiantao, # 消耗战锤 3
|
| | | RealmTaskType_TreeLV, # 仙树等级 4
|
| | | ) = range(1, 1 + 4)
|
| | |
| | | % (realmLV, taskID, taskType, playerLV, needValueA), playerID)
|
| | | return
|
| | |
|
| | | # 过关副本
|
| | | elif taskType == RealmTaskType_PassMap:
|
| | | mapID = needValueA
|
| | | lineID = GetRealmTaskNeedValue(needValueList, 1)
|
| | | # 主线关卡
|
| | | elif taskType == RealmTaskType_MainLevel:
|
| | | mapID = ChConfig.Def_FBMapID_Main
|
| | | lineID = needValueA
|
| | | if not FBCommon.IsFBPass(curPlayer, mapID, lineID):
|
| | | GameWorld.DebugLog('境界任务领奖,未过关! realmLV=%s,taskID=%s,taskType=%s,mapID=%s,lineID=%s'
|
| | | % (realmLV, taskID, taskType, mapID, lineID), playerID)
|
| | |
| | | #境界提升成就
|
| | | PlayerSuccess.UptateSuccessProgress(curPlayer, ShareDefine.SuccType_RealmlvUp, nextRealmLv)
|
| | | PlayerTongTianLing.AddTongTianTaskValue(curPlayer, ChConfig.TTLTaskType_RealmUp, 1)
|
| | | PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_RealmLV)
|
| | | #更新排行榜
|
| | | PlayerBillboard.UpdateRealmBillboard(curPlayer)
|
| | | # 记录开服活动
|