removed TechLevel from Buildable; fixed lineendings in structures.yaml
This commit is contained in:
@@ -31,14 +31,13 @@ namespace OpenRA.Traits
|
||||
|
||||
class BuildableInfo : ValuedInfo
|
||||
{
|
||||
public readonly int TechLevel = -1;
|
||||
public readonly string[] Prerequisites = { };
|
||||
public readonly string[] BuiltAt = { };
|
||||
public readonly string[] Owner = { };
|
||||
|
||||
public readonly string Icon = null;
|
||||
public readonly string[] AlternateName = { };
|
||||
public readonly int BuildPaletteOrder = 50;
|
||||
public readonly int BuildPaletteOrder = 9999;
|
||||
public readonly string Hotkey = null;
|
||||
|
||||
public override object Create(Actor self) { return new Buildable(); }
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace OpenRA.Widgets
|
||||
var allBuildables = Rules.TechTree.AllBuildables(queueName)
|
||||
.Where(a => a.Traits.Get<BuildableInfo>().Owner.Contains(world.LocalPlayer.Country.Race))
|
||||
.OrderBy(a => a.Traits.Get<BuildableInfo>().BuildPaletteOrder)
|
||||
.ThenBy(a => a.Traits.Get<BuildableInfo>().TechLevel).ToArray();
|
||||
.ToArray();
|
||||
|
||||
var queue = world.LocalPlayer.PlayerActor.traits.Get<ProductionQueue>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user