Move SupportPowerDecisions to a single parent node.
This is required before we can force all trait properties to match a TraitInfo-defined field.
This commit is contained in:
@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.AI
|
||||
player = p;
|
||||
frozenLayer = p.PlayerActor.Trait<FrozenActorLayer>();
|
||||
supportPowerManager = p.PlayerActor.TraitOrDefault<SupportPowerManager>();
|
||||
foreach (var decision in ai.Info.PowerDecisions)
|
||||
foreach (var decision in ai.Info.SupportPowerDecisions)
|
||||
powerDecisions.Add(decision.OrderName, decision);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user