From bc0c9d89c0811bb32f98ba45dfaff6b10661c45a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 12 九月 2024 17:01:46 +0800
Subject: [PATCH] 10261 【越南】【砍树】仙盟徽章,头像框,头像(动态),聊天气泡,聊天表情(增加头像、头像框)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
index 9d9676f..f9b400e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
@@ -55,6 +55,7 @@
 import FormulaControl
 import PlayerGoldGift
 import PlayerFlashSale
+import PlayerFace
 import PlayerWing
 import ChEquip
 import PlayerYinji
@@ -1196,9 +1197,8 @@
     reFlashList.append(reFlash)
 #    GameWorld.Log('刷新以单位时间(分钟)消耗耐久的物品 %s'%(time.clock() - curTime))
 #    curTime = time.clock()
-
-    # 时效称号
-    PlayerDienstgrad.CheckDienstgradTimeout(curPlayer)
+    
+    ProcessPlayerMinute(curPlayer, tick)
     
     #vip体验
     reFlash = PlayerVip.CheckVIPExperience(curPlayer, tick)
@@ -1292,6 +1292,18 @@
     CrossPlayerData.ProcessCrossPlayer(curPlayer, tick)
     return
 
+def ProcessPlayerMinute(curPlayer, tick):
+    #玩家每分钟处理
+    lastTick = curPlayer.GetTickByType(ChConfig.TYPE_Player_Tick_Minute)
+    if tick - lastTick < (ChConfig.TYPE_Player_Tick_Time[ChConfig.TYPE_Player_Tick_Minute]):
+        return
+    curPlayer.SetTickByType(ChConfig.TYPE_Player_Tick_Minute, tick)
+    
+    # 时效称号
+    PlayerDienstgrad.CheckDienstgradTimeout(curPlayer)
+    # 时效头像
+    PlayerFace.OnMinute(curPlayer)
+    return
 
 # 一定时间自动释放的被动技能
 def ProcessPassiveSkill(curPlayer, tick):

--
Gitblit v1.8.0