diff --git a/OpenRA.Game/Traits/SeedsOre.cs b/OpenRA.Game/Traits/SeedsResource.cs similarity index 87% rename from OpenRA.Game/Traits/SeedsOre.cs rename to OpenRA.Game/Traits/SeedsResource.cs index 7006d3bc19..e3ba14ff28 100644 --- a/OpenRA.Game/Traits/SeedsOre.cs +++ b/OpenRA.Game/Traits/SeedsResource.cs @@ -23,16 +23,16 @@ using System; namespace OpenRA.Traits { - class SeedsOreInfo : ITraitInfo + class SeedsResourceInfo : ITraitInfo { public readonly float Chance = .05f; public readonly int Interval = 5; public readonly string ResourceType = "Ore"; - public object Create(Actor self) { return new SeedsOre(); } + public object Create(Actor self) { return new SeedsResource(); } } - class SeedsOre : ITick + class SeedsResource : ITick { int ticks; @@ -40,7 +40,7 @@ namespace OpenRA.Traits { if (--ticks <= 0) { - var info = self.Info.Traits.Get(); + var info = self.Info.Traits.Get(); var resourceType = self.World.WorldActor.Info.Traits .WithInterface() .FirstOrDefault(t => t.Name == info.ResourceType); diff --git a/mods/cnc/compat.yaml b/mods/cnc/compat.yaml index 44b1266e79..5911658d77 100644 --- a/mods/cnc/compat.yaml +++ b/mods/cnc/compat.yaml @@ -37,6 +37,6 @@ MINE: Inherits: ^Building RenderBuilding: Palette: terrain - SeedsOre: + SeedsResource: ResourceType: Tiberium -Selectable: diff --git a/mods/ra/rules.yaml b/mods/ra/rules.yaml index 90d0da1f4b..eaa4194f9a 100644 --- a/mods/ra/rules.yaml +++ b/mods/ra/rules.yaml @@ -1920,7 +1920,7 @@ TC05: MINE: Inherits: ^Building - SeedsOre: + SeedsResource: -Selectable: BOXES01: