fix: falloff scaling now only applies for focused modification

This commit is contained in:
Felix Linker
2018-09-10 00:45:46 +02:00
parent 8cedd1b8bc
commit 28f464ba5a

View File

@@ -439,8 +439,9 @@ export default class Module {
// Falloff from range is mapped to range // Falloff from range is mapped to range
if (this.mods && this.mods['fallofffromrange']) { if (this.mods && this.mods['fallofffromrange']) {
return this.getRange(); return this.getRange();
// If range is modified but not falloff, increase the falloff to keep ratio // Need to find out if we have a focused modification, in which case our
} else if (this.getModValue('range')) { // falloff is scaled to range
} else if (this.blueprint && this.blueprint.name === 'Focused') {
const rangeMod = this.getModValue('range') / 10000; const rangeMod = this.getModValue('range') / 10000;
return this.falloff * (1 + rangeMod); return this.falloff * (1 + rangeMod);
// Standard falloff calculation // Standard falloff calculation