Translate creatures traitsé

This commit is contained in:
2020-04-22 20:22:34 +02:00
parent 6aab412c1c
commit 6750d70615
6 changed files with 168 additions and 24030 deletions

1
tools/beasts.json Normal file

File diff suppressed because one or more lines are too long

View File

@ -55,9 +55,9 @@ while line do
end
if not sel_beastfr then print(">>>>>>>>>>>>>>> NO BEAST !!!", beast.name) end
local uniq = io.open(beast.name .. ".json", "w+")
uniq:write(line)
uniq:close()
--local uniq = io.open(beast.name .. ".json", "w+")
--uniq:write(line)
--uniq:close()
--print(beast.name, beast.items)
if beast.items then
@ -73,10 +73,11 @@ while line do
if traitdata.id == trim1(name) then
found = true
--local newtrait = { }
traitbeast.id = trim1(traitbeast.name)
--traitbeast.id = trim1(traitbeast.name)
traitbeast._id = nil
traitbeast.name = trim1(traitdata.name)
if traitbeast.data.biography then
traitbeast.data.biography.value = traitdata.description
if traitbeast.data.description then
traitbeast.data.description.value = traitdata.description
end
if SIZE2FR[traitbeast.data.specification.value] then
traitbeast.data.specification.value = SIZE2FR[traitbeast.data.specification.value]
@ -92,9 +93,9 @@ while line do
end
end
end
sel_beastfr.items = beast.items
--sel_beastfr.items = beast.items
--sel_beastfr.items = myitems
--sel_beastfr.items = nil
sel_beastfr.items = nil
end
line = f1:read()
end