Use the same model for ra (but let proc hold ore as before)

This commit is contained in:
Paul Chote
2010-06-13 17:34:58 +12:00
parent dc8178f984
commit de6434c0f1
4 changed files with 56 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Cnc
public readonly int Capacity = 0;
public readonly int ProcessTick = 25;
public readonly int ProcessAmount = 50;
public object Create(Actor self) { return new TiberiumRefinery(self); }
public object Create(Actor self) { return new TiberiumRefinery(self, this); }
}
class TiberiumRefinery : ITick, IAcceptOre, IPips
@@ -47,10 +47,10 @@ namespace OpenRA.Mods.Cnc
[Sync]
public int Tiberium = 0;
public TiberiumRefinery(Actor self)
public TiberiumRefinery(Actor self, TiberiumRefineryInfo info)
{
this.self = self;
Info = self.Info.Traits.Get<TiberiumRefineryInfo>();
Info = info;
}
public void GiveOre(int amount)