mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
fix: falloff scaling now only applies for focused modification
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user