From af37c2bfc568890754de34d1164983d8a4556942 Mon Sep 17 00:00:00 2001 From: Felix Linker Date: Sat, 24 Aug 2019 12:02:16 +0200 Subject: [PATCH] Fix import falloff References #535 --- src/app/utils/JournalUtils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/utils/JournalUtils.js b/src/app/utils/JournalUtils.js index a3ca11c1..c0f7df34 100644 --- a/src/app/utils/JournalUtils.js +++ b/src/app/utils/JournalUtils.js @@ -274,6 +274,9 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat if (value === Infinity) { value = modifiers[i].Value * 100; } + if (modifiers[i].Label.search('DamageFalloffRange') >= 0) { + value = (modifiers[i].Value / module.range - 1) * 100; + } if (modifiers[i].Label.search('Resistance') >= 0) { value = (modifiers[i].Value * 100) - (modifiers[i].OriginalValue * 100); }