rename SeedsOre -> SeedsResource, since that wasnt accurate anymore.
This commit is contained in:
@@ -23,16 +23,16 @@ using System;
|
|||||||
|
|
||||||
namespace OpenRA.Traits
|
namespace OpenRA.Traits
|
||||||
{
|
{
|
||||||
class SeedsOreInfo : ITraitInfo
|
class SeedsResourceInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public readonly float Chance = .05f;
|
public readonly float Chance = .05f;
|
||||||
public readonly int Interval = 5;
|
public readonly int Interval = 5;
|
||||||
public readonly string ResourceType = "Ore";
|
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;
|
int ticks;
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
if (--ticks <= 0)
|
if (--ticks <= 0)
|
||||||
{
|
{
|
||||||
var info = self.Info.Traits.Get<SeedsOreInfo>();
|
var info = self.Info.Traits.Get<SeedsResourceInfo>();
|
||||||
var resourceType = self.World.WorldActor.Info.Traits
|
var resourceType = self.World.WorldActor.Info.Traits
|
||||||
.WithInterface<ResourceTypeInfo>()
|
.WithInterface<ResourceTypeInfo>()
|
||||||
.FirstOrDefault(t => t.Name == info.ResourceType);
|
.FirstOrDefault(t => t.Name == info.ResourceType);
|
||||||
@@ -37,6 +37,6 @@ MINE:
|
|||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
RenderBuilding:
|
RenderBuilding:
|
||||||
Palette: terrain
|
Palette: terrain
|
||||||
SeedsOre:
|
SeedsResource:
|
||||||
ResourceType: Tiberium
|
ResourceType: Tiberium
|
||||||
-Selectable:
|
-Selectable:
|
||||||
|
|||||||
@@ -1920,7 +1920,7 @@ TC05:
|
|||||||
|
|
||||||
MINE:
|
MINE:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
SeedsOre:
|
SeedsResource:
|
||||||
-Selectable:
|
-Selectable:
|
||||||
|
|
||||||
BOXES01:
|
BOXES01:
|
||||||
|
|||||||
Reference in New Issue
Block a user