From 1695928b837f4ca242a2ee30bb4842385a275ed0 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 9 Apr 2016 18:53:46 +0200 Subject: [PATCH] disenchant value bugfix --- core.lua | 2 +- disenchant.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index fa1f63e..75095c5 100644 --- a/core.lua +++ b/core.lua @@ -1,5 +1,5 @@ Aux = { - version = '2.11.0', + version = '2.11.1', blizzard_ui_shown = false, orig = {}, } diff --git a/disenchant.lua b/disenchant.lua index 3eb851a..4c2d798 100644 --- a/disenchant.lua +++ b/disenchant.lua @@ -148,13 +148,13 @@ function public.distribution(slot, quality, level) } elseif level <= 55 then return { - {item_id=16204, quantity=1.5, probability=p(0.75, 0.22)}, + {item_id=16204, min_quantity=1, max_quantity=2, probability=p(0.75, 0.22)}, {item_id=16203, min_quantity=1, max_quantity=2, probability=p(0.2, 0.75)}, {item_id=14344, min_quantity=1, max_quantity=1, probability=p(0.05, 0.03)}, } elseif level <= 60 then return { - {item_id=16204, quantity=3.5, probability=p(0.75, 0.22)}, + {item_id=16204, min_quantity=2, max_quantity=5, probability=p(0.75, 0.22)}, {item_id=16203, min_quantity=2, max_quantity=3, probability=p(0.2, 0.75)}, {item_id=14344, min_quantity=1, max_quantity=1, probability=p(0.05, 0.03)}, }