From 80898c10c2268dcc258c31dcf9ae9840bc41bcd8 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 1 Jun 2016 18:12:26 +0200 Subject: [PATCH] fix for disenchant prediction of lowlvl uncommon weapons --- disenchant.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disenchant.lua b/disenchant.lua index 4c2d798..69e112e 100644 --- a/disenchant.lua +++ b/disenchant.lua @@ -95,8 +95,8 @@ function public.distribution(slot, quality, level) if quality == UNCOMMON then if level <= 10 then return { - {item_id=10940, min_quantity=1, max_quantity=2, probability=0.8}, - {item_id=10938, min_quantity=1, max_quantity=2, probability=0.2}, + {item_id=10940, min_quantity=1, max_quantity=2, probability=p(0.8, 0.2)}, + {item_id=10938, min_quantity=1, max_quantity=2, probability=p(0.2, 0.8)}, } elseif level <= 15 then return {