From 28f464ba5ae065ba6bede77efb9933ed00faf3cd Mon Sep 17 00:00:00 2001 From: Felix Linker Date: Mon, 10 Sep 2018 00:45:46 +0200 Subject: [PATCH] fix: falloff scaling now only applies for focused modification --- src/app/shipyard/Module.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/shipyard/Module.js b/src/app/shipyard/Module.js index a1d90016..ec242dd9 100755 --- a/src/app/shipyard/Module.js +++ b/src/app/shipyard/Module.js @@ -439,8 +439,9 @@ export default class Module { // Falloff from range is mapped to range if (this.mods && this.mods['fallofffromrange']) { return this.getRange(); - // If range is modified but not falloff, increase the falloff to keep ratio - } else if (this.getModValue('range')) { + // 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