| | |
| | | import IpyGameDataPY
|
| | | import ItemControler
|
| | | import ChPyNetSendPack
|
| | | import PlayerActivity
|
| | | import PlayerControl
|
| | | import GameFuncComm
|
| | | import PlayerGubao
|
| | | import ShareDefine
|
| | | import ObjPool
|
| | |
|
| | |
| | | if passSeconds < cdSeconds:
|
| | | return
|
| | | recoverCnt = passSeconds / cdSeconds
|
| | | recoverCnt = min(recoverCnt, maxEnergy - curEnergy)
|
| | | updRecoverTime = curTime - passSeconds % cdSeconds
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GoldRushRecoverTime, updRecoverTime)
|
| | | GameWorld.DebugLog("恢复淘金令: %s,passSeconds=%s,上次恢复:%s" % (recoverCnt, passSeconds, GameWorld.ChangeTimeNumToStr(lastRecoverTime)))
|
| | |
| | | SetCampInfo(curPlayer, campID, 0, 0, 0, False)
|
| | | syncCampIDList.append(campID)
|
| | | GameWorld.DebugLog("淘金结束: campID=%s,goldID=%s,放入淘金仓库index=%s,panningCnt=%s" % (campID, goldID, index, panningCnt))
|
| | | PlayerGubao.AddGubaoSpecEffLayer(curPlayer, PlayerGubao.GubaoEffType_GoldRush, 1)
|
| | | PlayerActivity.AddDailyTaskValue(curPlayer, ChConfig.DailyTask_GoldRush, 1)
|
| | |
|
| | | if not syncCampIDList:
|
| | | return
|