Add setting to use a static color for the first speed instead of player color (resolves #10)
This commit is contained in:
+2
-1
@@ -216,7 +216,8 @@ function getColorForDistance(startDistance, subDistance) {
|
||||
return this.color
|
||||
}
|
||||
const distance = startDistance + subDistance
|
||||
const ranges = currentSpeedProvider(this.draggedToken, this.color)
|
||||
const firstColor = game.settings.get(settingsKey, "staticFirstColor") ? 0x00FF00 : this.color
|
||||
const ranges = currentSpeedProvider(this.draggedToken, firstColor)
|
||||
if (ranges.length === 0)
|
||||
return this.color
|
||||
const currentRange = ranges.reduce((minRange, currentRange) => {
|
||||
|
||||
Reference in New Issue
Block a user