Skip to content

Allow custom cards and bots simultaneously#550

Open
lhvy wants to merge 1 commit into
Lattyware:mainfrom
lhvy:blank-bot
Open

Allow custom cards and bots simultaneously#550
lhvy wants to merge 1 commit into
Lattyware:mainfrom
lhvy:blank-bot

Conversation

@lhvy
Copy link
Copy Markdown
Contributor

@lhvy lhvy commented Nov 21, 2023

Resolves #548

Updates the draw functions to ignore blank cards if the player drawing is a bot.

|> Maybe.justIf (humanPlayerCount < 1)
]

disableRandoConfig =
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if I should bring this back but check for "blank white cards only" instead to fix the above comment? And then I guess I'd need to hide the above error message I added in that case too...

const result = this.cards.splice(0, toDraw);
const result = this.cards
.splice(0, toDraw)
.filter((card) => card.source.source !== "Custom");
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This may mean that blank cards aren't being discarded properly when picked up by the bot. Not sure?

Comment on lines +458 to +470
-- Catch the case where "only blank white cards" is enabled.
numberOfNonBlankResponses =
case hr.comedyWriter of
Just { exclusive } ->
if exclusive then
0

else
summaries .responses

Nothing ->
summaries .responses

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Need some feedback on this. Is this reasonable?

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.

blank white cards + rando cardrissian in the same game

1 participant