예제 #1
0
 public override void Apply()
 {
     if (keepExistingShots)
     {
         foreach (ShotPattern shot in newShotPatterns)
         {
             UpgradeTarget.Shots = UpgradeTarget.Shots.Add(shot);
         }
     }
     else
     {
         UpgradeTarget.Shots = newShotPatterns;
     }
     UpgradeTarget.ApplyUpgrade(Type);
 }
예제 #2
0
        public override void Apply()
        {
            ShotPatterns upgraded = new ShotPatterns();

            foreach (ShotPattern shot in UpgradeTarget.Shots)
            {
                if (keepExistingEffects)
                {
                    shot.Effects |= newEffects;
                }
                else
                {
                    shot.Effects = newEffects;
                }
                upgraded = upgraded.Add(shot);
            }
            UpgradeTarget.Shots = upgraded;
            UpgradeTarget.ApplyUpgrade(Type);
        }
예제 #3
0
 public override void Apply()
 {
     UpgradeTarget.Strength += strength;
     UpgradeTarget.ApplyUpgrade(Type);
 }