Beispiel #1
0
        protected override void PerformYAction(int currentTurn)
        {
            var energyDrained = SittingDuck.DrainReactors(new [] { CurrentZone }, 1);

            if (energyDrained == 0)
            {
                Attack(1);
            }
        }
Beispiel #2
0
        public override void TakeDamage(int damage, Player performingPlayer, bool isHeroic, StationLocation?stationLocation)
        {
            var remainingDamageWillDestroyThreat = RemainingHealth <= damage;
            var energyDrained = 0;

            if (remainingDamageWillDestroyThreat)
            {
                energyDrained = SittingDuck.DrainReactors(new [] { CurrentZone }, 1);
            }
            var cannotTakeDamage = remainingDamageWillDestroyThreat && energyDrained == 0;

            if (!cannotTakeDamage)
            {
                base.TakeDamage(damage, performingPlayer, isHeroic, stationLocation);
            }
        }
 protected override void PerformYAction(int currentTurn)
 {
     SittingDuck.DrainReactors(EnumFactory.All <ZoneLocation>(), 1);
 }
 protected override void PerformXAction(int currentTurn)
 {
     SittingDuck.DrainReactors(new [] { ZoneLocation.White }, 2);
 }
        protected override void PerformXAction(int currentTurn)
        {
            var energyDrained = SittingDuck.DrainReactors(new [] { CurrentZone });

            Speed += energyDrained;
        }
Beispiel #6
0
 protected override void PerformYAction(int currentTurn)
 {
     SittingDuck.DrainReactors(new [] { CurrentZone }, 1);
 }
        private void EnergyLeaksOutFromReactor(ZoneLocation zoneLocation)
        {
            var energyDrained = SittingDuck.DrainReactors(new [] { zoneLocation });

            Attack(energyDrained);
        }