From cd358eb985204ddb034b64fcab02ad9d07cc15fb Mon Sep 17 00:00:00 2001 From: alzeih Date: Sun, 15 Aug 2010 06:29:20 +1200 Subject: [PATCH] Fix #24 --- OpenRA.Mods.RA/OreRefinery.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/OreRefinery.cs b/OpenRA.Mods.RA/OreRefinery.cs index 1283ca0ad7..a7f2551cc9 100644 --- a/OpenRA.Mods.RA/OreRefinery.cs +++ b/OpenRA.Mods.RA/OreRefinery.cs @@ -24,6 +24,7 @@ namespace OpenRA.Mods.RA public readonly int Capacity = 0; public readonly int ProcessTick = 25; public readonly int ProcessAmount = 50; + public readonly int LowPowerProcessTick = 50; public object Create(ActorInitializer init) { return new OreRefinery(init.self, this); } } @@ -86,7 +87,8 @@ namespace OpenRA.Mods.RA Ore -= amount; Player.GiveOre (amount); } - nextProcessTime = Info.ProcessTick; + nextProcessTime = (Player.GetPowerState() == PowerState.Normal)? + Info.ProcessTick : Info.LowPowerProcessTick ; } }