diff options
| author | Wuzzy <Wuzzy@disroot.org> | 2022-10-09 14:05:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-09 08:05:22 -0400 |
| commit | c1c68775b25314b566a2aae9a304d1b470f5794d (patch) | |
| tree | 127bdadf77939c194d1ec01696a9a0440f769a7b /games/devtest/mods/basetools/init.lua | |
| parent | 804a31818907e737a1ec727580d5822532ff3e6b (diff) | |
| download | minetest-c1c68775b25314b566a2aae9a304d1b470f5794d.tar.xz | |
DevTest: Explain purpose of most items in tooltips (#12833)
Diffstat (limited to 'games/devtest/mods/basetools/init.lua')
| -rw-r--r-- | games/devtest/mods/basetools/init.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/games/devtest/mods/basetools/init.lua b/games/devtest/mods/basetools/init.lua index 3ec69d39f..c0bd1d00b 100644 --- a/games/devtest/mods/basetools/init.lua +++ b/games/devtest/mods/basetools/init.lua @@ -424,9 +424,15 @@ minetest.register_tool("basetools:dagger_steel", { local uses = { 1, 2, 3, 5, 10, 50, 100, 1000, 10000, 65535 } for i=1, #uses do local u = uses[i] + local ustring + if i == 1 then + ustring = u.."-Use" + else + ustring = u.."-Uses" + end local color = string.format("#FF00%02X", math.floor(((i-1)/#uses) * 255)) minetest.register_tool("basetools:pick_uses_"..string.format("%05d", u), { - description = u.."-Uses Pickaxe".."\n".. + description = ustring.." Pickaxe".."\n".. "Digs cracky=3", inventory_image = "basetools_usespick.png^[colorize:"..color..":127", tool_capabilities = { @@ -438,7 +444,7 @@ for i=1, #uses do }) minetest.register_tool("basetools:sword_uses_"..string.format("%05d", u), { - description = u.."-Uses Sword".."\n".. + description = ustring.." Sword".."\n".. "Damage: fleshy=1", inventory_image = "basetools_usessword.png^[colorize:"..color..":127", tool_capabilities = { |
