| | |
| | | import ItemControler
|
| | | import ChConfig
|
| | | import FBLogic
|
| | | import PlayerVip
|
| | |
|
| | | import operator
|
| | | import json
|
| | |
| | | NetPackCommon.SendFakePack(curPlayer, packdata)
|
| | | return
|
| | |
|
| | |
|
| | | # BOSS剩余可击杀次数
|
| | | def GetCanKillBossCnt(curPlayer, bossFuncIndex):
|
| | | hasKillCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCnt%bossFuncIndex, 0)
|
| | | itemAddKillCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCntItemAddCnt%bossFuncIndex, 0)
|
| | | killLimitPrivilege = IpyGameDataPY.GetFuncEvalCfg('KillBossCntLimit', 4, {}).get(bossFuncIndex, 0)
|
| | | if killLimitPrivilege:
|
| | | limitCnt = PlayerVip.GetPrivilegeValue(curPlayer, killLimitPrivilege)
|
| | | else:
|
| | | limitCnt = IpyGameDataPY.GetFuncEvalCfg('KillBossCntLimit', 2, {}).get(bossFuncIndex, 0)
|
| | | |
| | | |
| | | return max(limitCnt + itemAddKillCnt - hasKillCnt, 0)
|
| | |
|
| | |
|