From b7f25c99eb9cd76c26d97ed9a7119140a98b6043 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 28 Dec 2021 10:41:35 +0100 Subject: [PATCH] Ajout traduction des jobs, par Thargos --- tools/foundry_convert_tables.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/foundry_convert_tables.lua b/tools/foundry_convert_tables.lua index 2f5c06a..0365144 100644 --- a/tools/foundry_convert_tables.lua +++ b/tools/foundry_convert_tables.lua @@ -2,7 +2,7 @@ package.path = package.path .. ";luajson/?.lua" local JSON = require"json" -local path_in = "../tables/doom2.json" +local path_in = "../tables/job.json" local f1 = io.open(path_in, "r") local strjson = f1:read("*a") f1:close() @@ -10,14 +10,14 @@ local tabData = JSON.decode(strjson) local results = {} for idx, row in pairs(tabData.rows) do - --if row.range.Hiver[1] then - local min = row.range[1] - local max = row.range[2] + if row.range.Pourquoi[1] then + local min = row.range.Pourquoi[1] + local max = row.range.Pourquoi[2] local field = tostring(min).."-"..tostring(max) --results[field] = ""..row.name..":"..row.description - results[field] = row.description + results[field] = row.Pourquoi.description print(field, row.name) - --end + end end local entries = JSON.encode(results) print()