From ae77ec625667a364ac5d421b445e72d9b0980281 Mon Sep 17 00:00:00 2001 From: Felix Linker Date: Wed, 14 Aug 2019 02:47:05 +0200 Subject: [PATCH] Implement blueprint changes to focused weapon --- src/app/shipyard/Module.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/app/shipyard/Module.js b/src/app/shipyard/Module.js index 9012f812..22466f93 100755 --- a/src/app/shipyard/Module.js +++ b/src/app/shipyard/Module.js @@ -583,20 +583,9 @@ export default class Module { * @return {Number} the falloff of this module */ getFalloff(modified = true) { - if (!modified) { - const range = this.getRange(false); - const falloff = this.get('falloff', false); - return (falloff > range ? range : falloff); - } - // Falloff from range is mapped to range - if (this.mods && this.mods['fallofffromrange']) { + if (modified && this.mods && this.mods['fallofffromrange']) { return this.getRange(); - // Need to find out if we have a focused modification, in which case our - // falloff is scaled to range - } else if (this.blueprint && this.blueprint.name === 'Focused') { - const rangeMod = this.getModValue('range') / 10000; - return this.falloff * (1 + rangeMod); // Standard falloff calculation } else { const range = this.getRange();