From a02d7379e60b7b3fe0ae8d1ada4cf86fc4d0a1be Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 11 九月 2020 14:27:11 +0800
Subject: [PATCH] 1111 媒体卡固定码支持按appid配置;
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 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 dadc639..d42170a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -26,10 +26,12 @@
import GameWorld
import ChConfig
import PlayerSuccess
-import OpenServerCampaign
+import ChEquip
import PlayerBillboard
+import PassiveBuffEffMng
import EventShell
import DataRecordPack
+import SkillCommon
import time
#------------------------------------------------------------------------------
@@ -131,8 +133,8 @@
return
#装备判断
needEquip = realmIpyData.GetNeedEquip()
- if needEquip and len(needEquip) == 3:
- classLV, color, isSuite = needEquip
+ if needEquip and len(needEquip) == 4:
+ classLV, star, isSuite, color = needEquip
equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
for place in ChConfig.EquipPlace_Base:
ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classLV, place)
@@ -142,9 +144,12 @@
curEquip = equipPack.GetAt(gridIndex)
if not ItemCommon.CheckItemCanUse(curEquip):
return
- if curEquip.GetItemColor() < color:
+ curPartStar = ChEquip.GetEquipPartStar(curPlayer, gridIndex)
+ if curPartStar < star:
return
if isSuite and not curEquip.GetSuiteID():
+ return
+ if curEquip.GetItemColor() < color:
return
needItemID = realmIpyData.GetNeedItemID()
@@ -201,6 +206,15 @@
else:
PlayerControl.WorldNotify(0, 'RealmUpSuccess', [curPlayer.GetName(), curPlayer.GetID(), nextRealmLv])
+ if SkillCommon.GivePlayerSkillByJobSkill(curPlayer, nextRealmIpyData.GetLearnSkillIDInfo()):
+ PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEffSet(curPlayer)
+
+ addFreePoint = nextRealmIpyData.GetAddFreePoint()
+ if addFreePoint:
+ updFreePoint = curPlayer.GetFreePoint() + addFreePoint
+ curPlayer.SetFreePoint(updFreePoint)
+ GameWorld.DebugLog(" addFreePoint=%s,updFreePoint=%s" % (addFreePoint, updFreePoint))
+
RefreshOfficialAttr(curPlayer)
GameFuncComm.DoFuncOpenLogic(curPlayer)
SyncRealmFBState(curPlayer)
--
Gitblit v1.8.0