Rename helptext gather functions

This commit is contained in:
Wuzzy 2016-08-03 15:34:15 +02:00
parent d29f612c4c
commit dda97b0c00

View File

@ -544,12 +544,15 @@ doc.new_category("craftitems", {
doc.sub.items.help = {} doc.sub.items.help = {}
doc.sub.items.help.longdesc = {} doc.sub.items.help.longdesc = {}
doc.sub.items.help.usagehelp = {} doc.sub.items.help.usagehelp = {}
-- Gather help texts -- Sets the long description for a table of items
function doc.sub.items.add_helptexts(longdesc, usagehelp) function doc.sub.items.set_items_longdesc(longdesc_table)
for k,v in pairs(longdesc) do for k,v in pairs(longdesc_table) do
doc.sub.items.help.longdesc[k] = v doc.sub.items.help.longdesc[k] = v
end 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 doc.sub.items.help.usagehelp[k] = v
end end
end end