diff --git a/dist/index.js b/dist/index.js index ca6be8b..36bd9a2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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: [] + } } -}; \ No newline at end of file +}; diff --git a/dist/index.json b/dist/index.json index 32a9086..d1c1aa8 100644 --- a/dist/index.json +++ b/dist/index.json @@ -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": [] + } } } \ No newline at end of file diff --git a/generate_distribution.js b/generate_distribution.js index 64d37c6..8221027 100644 --- a/generate_distribution.js +++ b/generate_distribution.js @@ -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() { diff --git a/modifications/index.js b/modifications/index.js new file mode 100644 index 0000000..cd3513d --- /dev/null +++ b/modifications/index.js @@ -0,0 +1,4 @@ +module.exports = { + modifiers: require('./modifiers'), + validity: require('./validity') +}; diff --git a/modifications/modifiers.json b/modifications/modifiers.json new file mode 100644 index 0000000..b371ca5 --- /dev/null +++ b/modifications/modifiers.json @@ -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" + } +} diff --git a/modifications/validity.json b/modifications/validity.json new file mode 100644 index 0000000..04e63ee --- /dev/null +++ b/modifications/validity.json @@ -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": [] +}