| | |
| | | import ChPyNetSendPack
|
| | | import GameWorldProcess
|
| | | import PlayerDienstgrad
|
| | | import PlayerWeekParty
|
| | | import IpyGameDataPY
|
| | | import PlayerFamily
|
| | | import NetPackCommon
|
| | |
| | | if not FBCommon.GetHadDelTicket(curPlayer):
|
| | | FBCommon.SetHadDelTicket(curPlayer)
|
| | | FBCommon.AddEnterFBCount(curPlayer, ChConfig.Def_FBMapID_FamilyWar)
|
| | | |
| | | PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_FamilyWar, 1)
|
| | | isFinalMatch = gameFB.GetGameFBDictByKey(GameFBDict_IsFinalMatch)
|
| | | roundNum = gameFB.GetGameFBDictByKey(GameFBDict_RoundNum)
|
| | | groupID = gameFB.GetGameFBDictByKey(GameFBDict_GroupID)
|
| | |
| | | skillTypeID, buffOwner = 0, None
|
| | | lostValue = int(GameObj.GetMaxHP(curPlayer) * lostHPPer / 100.0) * lostTime
|
| | | #GameWorld.DebugLog("OnCollecting lostHPPer=%s,lostTime=%s,lostValue=%s" % (lostHPPer, lostTime, lostValue), playerID)
|
| | | SkillCommon.SkillLostHP(curPlayer, skillTypeID, buffOwner, lostValue, tick)
|
| | | SkillCommon.SkillLostHP(curPlayer, skillTypeID, buffOwner, lostValue, tick, skillAffect=False)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | Sync_ChampionFamilyDailyRewardState(curPlayer)
|
| | |
|
| | | for itemID, itemCnt, isBind in itemList:
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, [IPY_GameWorld.rptItem])
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem])
|
| | |
|
| | | GameWorld.DebugLog("领取王者仙盟每日俸禄: itemList=%s" % itemList, playerID)
|
| | | return
|