Ajout table DotR
This commit is contained in:
parent
e4bd3a38d1
commit
d844cc5079
60
compendium/wfrp4e-dotr.dotr-tables.json
Normal file
60
compendium/wfrp4e-dotr.dotr-tables.json
Normal file
File diff suppressed because one or more lines are too long
@ -2,7 +2,7 @@
|
|||||||
"name": "WH4-fr-translation",
|
"name": "WH4-fr-translation",
|
||||||
"title": "WFRP4e - Core Module en français.",
|
"title": "WFRP4e - Core Module en français.",
|
||||||
"description": "Traduction Française pour Warhammer v4.",
|
"description": "Traduction Française pour Warhammer v4.",
|
||||||
"version": "5.0.5",
|
"version": "5.0.6",
|
||||||
"minimumCoreVersion" : "0.8.0",
|
"minimumCoreVersion" : "0.8.0",
|
||||||
"compatibleCoreVersion": "9",
|
"compatibleCoreVersion": "9",
|
||||||
"author": "LeRatierBretonnien",
|
"author": "LeRatierBretonnien",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
package.path = package.path .. ";luajson/?.lua"
|
package.path = package.path .. ";luajson/?.lua"
|
||||||
local JSON = require"json"
|
local JSON = require"json"
|
||||||
|
|
||||||
local path_in = "../tables/weather.json"
|
local path_in = "../tables/winds.json"
|
||||||
local f1 = io.open(path_in, "r")
|
local f1 = io.open(path_in, "r")
|
||||||
local strjson = f1:read("*a")
|
local strjson = f1:read("*a")
|
||||||
f1:close()
|
f1:close()
|
||||||
@ -10,14 +10,14 @@ local tabData = JSON.decode(strjson)
|
|||||||
|
|
||||||
local results = {}
|
local results = {}
|
||||||
for idx, row in pairs(tabData.rows) do
|
for idx, row in pairs(tabData.rows) do
|
||||||
if row.range.Hiver[1] then
|
--if row.range.Hiver[1] then
|
||||||
local min = row.range.Hiver[1]
|
local min = row.range[1]
|
||||||
local max = row.range.Hiver[2]
|
local max = row.range[2]
|
||||||
local field = tostring(min).."-"..tostring(max)
|
local field = tostring(min).."-"..tostring(max)
|
||||||
results[field] = "<b>"..row.name.."</b>:"..row.description
|
--results[field] = "<b>"..row.name.."</b>:"..row.description
|
||||||
--results[field] = row.description
|
results[field] = row.modifier
|
||||||
print(field, row.name)
|
print(field, row.name)
|
||||||
end
|
--end
|
||||||
end
|
end
|
||||||
local entries = JSON.encode(results)
|
local entries = JSON.encode(results)
|
||||||
print()
|
print()
|
||||||
|
Loading…
Reference in New Issue
Block a user