get rid of some redundant code

This commit is contained in:
willyb321
2018-04-17 07:47:12 +10:00
parent 2262a980d4
commit 50a67f73fd
3 changed files with 0 additions and 25 deletions

View File

@@ -231,7 +231,6 @@ export function getBlueprint(name, module) {
return undefined;
}
const blueprint = JSON.parse(JSON.stringify(found));
console.log(blueprint)
if (module) {
if (module.grp === 'bh' || module.grp === 'hr' || module.grp === 'sg' || module.grp === 'psg' || module.grp === 'bsg') {
// Bulkheads, hull reinforcements and shield generators need to have their resistances altered by the base values

View File

@@ -49,7 +49,6 @@ function _moduleFromFdName (fdname) {
}
}
}
console.log(fdname)
// Not found
return null
@@ -252,7 +251,6 @@ function _addModifications (module, modifiers, blueprint, grade, specialModifica
// Look up the modifiers to find what we need to do
const findMod = val => Object.keys(Modifications.modifierActions).find(elem => elem.toString().toLowerCase().search(val.toString().toLowerCase().replace(/(OutfittingFieldType_|persecond)/igm, '')) >= 0)
const modifierActions = Modifications.modifierActions[findMod(modifiers[i].Label)]
console.log(`${modifiers[i].Label}: ${findMod(modifiers[i].Label)}`)
//TODO: Figure out how to scale this value.
if (!!modifiers[i].LessIsGood) {
@@ -271,7 +269,6 @@ function _addModifications (module, modifiers, blueprint, grade, specialModifica
// Add the blueprint definition, grade and special
if (blueprint) {
console.log(blueprint);
module.blueprint = getBlueprint(blueprint, module)
if (grade) {
module.blueprint.grade = Number(grade)