Move proc light offset into sequences. Fixes #3391.
This commit is contained in:
@@ -18,8 +18,6 @@ namespace OpenRA.Mods.Cnc
|
|||||||
{
|
{
|
||||||
class RenderBuildingRefineryInfo : RenderBuildingInfo
|
class RenderBuildingRefineryInfo : RenderBuildingInfo
|
||||||
{
|
{
|
||||||
public readonly WVec Offset = new WVec(1365, 896, 0);
|
|
||||||
|
|
||||||
public override object Create(ActorInitializer init) { return new RenderBuildingRefinery(init, this); }
|
public override object Create(ActorInitializer init) { return new RenderBuildingRefinery(init, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,7 +38,7 @@ namespace OpenRA.Mods.Cnc
|
|||||||
? (59 * playerResources.Ore) / (10 * playerResources.OreCapacity)
|
? (59 * playerResources.Ore) / (10 * playerResources.OreCapacity)
|
||||||
: 0);
|
: 0);
|
||||||
|
|
||||||
anims.Add("lights", new AnimationWithOffset(lights, () => info.Offset, () => !buildComplete, 1024));
|
anims.Add("lights", new AnimationWithOffset(lights, null, () => !buildComplete, 1024));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void BuildingComplete( Actor self )
|
public void BuildingComplete( Actor self )
|
||||||
|
|||||||
@@ -57,9 +57,11 @@ proc:
|
|||||||
lights: proctwr
|
lights: proctwr
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: 6
|
Length: 6
|
||||||
|
Offset: -32,-21
|
||||||
damaged-lights: proctwr
|
damaged-lights: proctwr
|
||||||
Start: 6
|
Start: 6
|
||||||
Length: 6
|
Length: 6
|
||||||
|
Offset: -32,-21
|
||||||
|
|
||||||
silo:
|
silo:
|
||||||
idle:
|
idle:
|
||||||
|
|||||||
Reference in New Issue
Block a user