From 2a3e2e53da4ff2005fc84f702483fd3f29b9c569 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 17 十月 2025 20:28:44 +0800
Subject: [PATCH] 237 【福利内容】每日任务/每周任务/章节奖励-服务端(章节奖励英雄之路,成就系统)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py | 25 +++++++------------------
1 files changed, 7 insertions(+), 18 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
index 9de8871..569cd20 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -25,11 +25,10 @@
import ShareDefine
import GameWorld
import ChConfig
-import PlayerSuccess
import PlayerBillboard
import PlayerTongTianLing
-import PlayerGubao
import PlayerTask
+import PlayerOnline
#------------------------------------------------------------------------------
@@ -43,14 +42,6 @@
# 需要记录任务值的任务类型列表
NeedTaskValueTypeList = [RealmTaskType_UseXiantao]
-
-def DoOfficialOpen(curPlayer):
- #功能开启
-# curRealmLV = curPlayer.GetOfficialRank()
-# if not curRealmLV:
-# DoRealmLVUpLogic(curPlayer)
- return True
-
def OnLogin(curPlayer):
SyncRealmInfo(curPlayer, isAll=True)
@@ -93,17 +84,18 @@
addAttrIDList, addAttrValueList = realmIpyData.GetAddAttrType(), realmIpyData.GetAddAttrNum()
- allAttrList = [{} for i in range(4)]
+ playerID = curPlayer.GetPlayerID()
+ attrDict = {}
for i, attrID in enumerate(addAttrIDList):
- PlayerControl.CalcAttrDict_Type(attrID, addAttrValueList[i], allAttrList)
+ attrDict[attrID] = attrDict.get(attrID, 0) + addAttrValueList[i]
- # 保存计算值
- PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Prestige, allAttrList)
+ GameWorld.DebugLog("官职属性: %s" % attrDict, playerID)
+ PlayerOnline.GetOnlinePlayer(curPlayer).SetCalcAttr(ChConfig.Def_CalcAttr_Realm, attrDict)
return
def RefreshOfficialAttr(curPlayer):
CalcOfficialRankAttr(curPlayer)
- PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
+ PlayerOnline.GetOnlinePlayer(curPlayer).RefreshRoleAttr()
return
def AddRealmTaskValue(curPlayer, taskType, addValue):
@@ -251,7 +243,6 @@
return
curPlayer.SetOfficialRank(nextRealmLv)
- PlayerGubao.DoGubaoAddFreePoint(curPlayer)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmTaskAwardState, 0)
syncTaskIDList = []
@@ -271,8 +262,6 @@
RefreshOfficialAttr(curPlayer)
GameFuncComm.DoFuncOpenLogic(curPlayer)
SyncRealmInfo(curPlayer, taskIDList=syncTaskIDList)
- #境界提升成就
- PlayerSuccess.UptateSuccessProgress(curPlayer, ShareDefine.SuccType_RealmlvUp, nextRealmLv)
PlayerTongTianLing.AddTongTianTaskValue(curPlayer, ChConfig.TTLTaskType_RealmUp, 1)
PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_RealmLV)
#更新排行榜
--
Gitblit v1.8.0