DivvyCr / Balatro-Preview

Simulate the score you will get on the selected cards!
GNU General Public License v3.0
41 stars 4 forks source link

The Arm off by 1 error #33

Closed Ayre223 closed 3 weeks ago

Ayre223 commented 2 months ago

In the simulation for The Arm it incorrectly adds an extra l_chips and l_mult (it should use played_hand_data.level - 1 like this)


         played_hand_data.mult = math.max(1, played_hand_data.s_mult + (played_hand_data.level - 1) * played_hand_data.l_mult)
         played_hand_data.chips = math.max(0, played_hand_data.s_chips + (played_hand_data.level - 1) * played_hand_data.l_chips)
DivvyCr commented 3 weeks ago

Fixed in https://github.com/DivvyCr/Balatro-Preview/commit/2fed466b7b54b2ec5348b195c5f28025d7a2fc92 Download here