summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-02 14:49:19 +0200
committerWuzzy <almikes@aol.com>2016-08-02 14:49:19 +0200
commit6866590d412d508487598a104b93b1b8a6ab962e (patch)
tree305f9a4f7a149f048b9615fb6f9675aceb65e834 /init.lua
parent724f67cfd2bd4ba34801dde4a6ea4e6b77e20c81 (diff)
Better explanation of mining/damage caps
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index dbd4403..52d919b 100644
--- a/init.lua
+++ b/init.lua
@@ -110,7 +110,7 @@ local toolcaps_to_text = function(tool_capabilities)
local groupcaps = tool_capabilities.groupcaps
if groupcaps ~= nil then
- formstring = formstring .. "Mining capabilities:\n"
+ formstring = formstring .. "This tool is capable of mining.\nMining capabilities:\n"
for k,v in pairs(groupcaps) do
local minrating, maxrating
for rating, time in pairs(v.times) do
@@ -144,7 +144,7 @@ local toolcaps_to_text = function(tool_capabilities)
local damage_groups = tool_capabilities.damage_groups
if damage_groups ~= nil then
- formstring = formstring .. "Damage:\n"
+ formstring = formstring .. "This is a melee weapon which deals damage by punching.\nMaximum damage per hit:\n"
for k,v in pairs(damage_groups) do
formstring = formstring .. "- " .. group_to_string(k, "damage") .. ": " .. v .. " HP\n"
end
@@ -287,7 +287,8 @@ doc.new_category("nodes", {
-- minetest_game factoids
-- Expose mining groups (crumbly, cracky, etc.) and level group
- local mstring = "Mining ratings:\n"
+ local mstring = "This block can be mined by mining tools which match any of the following mining ratings and its mining level.\n"
+ mstring = mstring .. "Mining ratings:\n"
local minegroupcount = 0
for g,name in pairs(minegroups) do
local rating = data.def.groups[g]