| | |
| | | itemManager = curPlayer.GetItemManager()
|
| | |
|
| | | for packIndex in ChConfig.Def_PlayerLoginInitPackIndexList:
|
| | | itemManager.GetPack(packIndex).Sync_Refresh()
|
| | |
|
| | | rolePack = itemManager.GetPack(packIndex)
|
| | | rolePack.Sync_Refresh()
|
| | | |
| | | # 刷下装备评分,仓库可以暂不处理,取出装备后登录触发刷新
|
| | | for i in xrange(rolePack.GetCount()):
|
| | | curItem = rolePack.GetAt(i)
|
| | | if curItem.IsEmpty():
|
| | | continue
|
| | | newScore = ItemCommon.CalcEquipGS(curItem)
|
| | | hisScore = ItemCommon.GetEquipGearScore(curItem)
|
| | | if hisScore != newScore:
|
| | | ItemCommon.SetEquipGearScore(curItem, newScore)
|
| | | GameWorld.Log("登录更新装备评分: packType=%s,i=%s,hisScore=%s,newScore=%s,itemID=%s,guid=%s" |
| | | % (packIndex, i, hisScore, newScore, curItem.GetItemTypeID(), curItem.GetGUID()), curPlayer.GetPlayerID())
|
| | | |
| | | for packIndex in ChConfig.Def_VPackCnt_Dict.keys():
|
| | | ItemControler.Sync_VPackItem_Refresh(curPlayer, packIndex)
|
| | |
|