Skip to content

Commit

Permalink
fix editable hands
Browse files Browse the repository at this point in the history
  • Loading branch information
EFHIII committed Feb 28, 2024
1 parent f3008a4 commit 2a88212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ function setLevel(handIndex) {
let div = document.getElementById(hand.id);

if(1 * div.children[2].innerText > 0) {
hand.planets = Math.round(1 * div.children[2].innerText);
hand.level = Math.round(1 * div.children[2].innerText);
}
else {
hand.planets = 0;
hand.level = 0;
}

hand.mult = Math.max(1, hand.s_mult + (hand.level-1) * hand.l_mult);
Expand Down

0 comments on commit 2a88212

Please sign in to comment.