]> git.lizzy.rs Git - xdecor.git/commitdiff
Fix echnating for sword and delete data for armor
authorJat15 <jinan15@hotmail.com>
Sat, 21 Jul 2018 15:27:34 +0000 (17:27 +0200)
committerJean-Patrick Guerrero <kilbith@users.noreply.github.com>
Mon, 23 Jul 2018 13:51:11 +0000 (15:51 +0200)
src/enchanting.lua

index a9279f505400b504a0578418dbcf3abdd6256cd4..5e30d59738b8072b3864e9e67f26b9f55e192437 100644 (file)
@@ -36,8 +36,6 @@ function enchanting:get_tooltip(enchant, orig_caps, fleshy)
                durable = {"#00baff", " (+"..bonus.durable.."%)"},
                fast    = {"#74ff49", " (+"..bonus.efficiency.."%)"},
                sharp   = {"#ffff00", " (+"..bonus.damages.."%)"},
-               strong  = {"#ff3d3d", ""},
-               speed   = {"#fd5eff", ""}
        }
        return minetest.colorize and minetest.colorize(specs[enchant][1],
                        "\n"..cap(enchant)..specs[enchant][2]) or
@@ -47,10 +45,7 @@ end
 local enchant_buttons = {
        [[ image_button[3.9,0.85;4,0.92;bg_btn.png;fast;Efficiency]
        image_button[3.9,1.77;4,1.12;bg_btn.png;durable;Durability] ]],
-       "image_button[3.9,0.85;4,0.92;bg_btn.png;strong;Strength]",
        "image_button[3.9,2.9;4,0.92;bg_btn.png;sharp;Sharpness]",
-       [[ image_button[3.9,0.85;4,0.92;bg_btn.png;strong;Strength]
-       image_button[3.9,1.77;4,1.12;bg_btn.png;speed;Speed] ]]
 }
 
 function enchanting.formspec(pos, num)