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 27, 2021
1 parent 6997b97 commit 5da2a76
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)world.LocalRandom.Next(1024) }); // HACK: ExtraData for Airstrike Power
}
}

Expand Down

0 comments on commit 5da2a76

Please sign in to comment.