Fix import falloff

References #535
This commit is contained in:
Felix Linker
2019-08-24 12:02:16 +02:00
parent 5d4ab6f2ad
commit af37c2bfc5

View File

@@ -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);
}