Ejemplo n.º 1
0
        protected double GetRating(Card card)
        {
            var baseRating = _ratings.GetRating(card.Name);

            if (card.Is().Creature&& DraftedCards.Count(x => x.Is().Creature) < MinimalCreatures)
            {
                baseRating += CreaturesBonus;
            }

            return(baseRating);
        }
Ejemplo n.º 2
0
        protected double GetRating(Card card, int round, bool usePlayerContext = true)
        {
            var baseRating = _ratings.GetRating(card.Name);

            if (usePlayerContext)
            {
                if (card.Is().Creature&& baseRating > PlayableThreshold)
                {
                    if (PlayableDraftedCards.Count(x => x.Is().Creature) < (GiveBonusUntilCreatureCountIs / (4 - round)))
                    {
                        baseRating += CreatureCountBonus;
                    }

                    if (card.ManaCost != null)
                    {
                        var cost = GetConvertedManaCurveCost(card);
                        baseRating += ManaCurveCreatureBonuses[cost - 2];
                    }
                }
            }

            return(baseRating);
        }