added rally point stuff for barr/tent/kenn
This commit is contained in:
@@ -97,7 +97,7 @@ namespace OpenRa.Game.GameRules
|
||||
public readonly bool Repairable = true;
|
||||
public readonly int Storage = 0;
|
||||
public readonly bool Unsellable = false;
|
||||
public readonly int[] DefaultRallyPoint = { 1, 3 };
|
||||
public readonly int[] RallyPoint = { 1, 3 };
|
||||
|
||||
public BuildingInfo(string name) : base(name) { }
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace OpenRa.Game.Traits
|
||||
public RallyPoint(Actor self)
|
||||
{
|
||||
var bi = (UnitInfo.BuildingInfo)self.unitInfo;
|
||||
rallyPoint = self.Location + new int2(bi.DefaultRallyPoint[0], bi.DefaultRallyPoint[1]);
|
||||
rallyPoint = self.Location + new int2(bi.RallyPoint[0], bi.RallyPoint[1]);
|
||||
anim = new Animation("flagfly");
|
||||
anim.PlayRepeating("idle");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user