diff --git a/OpenRA.Mods.RA/SeedsResource.cs b/OpenRA.Mods.RA/SeedsResource.cs index 8265fc537b..5c5c1493b1 100644 --- a/OpenRA.Mods.RA/SeedsResource.cs +++ b/OpenRA.Mods.RA/SeedsResource.cs @@ -30,6 +30,7 @@ namespace OpenRA.Mods.RA public readonly int Interval = 75; public readonly string ResourceType = "Ore"; public readonly int MaxRange = 100; + public readonly int AnimationInterval = 750; public object Create(Actor self) { return new SeedsResource(); } } @@ -37,6 +38,7 @@ namespace OpenRA.Mods.RA class SeedsResource : ITick { int ticks; + int animationTicks; public void Tick(Actor self) { @@ -64,6 +66,13 @@ namespace OpenRA.Mods.RA ticks = info.Interval; } + + if (--animationTicks <= 0) + { + var info = self.Info.Traits.Get(); + self.traits.Get().PlayCustomAnim(self, "active"); + animationTicks = info.AnimationInterval; + } } static IEnumerable RandomWalk(int2 p, Thirdparty.Random r) diff --git a/mods/cnc/sequences-map.xml b/mods/cnc/sequences-map.xml index ad0db84559..0170fc03ad 100644 --- a/mods/cnc/sequences-map.xml +++ b/mods/cnc/sequences-map.xml @@ -2,11 +2,13 @@ - + + - + + diff --git a/mods/ra/sequences.xml b/mods/ra/sequences.xml index 2cc44662cc..5730785a7f 100644 --- a/mods/ra/sequences.xml +++ b/mods/ra/sequences.xml @@ -608,6 +608,7 @@ +