コード例 #1
0
ファイル: AllianceOverhaul.cs プロジェクト: vitreuz/FlyCasual
 private void CheckFocusToCritAuxilaryArc(GenericShip ship)
 {
     if (!Combat.ShotInfo.InPrimaryArc)
     {
         HostShip.AddAvailableDiceModificationOwn(new ActionsList.AllianceOverhaulDiceModification());
     }
 }
コード例 #2
0
ファイル: Fearless.cs プロジェクト: vitreuz/FlyCasual
 protected override void FearlessnessAddDiceModification(GenericShip host)
 {
     ActionsList.GenericAction newAction = new ActionsList.FearlessAction()
     {
         ImageUrl = HostUpgrade.ImageUrl,
         HostShip = HostShip
     };
     HostShip.AddAvailableDiceModificationOwn(newAction);
 }
コード例 #3
0
ファイル: Maul.cs プロジェクト: JeffSkyrunner/FlyCasual
 private void MaulDiceModification(GenericShip host)
 {
     ActionsList.GenericAction newAction = new ActionsList.MaulDiceModification()
     {
         ImageUrl = HostUpgrade.ImageUrl,
         HostShip = HostShip
     };
     HostShip.AddAvailableDiceModificationOwn(newAction);
 }
コード例 #4
0
ファイル: SunnyBounder.cs プロジェクト: vitreuz/FlyCasual
 // No more "once per round".
 protected override void AddAbility(GenericShip ship)
 {
     if (Combat.CurrentDiceRoll.DiceList.All(die => die.Side == Combat.CurrentDiceRoll.DiceList.First().Side))
     {
         HostShip.AddAvailableDiceModificationOwn(
             new ActionsList.FirstEdition.SunnyBounderAbilityAction(() => { IsAbilityUsed = true; HostShip = HostShip; })
             );
     }
 }
コード例 #5
0
ファイル: WookieeCommandos.cs プロジェクト: vitreuz/FlyCasual
        private void WookieeCommandosDiceModification(GenericShip host)
        {
            GenericAction newAction = new WookieeCommandosDiceModification()
            {
                ImageUrl = HostUpgrade.ImageUrl,
                HostShip = HostShip
            };

            HostShip.AddAvailableDiceModificationOwn(newAction);
        }
コード例 #6
0
        private void AddDiceModification(GenericShip ship)
        {
            TreacherousDiceModification newAction = new TreacherousDiceModification()
            {
                ImageUrl           = HostUpgrade.ImageUrl,
                HostShip           = HostShip,
                DoDiceModification = DoTreacherousDiceModification
            };

            HostShip.AddAvailableDiceModificationOwn(newAction);
        }
コード例 #7
0
 private void CheckR7AstromechAbility(Ship.GenericShip ship)
 {
     if (!usedThisRound)
     {
         ActionsList.GenericAction newAction = new ActionsList.R7AstromechActionEffect(this)
         {
             ImageUrl = HostUpgrade.ImageUrl,
             HostShip = HostShip
         };
         HostShip.AddAvailableDiceModificationOwn(newAction);
     }
 }
コード例 #8
0
 protected virtual void AddAbility(GenericShip ship)
 {
     if (!IsAbilityUsed && Combat.CurrentDiceRoll.DiceList.All(die => die.Side == Combat.CurrentDiceRoll.DiceList.First().Side))
     {
         HostShip.AddAvailableDiceModificationOwn
         (
             new ActionsList.FirstEdition.SunnyBounderAbilityAction(() => { IsAbilityUsed = true; })
         {
             ImageUrl = HostShip.ImageUrl
         }
         );
     }
 }
コード例 #9
0
 private void AddMunitionsFailsafeAbility(GenericShip ship)
 {
     HostShip.AddAvailableDiceModificationOwn(new MunitionsFailsafeAction());
 }