Skip to content

Fixed idol gg#463

Open
12problems wants to merge 2 commits into
Balatro-Multiplayer:devfrom
12problems:feature/idolUpdate
Open

Fixed idol gg#463
12problems wants to merge 2 commits into
Balatro-Multiplayer:devfrom
12problems:feature/idolUpdate

Conversation

@12problems

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread compatibility/TheOrder.lua Outdated
local threshold = 0
for _, entry in ipairs(valid_idol_cards) do
threshold = threshold + (entry.count / total_weight)
threshold = threshold + (entry.total_score / total_weight)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

entry.count's original purpose here is to weight each entry by the amount of cards in deck so idol selects (so idol selects king of hearts at 50% odds if the deck contains 50% king of hearts)
by replacing it with total_score, we're weighting each entry by their total score

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants