Add modification information

This commit is contained in:
Cmdr McDonald
2016-10-24 13:17:11 +01:00
parent 499f1d05e1
commit c1f21cf6f1
6 changed files with 183 additions and 3 deletions

41
dist/index.js vendored
View File

@@ -11971,5 +11971,44 @@ module.exports = {
recover: 1
} ]
}
},
Modifications: {
modifiers: {
"1": {
value: "pGen",
description: "Modifier for power generation",
operator: "multiply"
},
"2": {
value: "power",
description: "Modifier for power usage",
operator: "multiply"
},
"3": {
value: "integrity",
description: "Modifier for integrity",
operator: "multiply"
},
"4": {
value: "mass",
description: "Modifier for mass",
operator: "multiply"
},
"5": {
value: "eff",
description: "Modifier for heat efficiency",
operator: "multiply"
}
},
validity: {
pp: [ 1, 3, 4, 5 ],
t: [ 2, 3, 4, 5 ],
fsd: [ 2, 3, 4, 5 ],
ls: [ 2, 3, 4, 5 ],
pd: [ 2, 3, 4, 5 ],
s: [ 2, 3, 4, 5 ],
ft: [],
pas: []
}
}
};
};

69
dist/index.json vendored
View File

@@ -14364,5 +14364,74 @@
}
]
}
},
"Modifications": {
"modifiers": {
"1": {
"value": "pGen",
"description": "Modifier for power generation",
"operator": "multiply"
},
"2": {
"value": "power",
"description": "Modifier for power usage",
"operator": "multiply"
},
"3": {
"value": "integrity",
"description": "Modifier for integrity",
"operator": "multiply"
},
"4": {
"value": "mass",
"description": "Modifier for mass",
"operator": "multiply"
},
"5": {
"value": "eff",
"description": "Modifier for heat efficiency",
"operator": "multiply"
}
},
"validity": {
"pp": [
1,
3,
4,
5
],
"t": [
2,
3,
4,
5
],
"fsd": [
2,
3,
4,
5
],
"ls": [
2,
3,
4,
5
],
"pd": [
2,
3,
4,
5
],
"s": [
2,
3,
4,
5
],
"ft": [],
"pas": []
}
}
}

View File

@@ -2,8 +2,9 @@ var fs = require('fs');
var UglifyJS = require('uglify-js');
var Ships = require('./ships');
var Modules = require('./modules');
var exportString = JSON.stringify({ Ships: Ships, Modules: Modules }, null, '\t');
var ast = UglifyJS.parse(['module.exports = ', JSON.stringify({ Ships: Ships, Modules: Modules }), ';'].join(''));
var Modifications = require('./modifications');
var exportString = JSON.stringify({ Ships: Ships, Modules: Modules, Modifications: Modifications }, null, '\t');
var ast = UglifyJS.parse(['module.exports = ', JSON.stringify({ Ships: Ships, Modules: Modules, Modifications: Modifications }), ';'].join(''));
var code = ast.print_to_string({beautify: true, indent_level: 2});
fs.open('./dist/index.json', 'w', function() {

4
modifications/index.js Normal file
View File

@@ -0,0 +1,4 @@
module.exports = {
modifiers: require('./modifiers'),
validity: require('./validity')
};

View File

@@ -0,0 +1,27 @@
{
"1": {
"value": "pGen",
"description": "Modifier for power generation",
"operator": "multiply"
},
"2": {
"value": "power",
"description": "Modifier for power usage",
"operator": "multiply"
},
"3": {
"value": "integrity",
"description": "Modifier for integrity",
"operator": "multiply"
},
"4": {
"value": "mass",
"description": "Modifier for mass",
"operator": "multiply"
},
"5": {
"value": "eff",
"description": "Modifier for heat efficiency",
"operator": "multiply"
}
}

View File

@@ -0,0 +1,40 @@
{
"pp": [
1,
3,
4,
5
],
"t": [
2,
3,
4,
5
],
"fsd": [
2,
3,
4,
5
],
"ls": [
2,
3,
4,
5
],
"pd": [
2,
3,
4,
5
],
"s": [
2,
3,
4,
5
],
"ft": [],
"pas": []
}