| | |
| | | #切地图要清除的buff
|
| | | __CheckClearBuffOnMapChange(curPlayer, tick)
|
| | |
|
| | | #上线和切地图加有限无敌Buff
|
| | | if curPlayer.GetLV() > 50:
|
| | | if GameWorld.GetMap().GetMapFBType() != IPY_GameWorld.fbtNull:
|
| | | #副本地图上线切换才加无敌buff
|
| | | SkillCommon.AddBuffBySkillType_NoRefurbish(curPlayer, ChConfig.Def_SkillID_LimitSuperBuff, tick)
|
| | |
|
| | | #刷新玩家的视野
|
| | |
| | | #初始化神兽装备背包
|
| | | curPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptDogzEquip)
|
| | | curPack.SetCount(ChConfig.Def_PackCnt_DogzEquip)
|
| | | curPack.Sync_PackCanUseCount()
|
| | | |
| | | #初始化诛仙物品背包
|
| | | curPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptZhuXianItem)
|
| | | curPack.SetCount(ChConfig.Def_PackCnt_ZhuXianItem)
|
| | | curPack.Sync_PackCanUseCount()
|
| | | #初始化诛仙装备背包
|
| | | curPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptZhuXianEquip)
|
| | | curPack.SetCount(ChConfig.Def_PackCnt_ZhuXianEquip)
|
| | | curPack.Sync_PackCanUseCount()
|
| | |
|
| | | #初始化临时交换背包
|
| | |
| | | delIndex = -1
|
| | | expireTime = 0
|
| | | for itemID in needItemIDList:
|
| | | hasEnough, itemIndexList = ItemCommon.GetItem_FromPack_ByID(itemID, itemPack, 1)
|
| | | if not hasEnough:
|
| | | hasEnough, itemIndexList = ItemCommon.GetItem_FromPack_ByID(itemID, itemPack, 10)
|
| | | if not itemIndexList:
|
| | | #GameWorld.DebugLog("重置加点 item(%s) isn't enough" % (needItemID))
|
| | | continue
|
| | |
|
| | |
| | | if remainingTime <= 0:
|
| | | #过期
|
| | | continue
|
| | | if remainingTime < expireTime:
|
| | | if not expireTime or remainingTime < expireTime:
|
| | | expireTime = remainingTime
|
| | | delIndex = itemIndex
|
| | | else:
|