rename SeedsOre -> SeedsResource, since that wasnt accurate anymore.
This commit is contained in:
@@ -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<SeedsOreInfo>();
|
||||
var info = self.Info.Traits.Get<SeedsResourceInfo>();
|
||||
var resourceType = self.World.WorldActor.Info.Traits
|
||||
.WithInterface<ResourceTypeInfo>()
|
||||
.FirstOrDefault(t => t.Name == info.ResourceType);
|
||||
@@ -37,6 +37,6 @@ MINE:
|
||||
Inherits: ^Building
|
||||
RenderBuilding:
|
||||
Palette: terrain
|
||||
SeedsOre:
|
||||
SeedsResource:
|
||||
ResourceType: Tiberium
|
||||
-Selectable:
|
||||
|
||||
@@ -1920,7 +1920,7 @@ TC05:
|
||||
|
||||
MINE:
|
||||
Inherits: ^Building
|
||||
SeedsOre:
|
||||
SeedsResource:
|
||||
-Selectable:
|
||||
|
||||
BOXES01:
|
||||
|
||||
Reference in New Issue
Block a user