EFHIII / balatro-calculator

A tool for calculating the score of a hand in Balatro
MIT License
86 stars 12 forks source link

RedSeal-Steel-King-Baron hand missing 10 triggers in e51 hand #66

Closed Mad-Speed closed 6 months ago

Mad-Speed commented 6 months ago

Description of the bug Recreating a hand I got in-game for fun, the calculator value was lower than the value I got in-game (3.8896e47 instead of 1.293e51). After checking the calculations myself I got the same answer as the game. I counted how many "x1.5"s there should be in total vs the amount shown in the breakdown; the total was 10 less than it should've been.

Steps To Reproduce Baron/Perkeo/Blueprint/Brainstorm/Baron Play High Card L24: King of Spades - Steel - Red Seal Hand: 11 x King Of Spades - Steel - Red Seal Observatory in play: 29xPluto Plasma Deck Link to the hand in question

Expected behaviour There should be a total of 110 from the Steel cards and Jokers combined "x1.5"s: 11 from Steel cards 11 from Baron 1 11 from Baron 2 11 from Blueprint 11 from Brainstorm That brings 55, then that number is doubled due to Red Seals. There were only 100 displayed in the breakdown.

Additional context The total multiplier from the Planet Cards due to Observatory was correct.

EFHIII commented 6 months ago

You seem to have miscounted the number of kings. In the link you provided, there are 11 kings, one of which is played so only 10 are counted for steel & baron. Your math assumes that you had 12 kings. If you add another king, the number you get is 1.2933e51 which appears to be the same as what you got in-game.

Mad-Speed commented 6 months ago

This seems to be more of an interface issue in this case. The number of cards in hand in-game changes when you play cards. I had 12 cards and played one, changing it to 11. In the calculator, the number of cards in hand includes played cards. That’s what caused me to make that mistake - I was going off of how many cards were shown in hand when calculating.

On 7 May 2024, at 6:13 PM, Edward Haas @.***> wrote:



You seem to have miscounted the number of kings. In the link you provided, there are 11 kings, one of which is played so only 10 are counted for steel & baron. Your math assumes that you had 12 kings. If you add another king, the number you get is 1.2933e51 which appears to be the same as what you got in-game.

— Reply to this email directly, view it on GitHubhttps://github.com/EFHIII/balatro-calculator/issues/66#issuecomment-2098930843, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3OLP6BHR3BIRTF5QWTWS5LZBEDTRAVCNFSM6AAAAABHK6VOI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJYHEZTAOBUGM. You are receiving this because you authored the thread.Message ID: @.***>