| | |
| | | import ItemControler
|
| | | import GameFuncComm
|
| | | import GameWorld
|
| | | import PlayerVip
|
| | |
|
| | | import time
|
| | |
|
| | |
| | | def GetGuajiExpRate(curPlayer):
|
| | | ## 挂机收益经验加成
|
| | | expRate = curPlayer.GetFightExpRate() # 系统及功能累加
|
| | | expRate += PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_FightExpRate) # VIP加成
|
| | | return expRate
|
| | |
|
| | | def OnGetGuajiAward(curPlayer, isQuick):
|
| | |
| | | if isQuick:
|
| | | quickCountToday = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GuajiQuickCount)
|
| | | quickCountFree = IpyGameDataPY.GetFuncCfg("GuajiQuick", 2)
|
| | | vipCanBuyCount = PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_GuajiQuickBuy)
|
| | | quickCountMax = quickCountFree + vipCanBuyCount
|
| | | quickCountMax = quickCountFree
|
| | | if quickCountToday >= quickCountMax:
|
| | | GameWorld.DebugLog("快速挂机收益次数已达每日上限! quickCountToday=%s" % quickCountToday, playerID)
|
| | | return
|