summaryrefslogtreecommitdiff
path: root/lib/core/xml.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/xml.lua')
-rw-r--r--lib/core/xml.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/core/xml.lua b/lib/core/xml.lua
index f1188d51..14f0511f 100644
--- a/lib/core/xml.lua
+++ b/lib/core/xml.lua
@@ -173,6 +173,34 @@ function xml:english_xml(t, tab, not_flag)
nextlevel = tab
end
children_not_flag = not nil
+ elseif t.label == "inventory" then
+ if not_flag then
+ xml.write(TERM_WHITE, tab)
+ xml.write(ecol, "Nothing in your ")
+ xml.write(bcol, "inventory")
+ xml.write(ecol, " matches the following:")
+ xml.write(TERM_WHITE, "\n")
+ else
+ xml.write(TERM_WHITE, tab)
+ xml.write(ecol, "Something in your ")
+ xml.write(bcol, "inventory")
+ xml.write(ecol, " matches the following:")
+ xml.write(TERM_WHITE, "\n")
+ end
+ elseif t.label == "equipment" then
+ if not_flag then
+ xml.write(TERM_WHITE, tab)
+ xml.write(ecol, "Nothing in your ")
+ xml.write(bcol, "equipment")
+ xml.write(ecol, " matches the following:")
+ xml.write(TERM_WHITE, "\n")
+ else
+ xml.write(TERM_WHITE, tab)
+ xml.write(ecol, "Something in your ")
+ xml.write(bcol, "equipment")
+ xml.write(ecol, " matches the following:")
+ xml.write(TERM_WHITE, "\n")
+ end
elseif t.label == "comment" then
xml.write(TERM_WHITE, tab)
xml.write(TERM_WHITE, "(" .. t[1] .. ")")