hxp
2023-10-11 614707fc640e731fe8b78351f0933371da5450bf
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
@@ -30,6 +30,7 @@
import ChMapToGamePyPack
import PlayerFamilyTech
import PlayerFamilyRedPacket
import PlayerFamilyZhenfa
import SkillCommon
import BuffSkill
import ItemCommon
@@ -160,6 +161,7 @@
    GameLogic_FamilyWar.DoCheckChampionFamilyTitle(curPlayer)
    GameLogic_FamilyBoss.OnEnterFamily(curPlayer)
    PlayerFamilyRedPacket.CreatCacheRedPacktet(curPlayer)
    PlayerFamilyZhenfa.OnEnterFamily(curPlayer)
    return
## 退出家族触发事件
@@ -186,6 +188,7 @@
    #清空仓库积分
    PlayerControl.SetPlayerCurrency(curPlayer, ShareDefine.TYPE_Price_FamilyStoreScore, 0)
    GameLogic_FamilyWar.DoCheckChampionFamilyTitle(curPlayer)
    PlayerFamilyZhenfa.OnLeaveFamily(curPlayer)
    return
## 家族等级加持buff变更处理(进、退家族时 及 家族等级变更时)
@@ -641,6 +644,7 @@
    SyncFamilyActivityInfo(curPlayer)
    Sync_FamilyDayRewardState(curPlayer)
    __FamilyAffair_CheckReset(curPlayer)
    PlayerFamilyZhenfa.OnPlayerLogin(curPlayer)
    return
def FamilyPlayerOnLoginCross(curPlayer):
@@ -1139,6 +1143,11 @@
    starInfo = affairStarDict.get(str(star), [])
    needDuration = starInfo[1] if len(starInfo) > 1 else 0
    # 可扩展减时长属性
    speedPer = PlayerControl.GetAffairSpeedPer(curPlayer)
    if speedPer:
        needDuration = int(needDuration * max(10000 - speedPer, 0) / 10000.0)
        #GameWorld.DebugLog("事务加速: needDuration=%s,speedPer=%s" % (needDuration, speedPer), curPlayer.GetPlayerID())
    remainDuration = max(needDuration - (curTime - startTime), 0)
    return remainDuration