|  |  |  | 
|---|
|  |  |  | ''' 获取功能产出的物品实例 | 
|---|
|  |  |  | @param isAuctionItem: 是否拍品,默认非拍品 | 
|---|
|  |  |  | @param expireTime: 有效时间,时间单位由时效类型决定 | 
|---|
|  |  |  | @param curPlayer: 产出该物品时的玩家,非拍品时需传入该值,物品某些属性由玩家等级决定,如传奇属性 | 
|---|
|  |  |  | @param curPlayer: 产出该物品时的玩家,物品某些属性由玩家等级决定,如传奇属性 | 
|---|
|  |  |  | @param isAllAttr: 是否生成该装备所有属性,GM创建物品时用,需验证相关权限 | 
|---|
|  |  |  | ''' | 
|---|
|  |  |  | curItem = ItemCommon.CreateSingleItem(itemID, itemCount, isAuctionItem, expireTime) | 
|---|
|  |  |  | 
|---|
|  |  |  | if not legendAttrCountInfoList: | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if not curPlayer: | 
|---|
|  |  |  | GameWorld.ErrLog("生成装备传奇属性时玩家不存在!itemID=%s" % (itemID)) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | playerID, playerLV = curPlayer.GetPlayerID(), curPlayer.GetLV() | 
|---|
|  |  |  | if curPlayer: | 
|---|
|  |  |  | playerID, playerLV = curPlayer.GetPlayerID(), curPlayer.GetLV() | 
|---|
|  |  |  | else: | 
|---|
|  |  |  | playerID = 0 | 
|---|
|  |  |  | playerLV = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv) | 
|---|
|  |  |  | GameWorld.Log("生成装备传奇属性时没有玩家等级, 取当前世界等级! itemID=%s,worldLV=%s" % (itemID, playerLV)) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 2. 定属性ID | 
|---|
|  |  |  | attrTypeIpyData = IpyGameDataPY.GetIpyGameData("EquipLegendAttrType", itemType) | 
|---|
|  |  |  | if not attrTypeIpyData: | 
|---|