Exemplo n.º 1
0
        protected override void DoAction(int roundsLeft, IEnumerable <ITargetable> targets)
        {
            BaseShip sh       = (BaseShip)targetList[0];
            int      crewMult = 1;

            foreach (BaseRoom r in sh.roomList)
            {
                if (r is ShieldBay)
                {
                    crewMult = r.GetCrewCount();
                }
            }

            sh.ActivateShield(ActionModel.ActionTurnModels[0].ShieldCount.GetValueOrDefault(0) * crewMult);
            targetList.Clear();
        }