Commit 4233bce7 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent fbd529fd
......@@ -154,6 +154,34 @@ async function run() {
levelBaseDays.push({level: uniqLevels[l], uniqDaysRun: levelInline.length})
}
let newTypeSort=[]
for (let l = 0; l < uniqType.length; l++) {
let levelInline = []
let maxLevel=0
for (let i = 0; i < configs.length; i++) {
let config = await fs.readFileSync('./uniq/' + configs[i] + '/default/compound1000.json', 'utf8')
config = JSON.parse(config)
for (let j = 0; j < config.length; j++) {
if (config[j].type.split('targetPercentage:false')[1] === uniqType[l]) {
if (config[j].maxLevel >maxLevel)
maxLevel=config[j].maxLevel
}
}
}
newTypeSort.push({type: uniqType[l], maxLevel: maxLevel})
}
createConfileADV(JSON.stringify(newTypeSort, null, 2))
console.log(levelBaseDays)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment