Total Complexity | 2 |
Complexity/F | 0 |
Lines of Code | 24 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /* eslint-env node */ |
||
3 | 'use strict'; |
||
4 | |||
5 | let jsonfile = require('jsonfile'); |
||
6 | |||
7 | let generators = jsonfile.readFileSync('build/data/generators.json'); |
||
8 | let upgrades = jsonfile.readFileSync('build/data/upgrades.json'); |
||
9 | |||
10 | let slot = {}; |
||
11 | |||
12 | slot.upgrades = {}; |
||
13 | for (let upgrade in upgrades) { |
||
14 | slot.upgrades[upgrade] = false; |
||
15 | } |
||
16 | slot.generators = {}; |
||
17 | for (let generator in generators) { |
||
18 | slot.generators[generator] = 0; |
||
19 | } |
||
20 | |||
21 | slot.reactions = []; |
||
22 | slot.redoxes = []; |
||
23 | |||
24 | jsonfile.writeFileSync('build/data/element_slot.json', slot, { |
||
25 | spaces: 2 |
||
26 | }); |
||
27 |