This commit is contained in:
alzeih
2010-08-15 06:29:20 +12:00
parent 39d4b80323
commit cd358eb985

View File

@@ -24,6 +24,7 @@ namespace OpenRA.Mods.RA
public readonly int Capacity = 0; public readonly int Capacity = 0;
public readonly int ProcessTick = 25; public readonly int ProcessTick = 25;
public readonly int ProcessAmount = 50; public readonly int ProcessAmount = 50;
public readonly int LowPowerProcessTick = 50;
public object Create(ActorInitializer init) { return new OreRefinery(init.self, this); } public object Create(ActorInitializer init) { return new OreRefinery(init.self, this); }
} }
@@ -86,7 +87,8 @@ namespace OpenRA.Mods.RA
Ore -= amount; Ore -= amount;
Player.GiveOre (amount); Player.GiveOre (amount);
} }
nextProcessTime = Info.ProcessTick; nextProcessTime = (Player.GetPowerState() == PowerState.Normal)?
Info.ProcessTick : Info.LowPowerProcessTick ;
} }
} }