Skip to content

Commit

Permalink
fixes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
EFHIII committed Mar 19, 2024
1 parent 716c458 commit 752eb21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2,871 deletions.
3 changes: 3 additions & 0 deletions balatro-sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,9 @@ class Hand {
if(this.PlasmaDeck) {
this.mult = bigAdd(this.chips, this.mult);
this.mult[0] /= 2;
if(this.mult[1] === 0) {
this.mult[0] = Math.floor(this.mult[0]);
}
return [...normalizeBig(bigBigTimes(this.mult, this.mult)), this.mult[0] * (10 ** this.mult[1]), normalizeBig(this.mult)];
}

Expand Down
4 changes: 4 additions & 0 deletions breakdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,10 @@ class Hand {
this.mult = bigAdd(this.chips, this.mult);
this.mult[0] /= 2;

if(this.mult[1] === 0) {
this.mult[0] = Math.floor(this.mult[0]);
}

if(this.bd) {
this.breakdown.push({
cards: [],
Expand Down
Loading

0 comments on commit 752eb21

Please sign in to comment.