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");
|
||||
}
|
||||
|
||||
@@ -208,6 +208,7 @@ Traits=Building, RenderWarFactory, RallyPoint
|
||||
Dimensions=3,2
|
||||
Footprint=xxx xxx
|
||||
Produces=Vehicle
|
||||
RallyPoint=1,3
|
||||
[SYRD]
|
||||
Description=Shipyard
|
||||
Traits=Building, RenderBuilding
|
||||
@@ -315,21 +316,24 @@ Dimensions=3,2
|
||||
Footprint=xxx xxx
|
||||
[BARR]
|
||||
Description=Soviet Barracks
|
||||
Traits=Building, RenderBuilding
|
||||
Traits=Building, RenderBuilding, RallyPoint
|
||||
Dimensions=2,2
|
||||
Footprint=xx xx
|
||||
Produces=Infantry
|
||||
RallyPoint=1,3
|
||||
[TENT]
|
||||
Description=Allied Barracks
|
||||
Traits=Building, RenderBuilding
|
||||
Dimensions=2,2
|
||||
Footprint=xx xx
|
||||
Produces=Infantry
|
||||
RallyPoint=1,3
|
||||
[KENN]
|
||||
Description=Kennel
|
||||
Traits=Building, RenderBuilding
|
||||
Dimensions=1,1
|
||||
Footprint=x
|
||||
RallyPoint=1,2
|
||||
[FIX]
|
||||
Description=Service Depot
|
||||
Traits=Building, RenderBuilding
|
||||
|
||||
Reference in New Issue
Block a user