Merge pull request #12859 from abcdefg30/supportPrereqs

Fix support powers not being enabled by cheats
This commit is contained in:
reaperrr
2017-03-05 16:27:43 +01:00
committed by GitHub

View File

@@ -160,7 +160,7 @@ namespace OpenRA.Mods.Common.Traits
public int RemainingTime;
public int TotalTime;
public bool Active { get; private set; }
public bool Disabled { get { return !prereqsAvailable || !instancesEnabled; } }
public bool Disabled { get { return (!prereqsAvailable && !manager.DevMode.AllTech) || !instancesEnabled; } }
public SupportPowerInfo Info { get { return Instances.Select(i => i.Info).FirstOrDefault(); } }
public bool Ready { get { return Active && RemainingTime == 0; } }