| | |
| | | import PlayerFace
|
| | | import PlayerBackup
|
| | | import PlayerOnline
|
| | | import PlayerGoldRush
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | #---------------------------------------------------------------------
|
| | |
| | | #放在刷buff前
|
| | | #ProcessPassiveSkill(curPlayer, tick)
|
| | |
|
| | | ProcessPlayerSecond(curPlayer, tick)
|
| | | ProcessPlayerMinute(curPlayer, tick)
|
| | |
|
| | | PlayerOnline.GetOnlinePlayer(curPlayer).DoRefreshRoleAttr()
|
| | |
| | | #副本相关时间处理
|
| | | #PlayerFB.DoPlayerFBTimeProcess(curPlayer, tick)
|
| | |
|
| | | #挂机收益
|
| | | #PlayerGuaji.ProcessGuaji(curPlayer)
|
| | | |
| | | #恶意攻击时间处理
|
| | | #AttackCommon.ProcessMaliciousAttackPlayer(curPlayer, tick)
|
| | | #成就
|
| | | PlayerSuccess.FinishDelayAddSuccessProgress(curPlayer, tick, False)
|
| | | #限时抢购
|
| | | PlayerFlashSale.ProcessFlashSaleMail(curPlayer, tick)
|
| | | #地图经验
|
| | | #ProcessAreaExp(curPlayer, tick)
|
| | | #神秘商店刷新
|
| | | FunctionNPCCommon.CheckMysticalShopRefresh(curPlayer, tick)
|
| | |
|
| | | #活跃放置
|
| | | #PlayerActivity.ProcessActivityPlace(curPlayer)
|
| | | #自定义场景
|
| | |
| | | #CrossPlayerData.ProcessCrossPlayer(curPlayer, tick)
|
| | | return
|
| | |
|
| | | def ProcessPlayerSecond(curPlayer, tick):
|
| | | #玩家每秒处理,玩家Process可能每秒多次,所以增加一个每秒处理的,减少执行次数
|
| | | lastTick = curPlayer.GetDictByKey("ProcessPlayerSecond")
|
| | | if tick - lastTick < 1000:
|
| | | return
|
| | | curPlayer.SetDict("ProcessPlayerSecond", tick)
|
| | | |
| | | #成就
|
| | | PlayerSuccess.FinishDelayAddSuccessProgress(curPlayer, tick, False)
|
| | | #限时抢购
|
| | | PlayerFlashSale.ProcessFlashSaleMail(curPlayer, tick)
|
| | | #神秘商店刷新
|
| | | FunctionNPCCommon.CheckMysticalShopRefresh(curPlayer, tick)
|
| | | #淘金
|
| | | PlayerGoldRush.OnProcess(curPlayer)
|
| | | return
|
| | |
|
| | | def ProcessPlayerMinute(curPlayer, tick):
|
| | | #玩家每分钟处理
|
| | | lastTick = curPlayer.GetTickByType(ChConfig.TYPE_Player_Tick_Minute)
|