From ca212ad097edfe324b5b6035e64cfbcf5146b044 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 09 十二月 2025 10:50:22 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(突破单独配置所需武将等级,不需要满级才能突破;突破消耗物品改为支持多种物品;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
index cbff1bf..dceae35 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
@@ -30,6 +30,7 @@
 import IPY_GameWorld
 import ItemControler
 import GameFuncComm
+import PlayerTask
 import DBDataMgr
 import DirtyList
 import ObjPool
@@ -465,6 +466,7 @@
     familyMgr.DelPlayerReqJoinFamilyIDAll(curPlayer.GetPlayerID())
     Sync_RequestAddFamilyInfo(curPlayer)
     PlayerFamilyTaofa.OnPlayerEnterFamily(curPlayer)
+    PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_ReqOrJoinFamily)
     return
 
 def __OnLeaveFamily(curPlayer, isVoluntarily, tick):
@@ -661,6 +663,7 @@
     
     # 申请加入
     if requestType == 0:
+        PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_ReqOrJoinFamily, 1)
         if not tagFamilyID:
             AutoJoinFamily(curPlayer)
         else:
@@ -717,17 +720,17 @@
         family = familyMgr.GetAt(index)
         if not family:
             continue
-        familyID = family.GetID()
+        #familyID = family.GetID()
         lvMin = family.GetJoinLVMin()
         if lvMin and realmLV < lvMin:
-            GameWorld.DebugLog("    官职不足的不处理! familyID=%s,lvMin=%s" % (familyID, lvMin), playerID)
+            #GameWorld.DebugLog("    官职不足的不处理! familyID=%s,lvMin=%s" % (familyID, lvMin), playerID)
             continue
         if family.GetJoinReview():
-            GameWorld.DebugLog("    需要审核的不处理! familyID=%s" % familyID, playerID)
+            #GameWorld.DebugLog("    需要审核的不处理! familyID=%s" % familyID, playerID)
             continue
         MemberMax = GetFamilySetting(family.GetLV(), "MemberMax")
         if family.GetCount() >= MemberMax:
-            GameWorld.DebugLog("    成员已满的不处理! familyID=%s" % familyID, playerID)
+            #GameWorld.DebugLog("    成员已满的不处理! familyID=%s" % familyID, playerID)
             continue
         
         #直接加入

--
Gitblit v1.8.0