Skip to content

Commit

Permalink
Make AI airstrike aircraft spawns randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob committed Dec 30, 2021
1 parent 6997b97 commit 2ec10ac
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -110,7 +110,7 @@ void IBotTick.BotTick(IBot bot)
// Valid target found, delay by a few ticks to avoid rescanning before power fires via order
AIUtils.BotDebug("{0} found new target location {1} for support power {2}.", player.PlayerName, attackLocation, sp.Info.OrderName);
waitingPowers[sp] += 10;
bot.QueueOrder(new Order(sp.Key, supportPowerManager.Self, Target.FromCell(world, attackLocation.Value), false) { SuppressVisualFeedback = true });
bot.QueueOrder(new Order(sp.Key, supportPowerManager.Self, Target.FromCell(world, attackLocation.Value), false) { SuppressVisualFeedback = true, ExtraData = uint.MaxValue }); // HACK: SelectDirectionalTarget uses uint.MaxValue in ExtraData to indicate that the player did not pick a direction.
}
}

Expand Down

0 comments on commit 2ec10ac

Please sign in to comment.