diff --git a/field_multiplier.c b/field_multiplier.c index fca83f8..6d0a38e 100644 --- a/field_multiplier.c +++ b/field_multiplier.c @@ -3,7 +3,11 @@ #include "field_multiplier.h" #include "card.h" -const FieldMultiplier *calculate_field_multiplier(Hand *h) { +static FieldMultiplier small_field = { "Small Field", 1 }; +static FieldMultiplier large_field = { "Large Field", 2 }; +static FieldMultiplier grand_field = { "Grand Field", 4 }; + +FieldMultiplier *calculate_field_multiplier(Hand *h) { bool large = false; for (int i = 0; i < h->count; i++) { Card *c = h->cards[i]; diff --git a/field_multiplier.h b/field_multiplier.h index 8b3e1f3..c9ea8a2 100644 --- a/field_multiplier.h +++ b/field_multiplier.h @@ -10,10 +10,6 @@ struct FieldMultiplier { int value; }; -static const FieldMultiplier small_field = { "Small Field", 1 }; -static const FieldMultiplier large_field = { "Large Field", 2 }; -static const FieldMultiplier grand_field = { "Grand Field", 4 }; - -const FieldMultiplier *calculate_field_multiplier(Hand *h); +FieldMultiplier *calculate_field_multiplier(Hand *h); #endif