From 885d6398fd6bdaf97b4a4513ad10273fca4ee639 Mon Sep 17 00:00:00 2001 From: JPG Date: Mon, 9 Oct 2017 21:52:20 +0200 Subject: [PATCH] Remove remaining 3d_armor's support code --- src/enchanting.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/enchanting.lua b/src/enchanting.lua index f162667..ad2e7e4 100644 --- a/src/enchanting.lua +++ b/src/enchanting.lua @@ -9,9 +9,6 @@ local enchanting = { uses = 1.2, -- Durability times = 0.1, -- Efficiency damages = 1, -- Sharpness - strength = 1.2, -- Armor strength (3d_armor only) - speed = 0.2, -- Player speed (3d_armor only) - jump = 0.2 -- Player jumping (3d_armor only) } local function cap(S) return S:gsub("^%l", string.upper) end @@ -71,9 +68,7 @@ function enchanting.formspec(pos, num) image[2,2.9;1,1;mese_layout.png] tooltip[sharp;Your weapon inflicts more damages] tooltip[durable;Your tool last longer] - tooltip[fast;Your tool digs faster] - tooltip[strong;Your armor is more resistant] - tooltip[speed;Your speed is increased] ]] + tooltip[fast;Your tool digs faster] ]] ..default.gui_slots..default.get_hotbar_bg(0.5,4.5) formspec = formspec..(enchant_buttons[num] or "") @@ -85,8 +80,7 @@ function enchanting.on_put(pos, listname, _, stack) local stackname = stack:get_name() local tool_groups = { "axe, pick, shovel", - "chestplate, leggings, helmet", - "sword", "boots" + "sword", } for idx, tools in pairs(tool_groups) do