Enchanting: Do not assume groupcaps times always go from 1 to 3

This commit is contained in:
LeMagnesium 2016-02-28 22:23:07 +01:00 committed by Jean-Patrick Guerrero
parent b39a86f1ce
commit 9a30672cf1

View File

@ -169,8 +169,8 @@ for enchant in tooldef[2]:gmatch("[%w_]+") do
if enchant == "durable" then
groupcaps[group].uses = math.ceil(original_groupcaps[group].uses * enchanting.uses)
elseif enchant == "fast" then
for i = 1, 3 do
groupcaps[group].times[i] = original_groupcaps[group].times[i] - enchanting.times
for i, time in pairs(original_groupcaps[group].times) do
groupcaps[group].times[i] = time - enchanting.times
end
elseif enchant == "sharp" then
fleshy = fleshy + enchanting.damages