Thu 23 Jul 2009 06:09:43 AM UTC, original submission:
When testing my own AI, I noticed that engineers do not automatically repair a damaged cannon, while they do repair other buildings.
Then I saw the DefineAiHelper function in the scripts/ai.lua code, where the cannon is missing (BTW: also the biggunturret is missing).
Hence the attached patch, that should solve this. Here is an excerpt:
{"repair", "unit-engineer",
"unit-msilo", "unit-aircraftfactory", "unit-magmapump", "unit-camp", "unit-apcs",
"unit-powerplant", "unit-hosp", "unit-vfac", "unit-vault", "unit-gturret",
+ "unit-biggunturret", "unit-cannon",
"unit-nukepowerplant", "unit-radar"},
--
|