| | |
| | | import PlayerControl
|
| | | import NetPackCommon
|
| | | import IpyGameDataPY
|
| | | import PlayerActivity
|
| | | 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 IsCrossRealmPKMatchState():
|
| | | ## 跨服PK匹配赛是否开启
|
| | | return GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_CrossDailyActionState \
|
| | | % ShareDefine.DailyActionID_CrossReamPK) == ChConfig.Def_Action_Open
|
| | | return False
|
| | |
|
| | | def GetCrossPKDanAwardIpyData(seasonID, awardDanLV, isLog):
|
| | | ## 获取跨服段位奖励配置信息
|
| | |
| | | SyncCrossRealmPKAwardState(curPlayer)
|
| | |
|
| | | # 重置商店物品
|
| | | FunctionNPCCommon.ShopItemOnCrossPKSeasonChange(curPlayer)
|
| | | #FunctionNPCCommon.ShopItemOnCrossPKSeasonChange(curPlayer)
|
| | | return True
|
| | |
|
| | | #// C1 01 跨服PK匹配 #tagCMCrossRealmPKMatch
|
| | |
| | | todayWinCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_TodayWinCount) + 1
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_TodayWinCount, todayWinCount)
|
| | | GameWorld.Log(" 增加今日已获胜次数: todayWinCount=%s" % todayWinCount, playerID)
|
| | | PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_CrossReamPK)
|
| | | PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_CrossPK, 1)
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_FeastRedPack_CrossPK, 1)
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_CrossPK, 1)
|
| | | PlayerTongTianLing.AddTongTianTaskValue(curPlayer, ChConfig.TTLTaskType_CrossPK, 1)
|
| | | else:
|
| | | GameWorld.Log(" 不同天的PK结算不增加今日PK次数! ", playerID)
|