summaryrefslogtreecommitdiff
path: root/helptexts.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-13 02:14:12 +0100
committerWuzzy <almikes@aol.com>2016-12-13 02:14:12 +0100
commita649505ad03a4927d087d8c82b754c6e59a5b496 (patch)
tree0f3bc758c6b9a950717a23b629d01a468a398098 /helptexts.lua
parentdaae620082252894fb2fe15da8dcd58cc9e38f5d (diff)
Specify use count in new doc_items format
Diffstat (limited to 'helptexts.lua')
-rw-r--r--helptexts.lua37
1 files changed, 26 insertions, 11 deletions
diff --git a/helptexts.lua b/helptexts.lua
index c636b34..a827fdb 100644
--- a/helptexts.lua
+++ b/helptexts.lua
@@ -46,8 +46,7 @@ else
beddesc = beddesc .. S("Going into bed seems to make time pass faster: The night will be skipped when you go sleep and you are the only human being in this world. If you are not alone, the night will be skipped as soon the majority of all humans went to bed.")
end
-local hoedesc = S("Hoes are essential tools for growing crops. They are used to create farming soil in order to plant seeds on it. ")
-local hoeusecount = S("Hoes of this kind can be used %d times before they break.")
+local hoedesc = S("Hoes are essential tools for growing crops. They are used to create farming soil in order to plant seeds on it.")
local hoeuse = S("Punch a cultivatable block with a hoe to turn it into soil. Dirt, dirt with grass, dirt with dry grass, dirt with snow and desert sand are cultivatable blocks.")
local axedesc = S("An axe is your tool of choice to cut down blocks which are affected by brute force, especially trees and wood. It also serves as a weapon in a pinch, although not as efficient as swords, but still acceptable.")
local sworddesc = S("Swords are great in melee combat, as they are fast, deal high damage and can endure countless battles. Swords are also surprisingly useful in cutting “snappy” plants and blocks, like grass, wheat and leaves, but this will wear them out much faster than by fighting.")
@@ -250,14 +249,14 @@ local export_longdesc = {
["tnt:gunpowder"] = S("Gunpowder is used to craft TNT and to create gunpowder trails which can be ignited."),
["fire:basic_flame"] = basicflametext,
- ["fire:flint_and_steel"] = S("Flint and steel is a tool to start fires. It can be used 64 times."),
+ ["fire:flint_and_steel"] = S("Flint and steel is a tool to start fires."),
["fire:permanent_flame"] = S("The permanent flame is a damaging and destructive block. It will create basic flames next to it if flammable blocks are nearby. Other than the basic flame, the permanent flame will not go away by time alone. Permanent flames will be extinguished by nearby water and other blocks. A single permanent flame block can be destroyed safely by punching it, but it is hurtful if you stand directly in it."),
["doors:trapdoor"] = S("A trapdoor covers a hole in the floor and can be opened manually to access the area below it."),
["doors:trapdoor_steel"] = S("A steel trapdoor covers a hole in the floor and can be opened manually only by the placer to access the area below it. Steel trapdoors are immune to explosions."),
- ["screwdriver:screwdriver"] = S("A screwdriver can be used to rotate blocks. It can be used 200 times."),
+ ["screwdriver:screwdriver"] = S("A screwdriver can be used to rotate blocks."),
["boats:boat"] = S("A simple boat which allows you to float on the surface of large water bodies. Travelling by boat is a bit faster than swimming."),
["carts:cart"] = S("A cart which you can use for quick transport of yourself and items while driving on rails."),
@@ -324,13 +323,12 @@ local export_longdesc = {
["stairs:stair_desert_stone_block"] = stairdesc,
["stairs:stair_sandstone_block"] = stairdesc,
["stairs:stair_obsidian_block"] = stairdesc,
- -- CHECKME: Hoe usage count
- ["farming:hoe_wood"] = hoedesc .. string.format(hoeusecount, 30),
- ["farming:hoe_stone"] = hoedesc .. string.format(hoeusecount, 90),
- ["farming:hoe_steel"] = hoedesc .. string.format(hoeusecount, 200),
- ["farming:hoe_bronze"] = hoedesc .. string.format(hoeusecount, 220),
- ["farming:hoe_mese"] = hoedesc .. string.format(hoeusecount, 350),
- ["farming:hoe_diamond"] = hoedesc .. string.format(hoeusecount, 500),
+ ["farming:hoe_wood"] = hoedesc,
+ ["farming:hoe_stone"] = hoedesc,
+ ["farming:hoe_steel"] = hoedesc,
+ ["farming:hoe_bronze"] = hoedesc,
+ ["farming:hoe_mese"] = hoedesc,
+ ["farming:hoe_diamond"] = hoedesc,
["default:pick_wood"] = pickaxedesc,
["default:pick_stone"] = pickaxedesc,
["default:pick_steel"] = pickaxedesc,
@@ -507,6 +505,18 @@ local export_generation = {
["default:nyancat_rainbow"] = S("These blocks are extremely rare. They only appear behind a Nyan Cat, which itself can appear randomly anywhere."),
}
+local export_uses = {
+ -- CHECKME: Use count
+ ["farming:hoe_wood"] = 30,
+ ["farming:hoe_stone"] = 90,
+ ["farming:hoe_steel"] = 200,
+ ["farming:hoe_bronze"] = 220,
+ ["farming:hoe_mese"] = 350,
+ ["farming:hoe_diamond"] = 500,
+ ["screwdriver:screwdriver"] = 200,
+ ["fire:flint_and_steel"] = 64,
+}
+
for itemstring, longdesc in pairs(export_longdesc) do
if minetest.registered_items[itemstring] ~= nil then
minetest.override_item(itemstring, { _doc_items_longdesc = longdesc } )
@@ -517,6 +527,11 @@ for itemstring, usagehelp in pairs(export_usagehelp) do
minetest.override_item(itemstring, { _doc_items_usagehelp = usagehelp} )
end
end
+for itemstring, uses in pairs(export_uses) do
+ if minetest.registered_items[itemstring] ~= nil then
+ minetest.override_item(itemstring, { _doc_items_uses = uses } )
+ end
+end
if minetest.get_modpath("doc_basics") then
doc.new_entry("advanced", "creative", {