# Get Min Desired Harvest Peon Count

Grammar — Get the minimum number of peons we want to have harvesting in town town for player player
FlagsNative | Function

Returns the minimum number of peons the AI wants to have harvesting in a town for a player.

# Arguments

  • int — Player
  • int — Town

Returns — int

native int AIGetMinPeonCount(int player, int town);

Category: AI Advanced / Towns / Functions

# Examples

# mods/core.sc2mod

MeleeLowAI.galaxy

// L379
AIGetMinPeonCount(player, c_townMax)
// L396
AIGetMinPeonCount(player, c_townMax)
// L537
AIGetMinPeonCount(player, c_townMax)
// L680
AIGetMinPeonCount(player, c_townMax)