| | |
| | | import EventShell
|
| | | import PlayerActivity
|
| | | import PlayerFairyCeremony
|
| | | import PlayerVip
|
| | |
|
| | | import copy
|
| | |
|
| | |
| | | def PlayerPrayElixir(index, clientPack, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | prayCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AlchemyPrayCnt)
|
| | | limitCnt = IpyGameDataPY.GetFuncCfg('GodAlchemy', 3)
|
| | | if limitCnt and prayCnt >= limitCnt:
|
| | | limitCnt = PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_PrayElixir)
|
| | | if prayCnt >= limitCnt:
|
| | | GameWorld.DebugLog('今日祈福丹药次数已满!prayCnt=%s'%prayCnt)
|
| | | return
|
| | | packSpace = ItemCommon.GetItemPackSpace(curPlayer, IPY_GameWorld.rptItem, 1)
|