diff options
author | Wuzzy <almikes@aol.com> | 2016-08-03 15:34:15 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-03 15:34:15 +0200 |
commit | dda97b0c0020c8dfe3cc51ddcb4896dd47392099 (patch) | |
tree | f8d0e6405f8f5c2cf7b85b6860d9777cdd00ee17 | |
parent | d29f612c4c1c2ae05a7ae17a0fa0901d741a7c41 (diff) |
Rename helptext gather functions
-rw-r--r-- | init.lua | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -544,12 +544,15 @@ doc.new_category("craftitems", { doc.sub.items.help = {} doc.sub.items.help.longdesc = {} doc.sub.items.help.usagehelp = {} --- Gather help texts -function doc.sub.items.add_helptexts(longdesc, usagehelp) - for k,v in pairs(longdesc) do +-- Sets the long description for a table of items +function doc.sub.items.set_items_longdesc(longdesc_table) + for k,v in pairs(longdesc_table) do doc.sub.items.help.longdesc[k] = v end - for k,v in pairs(usagehelp) do +end +-- Sets the usage help texts for a table of items +function doc.sub.items.set_items_usagehelp(usagehelp_table) + for k,v in pairs(usagehelp_table) do doc.sub.items.help.usagehelp[k] = v end end |