コード例 #1
0
        private int GetTriplerAttackValue(BasePlayer player, Encounter encounter, AttackEncounterCard attackCard)
        {
            int finalAttackValue  = 0;
            int tripleCardMaximum = BaseMaximumTripleValue;

            TriplerFlareCard flareCard = player.FindCardInHand <TriplerFlareCard>(typeof(TriplerFlareCard));

            /*if (flareCard && encounter.PlayerCanUseFlare(player))
             * {
             *  if (player.AskInvokeFlare(flareCard, true))
             *  {
             *      encounter.SetFlareUsedByPlayer(flareCard, player);
             *      tripleCardMaximum = FlareMaximumTripleValue;
             *  }
             * }
             *
             * if (attackCard.Value <= tripleCardMaximum)
             * {
             *  finalAttackValue = attackCard.Value * 3;
             * }
             *
             * else
             * {
             *  finalAttackValue = (int)Math.Ceiling((double)attackCard.Value / 3);
             * }*/

            return(finalAttackValue);
        }
コード例 #2
0
        public override int GetEncounterPowerContribution(BasePlayer player, Encounter encounter, EncounterPlayerContext context)
        {
            int contribution = 0;

            contribution += context.ShipCount;

            AttackEncounterCard attackCard = context.EncounterCard as AttackEncounterCard;

            if (attackCard != null)
            {
                contribution += GetTriplerAttackValue(player, encounter, attackCard);
            }

            return(contribution);
        }