Skip to content
Snippets Groups Projects
Commit 981472a3 authored by dg's avatar dg
Browse files

Objects granting esp now correctly say what (like "demon/major" instead of just "major")

git-svn-id: http://svn.net-core.org/repos/t-engine4@3757 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3cbd4b8b
No related branches found
No related tags found
No related merge requests found
......@@ -533,7 +533,7 @@ function _M:getTextualDesc(compare_with)
local _, _, t, st = type:find("^([^/]+)/?(.*)$")
local esp = ""
if st and st ~= "" then
esp = st:capitalize()
esp = t:capitalize().."/"..st:capitalize()
else
esp = t:capitalize()
end
......@@ -553,7 +553,7 @@ function _M:getTextualDesc(compare_with)
for type, i in pairs(w.esp or {}) do
local _, _, t, st = type:find("^([^/]+)/?(.*)$")
if st and st ~= "" then
esps[#esps+1] = st:capitalize()
esps[#esps+1] = t:capitalize().."/"..st:capitalize()
else
esps[#esps+1] = t:capitalize()
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment