small fix
This commit is contained in:
+2
-2
@@ -80,11 +80,11 @@ function public.value(slot, quality, level)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function public.distribution(slot, quality, level)
|
function public.distribution(slot, quality, level)
|
||||||
if not (armor[slot] or weapon[slot]) then
|
if not (armor[slot] or weapon[slot]) or level == 0 then
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function p(probability_weapon, probability_armor)
|
local function p(probability_armor, probability_weapon)
|
||||||
if armor[slot] then
|
if armor[slot] then
|
||||||
return probability_armor
|
return probability_armor
|
||||||
elseif weapon[slot] then
|
elseif weapon[slot] then
|
||||||
|
|||||||
Reference in New Issue
Block a user