| | |
| | | import ChMapToGamePyPack
|
| | | import PlayerFamilyTech
|
| | | import PlayerFamilyRedPacket
|
| | | import PlayerFamilyZhenfa
|
| | | import SkillCommon
|
| | | import BuffSkill
|
| | | import ItemCommon
|
| | |
| | | GameLogic_FamilyWar.DoCheckChampionFamilyTitle(curPlayer)
|
| | | GameLogic_FamilyBoss.OnEnterFamily(curPlayer)
|
| | | PlayerFamilyRedPacket.CreatCacheRedPacktet(curPlayer)
|
| | | PlayerFamilyZhenfa.OnEnterFamily(curPlayer)
|
| | | return
|
| | |
|
| | | ## 退出家族触发事件
|
| | |
| | | #清空仓库积分
|
| | | PlayerControl.SetPlayerCurrency(curPlayer, ShareDefine.TYPE_Price_FamilyStoreScore, 0)
|
| | | GameLogic_FamilyWar.DoCheckChampionFamilyTitle(curPlayer)
|
| | | PlayerFamilyZhenfa.OnLeaveFamily(curPlayer)
|
| | | return
|
| | |
|
| | | ## 家族等级加持buff变更处理(进、退家族时 及 家族等级变更时)
|
| | |
| | | SyncFamilyActivityInfo(curPlayer)
|
| | | Sync_FamilyDayRewardState(curPlayer)
|
| | | __FamilyAffair_CheckReset(curPlayer)
|
| | | PlayerFamilyZhenfa.OnPlayerLogin(curPlayer)
|
| | | return
|
| | |
|
| | | def FamilyPlayerOnLoginCross(curPlayer):
|
| | |
| | | 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
|
| | |
|