Moved SellSounds from Building to Sellable & added upgrade to rules.

This commit is contained in:
atlimit8
2014-08-29 12:55:19 -05:00
parent f9255ecc49
commit cc9c253419
8 changed files with 51 additions and 10 deletions

View File

@@ -34,7 +34,6 @@ namespace OpenRA.Mods.RA.Buildings
public readonly bool AllowInvalidPlacement = false;
public readonly string[] BuildSounds = { "placbldg.aud", "build5.aud" };
public readonly string[] SellSounds = { "cashturn.aud" };
public readonly string[] UndeploySounds = { "cashturn.aud" };
public object Create(ActorInitializer init) { return new Building(init, this); }
@@ -176,9 +175,6 @@ namespace OpenRA.Mods.RA.Buildings
public void Selling(Actor self)
{
foreach (var s in Info.SellSounds)
Sound.PlayToPlayer(self.Owner, s, self.CenterPosition);
BuildComplete = false;
}