| | |
| | | battleRatio = workerBattleRatioList[len(workerBattleRatioList) - 1] if batWorkerCount > len(workerBattleRatioList) else workerBattleRatioList[batWorkerCount - 1]
|
| | |
|
| | | needSeconds = int(dist * itemWeight * baseTime * workRatio * battleRatio) # 还需工作时长,秒
|
| | | if needSeconds <= 0:
|
| | | return 0, 0
|
| | | |
| | | moveSpeed = dist / float(needSeconds) # 移动速度 x格/秒
|
| | | needHms = "%02d:%02d:%02d" % (needSeconds / 3600, needSeconds % 3600 / 60, needSeconds % 60)
|
| | |
|
| | |
| | | GameWorld.Log("福地系统定时刷新! %s" % str(curHourMinute))
|
| | | mineItemMgr = PyDataManager.GetDBPyMineAreaItemManager()
|
| | | for playerID in mineItemMgr.playerMineItemDict.keys():
|
| | | __DoMineItemRefresh(playerID, isSuper=True)
|
| | | __DoMineItemRefresh(playerID, isSys=True)
|
| | | return
|
| | |
|
| | | def OnMineItemTimeProcess(curTime, tick):
|