| | |
| | | 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)
|
| | |
| | | # 需要记录任务值的任务类型列表
|
| | | NeedTaskValueTypeList = [RealmTaskType_UseXiantao]
|
| | |
|
| | | def DoOfficialOpen(curPlayer):
|
| | | #功能开启
|
| | | # curRealmLV = curPlayer.GetOfficialRank()
|
| | | # if not curRealmLV:
|
| | | # DoRealmLVUpLogic(curPlayer)
|
| | | return True
|
| | |
|
| | |
|
| | | def OnLogin(curPlayer):
|
| | | SyncRealmInfo(curPlayer, isAll=True)
|
| | | if not curPlayer.GetOfficialRank():
|
| | | curPlayer.SetOfficialRank(1)
|
| | | if ChConfig.Def_InitOfficialRank > 0 and not curPlayer.GetOfficialRank():
|
| | | curPlayer.SetOfficialRank(ChConfig.Def_InitOfficialRank)
|
| | | return
|
| | |
|
| | | def GetRealmIpyData(realmLV): return IpyGameDataPY.GetIpyGameData("Realm", realmLV)
|
| | |
| | | % (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)
|
| | | # 记录开服活动
|