added WeaponInfo
This commit is contained in:
@@ -11,7 +11,7 @@ namespace OpenRa.TechTree
|
||||
|
||||
public bool IsStructure { get { return isStructure; } }
|
||||
|
||||
public Item(string tag, string friendlyName, UnitInfo.BaseInfo unitInfo, bool isStructure)
|
||||
public Item(string tag, string friendlyName, UnitInfo unitInfo, bool isStructure)
|
||||
{
|
||||
this.tag = tag;
|
||||
this.friendlyName = friendlyName;
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace OpenRa.TechTree
|
||||
.Concat( Lines( "infantry.txt", false ) );
|
||||
|
||||
foreach (Tuple<string, string, bool> p in definitions)
|
||||
objects.Add(p.a, new Item(p.a, p.b, Rules.UnitInfo.Get(p.a), p.c));
|
||||
objects.Add(p.a, new Item(p.a, p.b, Rules.UnitInfo[p.a], p.c));
|
||||
}
|
||||
|
||||
public bool Build(string key, bool force)
|
||||
|
||||
Reference in New Issue
Block a user