mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 17:31:54 +00:00
Classic off-by-one error
This commit is contained in:
parent
7c8d31c3e8
commit
02062856f6
1 changed files with 1 additions and 1 deletions
|
@ -1018,7 +1018,7 @@ const layer = createLayer(id, () => {
|
|||
let x = 0;
|
||||
focusTargets.value = {};
|
||||
const newCount = Decimal.min(count, range);
|
||||
while (newCount.gte(x)) {
|
||||
while (newCount.gt(x)) {
|
||||
const roll = Object.values(elfTraining)[Math.floor(Math.random() * range)]?.name ?? "";
|
||||
if (!focusTargets.value[roll]) {
|
||||
focusTargets.value[roll] = true;
|
||||
|
|
Loading…
Reference in a new issue