From 915e824c88af0332980d9bc510d9e6a9f7d9c6f7 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 3 Mar 2010 21:39:15 +1300 Subject: [PATCH] rename SeedsOre -> SeedsResource, since that wasnt accurate anymore. --- OpenRA.Game/Traits/{SeedsOre.cs => SeedsResource.cs} | 8 ++++---- mods/cnc/compat.yaml | 2 +- mods/ra/rules.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename OpenRA.Game/Traits/{SeedsOre.cs => SeedsResource.cs} (87%) 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: