Ajout table EiS

This commit is contained in:
sladecraven 2021-12-24 14:55:09 +01:00
parent b49ee225b5
commit e4bd3a38d1
3 changed files with 70 additions and 39 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
"name": "WH4-fr-translation",
"title": "WFRP4e - Core Module en français.",
"description": "Traduction Française pour Warhammer v4.",
"version": "5.0.4",
"version": "5.0.5",
"minimumCoreVersion" : "0.8.0",
"compatibleCoreVersion": "9",
"author": "LeRatierBretonnien",

View File

@ -2,7 +2,7 @@
package.path = package.path .. ";luajson/?.lua"
local JSON = require"json"
local path_in = "../tables/job.json"
local path_in = "../tables/weather.json"
local f1 = io.open(path_in, "r")
local strjson = f1:read("*a")
f1:close()
@ -10,12 +10,12 @@ local tabData = JSON.decode(strjson)
local results = {}
for idx, row in pairs(tabData.rows) do
if row.range.Pourquoi[1] then
local min = row.range.Pourquoi[1]
local max = row.range.Pourquoi[2]
if row.range.Hiver[1] then
local min = row.range.Hiver[1]
local max = row.range.Hiver[2]
local field = tostring(min).."-"..tostring(max)
--results[field] = "<b>"..row.name.."</b>:"..row.description
results[field] = row.Pourquoi.description
results[field] = "<b>"..row.name.."</b>:"..row.description
--results[field] = row.description
print(field, row.name)
end
end