Fixed incorrect starting hp value inside getLowestHpBody()
This commit is contained in:
parent
392d3bd8aa
commit
6a12a3f04d
@ -483,7 +483,7 @@ export class BotGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
let result: BodyPart;
|
let result: BodyPart;
|
||||||
let currentHighest = 0;
|
let currentHighest = Number.POSITIVE_INFINITY;
|
||||||
for (const bodyParts of bodies)
|
for (const bodyParts of bodies)
|
||||||
{
|
{
|
||||||
const hpTotal = Object.values(bodyParts).reduce((acc, curr) => acc + curr.max, 0);
|
const hpTotal = Object.values(bodyParts).reduce((acc, curr) => acc + curr.max, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user