You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -11115,9 +11115,6 @@ function OneBuildLoopAM takes nothing returns nothing
// call EndDump(Int2Str(ai_time))
if ret == NOT_ENOUGH_RES and gold_buffer + wood_buffer == 0 and not hero_built[1] then // beginning of the game , if no resources build , build next unit , maybe next is peon
set index = index + 1
endif
loop
exitwhen index >= build_length
if index > 0 and ModuloInteger(index, 300) == 0 then
The reason will be displayed to describe this comment to others. Learn more.
This check is mainly used to handle the pause phenomenon of ELF at the beginning of the game
You will find that when all WISPs are working, the ELF will still continue to build tree or other -- but build queue next must not WIPS, because there is no WISP and WISP cannot be pulled out of the gold mine, it will cause construction lag--there is no WISP to execute, but the latest task in the queue is still tree building. If you skip this, you can train a new WISP to avoid getting stuck -- He doesn't lack money or wood, just doesn't have free WISP(harvest wood) to build, so the construction won't fail , He will continue with the construction after WISP completes a building -- if the WISP has not turned into a tree
Of course, the JOB collected now will pull WISP from the gold mine when the population has reached the limit, but this code can still work when the population has not reached the limit
6c924e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is mainly used to handle the pause phenomenon of ELF at the beginning of the game
You will find that when all WISPs are working, the ELF will still continue to build tree or other -- but build queue next must not WIPS, because there is no WISP and WISP cannot be pulled out of the gold mine, it will cause construction lag--there is no WISP to execute, but the latest task in the queue is still tree building. If you skip this, you can train a new WISP to avoid getting stuck -- He doesn't lack money or wood, just doesn't have free WISP(harvest wood) to build, so the construction won't fail , He will continue with the construction after WISP completes a building -- if the WISP has not turned into a tree
Of course, the JOB collected now will pull WISP from the gold mine when the population has reached the limit, but this code can still work when the population has not reached the limit
You need a new logic to avoid this problem