added auto activate cap for powers; attached to gps satellite
This commit is contained in:
@@ -17,5 +17,6 @@ namespace OpenRa.Game.GameRules
|
||||
public readonly int TechLevel = -1;
|
||||
public readonly bool GivenAuto = true;
|
||||
public readonly string Impl = null;
|
||||
public readonly bool AutoActivate = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ namespace OpenRa.Game
|
||||
{
|
||||
if (RemainingTime > 0) --RemainingTime;
|
||||
}
|
||||
|
||||
if (RemainingTime == 0 && Info.AutoActivate)
|
||||
Activate();
|
||||
}
|
||||
|
||||
public void Activate()
|
||||
|
||||
Reference in New Issue
Block a user