public override void Apply() { if (keepExistingShots) { foreach (ShotPattern shot in newShotPatterns) { UpgradeTarget.Shots = UpgradeTarget.Shots.Add(shot); } } else { UpgradeTarget.Shots = newShotPatterns; } UpgradeTarget.ApplyUpgrade(Type); }
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); }
public override void Apply() { UpgradeTarget.Strength += strength; UpgradeTarget.ApplyUpgrade(Type); }