-
Notifications
You must be signed in to change notification settings - Fork 39
Description
https://us.forums.blizzard.com/en/warcraft3/t/ai-native-bug/37110
This issue was discovered while testing multiple gold mines on a map with enemies near the starting point
To fix this issue, I made the following adjustments
By utilizing FIX_BUILD can build an additional Great Cemetery when threatened, as it does not require wood and can ensure the supply of peon,and will build 6 peon
Using HARVEST_CHECK to force Ghouls to harvest wood
Adjust REPAIR_CONTROL to enable UD's maintenance building to be activated with 4 workers
Adjust GetUnitGoldCost2 and GetUnitWoodCost2 accurately determine the cost of heroes
BuildLoopAM loop faster in the early stages of the game
OneBuildLoopAM when unable to construct, place the object at the end of the queue
Addbuild_lengthupper limit -- whenbuild_length >= JASS_MAX_ARRAY_SIZEno runSetBuildAllAMCore
The current issue is that in a regular loop, BuildLoopAM is reset every 100 -- blc > build_array_reset_tim. I dare not modify it here. My idea is to add BLC when construction is hindered -- like ret == CANNOT_BUILD or ret == NOT_ENOUGH_RES
let InitBuildArrayAM can trigger faster