diff --git a/cartolafc/api.py b/cartolafc/api.py index 5c297bb..0dfc454 100644 --- a/cartolafc/api.py +++ b/cartolafc/api.py @@ -3,7 +3,7 @@ import requests -from .constants import MERCADO_ABERTO, MERCADO_FECHADO +from .constants import MERCADO_ABERTO, MERCADO_FECHADO, MULTIPLICADOR_CAPITAO from .errors import CartolaFCError, CartolaFCOverloadError from .models import ( Atleta, @@ -247,7 +247,7 @@ def _calculate_parcial(time: Time, parciais: Dict[int, Atleta]) -> Time: time.jogados += 1 if tem_parcial else 0 if atleta.is_capitao: - atleta.pontos *= 2 + atleta.pontos *= MULTIPLICADOR_CAPITAO time.pontos += atleta.pontos diff --git a/cartolafc/constants.py b/cartolafc/constants.py index f0d793e..3e22d9c 100644 --- a/cartolafc/constants.py +++ b/cartolafc/constants.py @@ -1,2 +1,4 @@ MERCADO_ABERTO = 1 MERCADO_FECHADO = 2 + +MULTIPLICADOR_CAPITAO = 1.5