Removed misprint magic number

This commit is contained in:
MeirGavish
2025-08-02 19:43:44 +03:00
committed by GitHub
parent 08307d62ad
commit 56a211616a
+2 -1
View File
@@ -204,12 +204,13 @@ static JokerEffect joker_stencil_effect(Joker *joker, Card *scored_card) {
return effect;
}
#define MISPRINT_MAX_MULT 23
static JokerEffect misprint_joker_effect(Joker *joker, Card *scored_card) {
JokerEffect effect = {0};
if (scored_card != NULL)
return effect; // if card != null, we are not at the end-phase of scoring yet
effect.mult = random() % 24;
effect.mult = random() % (MISPRINT_MAX_MULT + 1);
return effect;
}