Skip to content
Snippets Groups Projects
Commit 0eed8100 authored by dg's avatar dg
Browse files

Fixed inscriptions in online chardumps

git-svn-id: http://svn.net-core.org/repos/t-engine4@5865 51575b47-30f0-44d4-a5cc-537603b46e54
parent b18607ab
No related branches found
No related tags found
No related merge requests found
......@@ -106,12 +106,12 @@ function _M:dumpToJSON(js, bypass, nosub)
-- Inscriptions
-------------------------------------------------------------------
local ins = js:newSection("inscriptions", {used=("%d/%d"):format(nb_inscriptions, self.max_inscriptions)})
ins.all = {}
ins = ins.all
for i = 1, self.max_inscriptions do if self.inscriptions[i] then
local t = self:getTalentFromId("T_"..self.inscriptions[i])
local desc = tostring(self:getTalentFullDescription(t))
local p = t.name:split(": ")
ins[p[1]] = ins[p[1]] or {}
ins[p[1]][p[2]] = desc
ins[#ins+1] = {name=t.name, kind=t.type[1], desc=desc}
end 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