added auto activate cap for powers; attached to gps satellite

This commit is contained in:
Chris Forbes
2010-01-08 21:54:29 +13:00
parent 28746d0bcd
commit a0fafdeed4
3 changed files with 5 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -58,6 +58,9 @@ namespace OpenRa.Game
{
if (RemainingTime > 0) --RemainingTime;
}
if (RemainingTime == 0 && Info.AutoActivate)
Activate();
}
public void Activate()

View File

@@ -890,6 +890,7 @@ Prerequisite=ATEK
Image=gpssicon
TechLevel=12
Impl=NullPower
AutoActivate=yes
[InvulnerabilityPower] ; the point of IRON
ChargeTime=11