Gestion des progression
This commit is contained in:
parent
b251ac9b6a
commit
8bc52b8712
669
compendium/wfrp4e-core.journal-entries_OLD.json
Normal file
669
compendium/wfrp4e-core.journal-entries_OLD.json
Normal file
File diff suppressed because one or more lines are too long
23
tools/convert_career_to_v10.lua
Normal file
23
tools/convert_career_to_v10.lua
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package.path = package.path .. ";luajson/?.lua"
|
||||||
|
local JSON = require"json"
|
||||||
|
|
||||||
|
--local enjsonf = "/home/morr/foundry/foundrydata-dev/Data/modules/wfrp4e-dotr/lang/en.json"
|
||||||
|
local careerv9 = "../compendium/wfrp4e-core.career-descriptions.json"
|
||||||
|
local careerv10 = "../compendium/v10_entries.json"
|
||||||
|
|
||||||
|
local fp = io.open(careerv9, "r")
|
||||||
|
local c9 = JSON.decode( fp:read("*a") )
|
||||||
|
fp:close()
|
||||||
|
|
||||||
|
local c10 = {}
|
||||||
|
for k, v in pairs( c9.entries) do
|
||||||
|
c10[v.id] = {
|
||||||
|
name = v.name,
|
||||||
|
text = v.description
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
local json10 = JSON.encode(c10)
|
||||||
|
fp = io.open(careerv10, "w+")
|
||||||
|
fp:write( json10)
|
||||||
|
fp:close()
|
Loading…
Reference in New Issue
Block a user