From edf39274c4852edef751425ec765392e5991af0b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 15 Dec 2016 18:04:16 +0100 Subject: =?UTF-8?q?Rename=20=E2=80=9Cmining=20level=E2=80=9D=20to=20?= =?UTF-8?q?=E2=80=9Ctoughness=20level=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index e677ebf..f3ba7f0 100644 --- a/init.lua +++ b/init.lua @@ -224,7 +224,7 @@ local factoid_toolcaps = function(tool_capabilities, check_uses) end if caplines > 0 then formstring = formstring .. S("This tool is capable of mining.") .. "\n" - formstring = formstring .. S("Maximum mining levels:") .. "\n" + formstring = formstring .. S("Maximum toughness levels:") .. "\n" formstring = formstring .. miningcapstr formstring = newline(formstring) end @@ -645,7 +645,7 @@ doc.new_category("nodes", { -- Expose “ordinary” mining groups (crumbly, cracky, etc.) and level group -- Skip this for immediate digging to avoid redundancy if data.def.groups.dig_immediate ~= 3 then - local mstring = S("This block can be mined by mining tools which match any of the following mining ratings and its mining level.").."\n" + local mstring = S("This block can be mined by mining tools which match any of the following mining ratings and its toughness level.").."\n" mstring = mstring .. S("Mining ratings:").."\n" local minegroupcount = 0 for group,_ in pairs(mininggroups) do @@ -655,11 +655,11 @@ doc.new_category("nodes", { minegroupcount = minegroupcount + 1 end end - if data.def.groups.level ~= nil then - mstring = mstring .. S("Mining level: @1", data.def.groups.level).."\n" - else - mstring = mstring .. S("Mining level: 0").."\n" + local level = data.def.groups.level + if not level then + level = 0 end + mstring = mstring .. S("Toughness level: @1", level).."\n" if minegroupcount > 0 then datastring = datastring .. mstring -- cgit v1.2.3