DengSir / tdPack2

MIT License
3 stars 2 forks source link

修复包里的25级小宠物导致背包整理出错 #6

Open SwimmingTiger opened 3 years ago

SwimmingTiger commented 3 years ago

如图,小宠物itemGetItemLevel()GetItemSetId()GetItemQuality()等方法返回nil

image

SwimmingTiger commented 3 years ago

战斗宠物item的大部分GetItem*()方法都返回nil,只有item:GetItemCount()item:GetItemId()有值。

    self.levelQualityOrder = function(item)
        if item:GetItemLevel() == nil then
            print(item, item:GetItemName(), item:GetItemCount(), item:GetItemId(),
                item:GetItemLevel(), item:GetItemQuality(), item:GetItemSetId(),
                item:GetItemSubType(), item:GetItemTag(), item:GetItemType())
        end
        -- ...
    end

image