| | |
| | | import ChPyNetSendPack
|
| | | import CrossRealmPlayer
|
| | | import PlayerTongTianLing
|
| | | import FunctionNPCCommon
|
| | | import DataRecordPack
|
| | | import PlayerWeekParty
|
| | | import IPY_GameWorld
|
| | | import ItemControler
|
| | | import PlayerSuccess
|
| | | import ItemCommon
|
| | | import GameWorld
|
| | | import ChConfig
|
| | |
| | |
|
| | | def GetCrossPKDanAwardIpyData(seasonID, awardDanLV, isLog):
|
| | | ## 获取跨服段位奖励配置信息
|
| | | crossZoneName = GameWorld.GetCrossZoneName()
|
| | | crossZoneName = "" #GameWorld.GetCrossZoneName()
|
| | | danLVAwardIpyData = IpyGameDataPY.GetIpyGameDataNotLog("CrossRealmPKDanAward", crossZoneName, seasonID, awardDanLV)
|
| | | if not danLVAwardIpyData:
|
| | | danLVAwardIpyData = IpyGameDataPY.GetIpyGameDataNotLog("CrossRealmPKDanAward", "", seasonID, awardDanLV)
|
| | |
| | | SyncCrossRealmPKAwardState(curPlayer)
|
| | |
|
| | | # 重置商店物品
|
| | | FunctionNPCCommon.ShopItemOnCrossPKSeasonChange(curPlayer)
|
| | | #FunctionNPCCommon.ShopItemOnCrossPKSeasonChange(curPlayer)
|
| | | return True
|
| | |
|
| | | #// C1 01 跨服PK匹配 #tagCMCrossRealmPKMatch
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_TodayWinCount, todayWinCount)
|
| | | GameWorld.Log(" 增加今日已获胜次数: todayWinCount=%s" % todayWinCount, playerID)
|
| | | PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_CrossPK, 1)
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_CrossPK, 1)
|
| | | PlayerTongTianLing.AddTongTianTaskValue(curPlayer, ChConfig.TTLTaskType_CrossPK, 1)
|
| | | else:
|
| | | GameWorld.Log(" 不同天的PK结算不增加今日PK次数! ", playerID)
|
| | |
| | | "order":order, "danLV":danLV, "mapSeasonID":mapSeasonID}
|
| | | if order > 0:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_SeasonOrder % seasonID, order)
|
| | | crossZoneName = GameWorld.GetCrossZoneName()
|
| | | crossZoneName = "" #GameWorld.GetCrossZoneName()
|
| | | seasonOrderAwardIpyData = IpyGameDataPY.GetIpyGameDataNotLog("CrossRealmPKOrderAward", crossZoneName, seasonID)
|
| | | if not seasonOrderAwardIpyData:
|
| | | seasonOrderAwardIpyData = IpyGameDataPY.GetIpyGameData("CrossRealmPKOrderAward", "", seasonID)
|