From 23c52c43797ff71285816d54952aa8d5bec8f09a Mon Sep 17 00:00:00 2001 From: EmeraldBlock <69981203+EmeraldBlock@users.noreply.github.com> Date: Wed, 7 Oct 2020 13:13:28 -0500 Subject: [PATCH] use nextIntRange instead of nextIntRangeInclusive --- src/js/game/hub_goals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game/hub_goals.js b/src/js/game/hub_goals.js index e7a1fea7..c9d9494f 100644 --- a/src/js/game/hub_goals.js +++ b/src/js/game/hub_goals.js @@ -369,7 +369,7 @@ export class HubGoals extends BasicSerializableObject { if (allowUncolored) { universalColors.push(enumColors.uncolored); } - const index = rng.nextIntRangeInclusive(0, colorWheel.length - 3); + const index = rng.nextIntRange(0, colorWheel.length - 2); const pickedColors = colorWheel.slice(index, index + 3); pickedColors.push(rng.choice(universalColors)); return pickedColors;