summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua6
-rw-r--r--locale/de.txt1
-rw-r--r--locale/template.txt1
3 files changed, 7 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 99cbd32..c695604 100644
--- a/init.lua
+++ b/init.lua
@@ -215,7 +215,11 @@ local factoid_toolcaps = function(tool_capabilities, check_uses)
if check_uses and base_uses > 0 then
for level=0, maxlevel do
local real_uses = base_uses * math.pow(3, maxlevel - level)
- miningusesstr = miningusesstr .. S("• @1, level @2: @3 uses", doc.sub.items.get_group_name(k), level, real_uses)
+ if real_uses < 65535 then
+ miningusesstr = miningusesstr .. S("• @1, level @2: @3 uses", doc.sub.items.get_group_name(k), level, real_uses)
+ else
+ miningusesstr = miningusesstr .. S("• @1, level @2: Unlimited", doc.sub.items.get_group_name(k), level)
+ end
miningusesstr = miningusesstr .. "\n"
useslines = useslines + 1
end
diff --git a/locale/de.txt b/locale/de.txt
index 573becf..3c6b94a 100644
--- a/locale/de.txt
+++ b/locale/de.txt
@@ -136,3 +136,4 @@ Durability: @1 uses = Haltbarkeit: @1 Benutzungen
Durability: @1 = Haltbarkeit: @1
Mining durability: = Grabehaltbarkeit:
• @1, level @2: @3 uses = • @1, Stufe @2: @3 Benutzungen
+• @1, level @2: Unlimited = • @1, Stufe @2: Unbegrenzt
diff --git a/locale/template.txt b/locale/template.txt
index 323a84e..0de5c3a 100644
--- a/locale/template.txt
+++ b/locale/template.txt
@@ -136,3 +136,4 @@ Durability: @1 uses =
Durability: @1 =
Mining durability: =
• @1, level @2: @3 uses =
+• @1, level @2: Unlimited =