Enchanting: Do not assume groupcaps times always go from 1 to 3
This commit is contained in:
parent
b39a86f1ce
commit
9a30672cf1
@ -169,8 +169,8 @@ for enchant in tooldef[2]:gmatch("[%w_]+") do
|
|||||||
if enchant == "durable" then
|
if enchant == "durable" then
|
||||||
groupcaps[group].uses = math.ceil(original_groupcaps[group].uses * enchanting.uses)
|
groupcaps[group].uses = math.ceil(original_groupcaps[group].uses * enchanting.uses)
|
||||||
elseif enchant == "fast" then
|
elseif enchant == "fast" then
|
||||||
for i = 1, 3 do
|
for i, time in pairs(original_groupcaps[group].times) do
|
||||||
groupcaps[group].times[i] = original_groupcaps[group].times[i] - enchanting.times
|
groupcaps[group].times[i] = time - enchanting.times
|
||||||
end
|
end
|
||||||
elseif enchant == "sharp" then
|
elseif enchant == "sharp" then
|
||||||
fleshy = fleshy + enchanting.damages
|
fleshy = fleshy + enchanting.damages
|
||||||
|
Loading…
Reference in New Issue
Block a user