Rank+1 displays only on levelup.

This commit is contained in:
Matija Hustić
2015-07-14 14:44:10 +01:00
parent 0a1a53bb4b
commit 881f24c1cc

View File

@@ -95,12 +95,12 @@ namespace OpenRA.Mods.Common.Traits
foreach (var u in upgrades)
um.GrantUpgrade(self, u, this);
}
if (!silent)
{
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Sounds", "LevelUp", self.Owner.Country.InternalName);
self.World.AddFrameEndTask(w => w.Add(new CrateEffect(self, "levelup", info.LevelUpPalette)));
if (!silent)
{
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Sounds", "LevelUp", self.Owner.Country.InternalName);
self.World.AddFrameEndTask(w => w.Add(new CrateEffect(self, "levelup", info.LevelUpPalette)));
}
}
}