Translate creatures traitsé
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user