| | |
| | | import IpyGameDataPY |
| | | import ChPyNetSendPack |
| | | import CrossRealmPlayer |
| | | import FunctionNPCCommon |
| | | import PlayerBillboard |
| | | import ItemControler |
| | | import NetPackCommon |
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_BossTrialSubmitAward % actNum, 0) |
| | | |
| | | if state: |
| | | cfgID = actInfo.get(ShareDefine.ActKey_CfgID) |
| | | ipyData = IpyGameDataPY.GetIpyGameData("ActBossTrial", cfgID) |
| | | if ipyData and ipyData.GetActShopType(): |
| | | FunctionNPCCommon.ResetShopItemBuyCountByShopType(curPlayer, [ipyData.GetActShopType()]) |
| | | Sync_BossTrialActionInfo(curPlayer, actNum) |
| | | Sync_BossTrialPlayerInfo(curPlayer, actNum) |
| | | |
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_BossTrialSubmitCount % actNum, updSubmitCount) |
| | | GameWorld.DebugLog("Boss历练提交凭证: actNum=%s,itemID=%s,submitCount=%s,updSubmitCount=%s,updSubmitAwardCount=%s" |
| | | % (actNum, itemID, submitCount, updSubmitCount, updSubmitAwardCount), playerID) |
| | | |
| | | PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_BossTrial, submitCount, "BossTrialSubmit") |
| | | |
| | | PlayerBillboard.UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_BossTrialSubmit, updSubmitCount, autoSort=True) |
| | | |
| | |
| | | actInfo.IsDayReset = ipyData.GetIsDayReset() |
| | | actInfo.ResetType = ipyData.GetResetType() |
| | | actInfo.LimitLV = ipyData.GetLVLimit() |
| | | actInfo.ShopType = ipyData.GetActShopType() |
| | | actInfo.SubResetType = ipyData.GetSubmitAwardResetType() |
| | | |
| | | actInfo.SubmitInfoList = [] |