mirror of
https://github.com/EDCD/coriolis-data.git
synced 2025-12-08 15:13:23 +00:00
Add modification information
This commit is contained in:
41
dist/index.js
vendored
41
dist/index.js
vendored
@@ -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
69
dist/index.json
vendored
@@ -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": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
4
modifications/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
modifiers: require('./modifiers'),
|
||||
validity: require('./validity')
|
||||
};
|
||||
27
modifications/modifiers.json
Normal file
27
modifications/modifiers.json
Normal 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"
|
||||
}
|
||||
}
|
||||
40
modifications/validity.json
Normal file
40
modifications/validity.json
Normal 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": []
|
||||
}
|
||||
Reference in New Issue
Block a user