Merge lp://staging/~widelands-dev/widelands/AI-fixes into lp://staging/widelands
Status: | Merged | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 9110 | ||||||||||||||||
Proposed branch: | lp://staging/~widelands-dev/widelands/AI-fixes | ||||||||||||||||
Merge into: | lp://staging/widelands | ||||||||||||||||
Diff against target: |
411 lines (+73/-48) 11 files modified
data/ai/ai_input_1.wai (+1/-1) data/ai/ai_input_2.wai (+1/-1) data/ai/ai_input_3.wai (+1/-1) data/ai/ai_input_4.wai (+1/-1) data/tribes/buildings/productionsites/atlanteans/horsefarm/init.lua (+1/-1) data/tribes/buildings/productionsites/barbarians/barracks/init.lua (+0/-1) data/tribes/buildings/productionsites/barbarians/cattlefarm/init.lua (+1/-1) data/tribes/buildings/productionsites/empire/donkeyfarm/init.lua (+1/-1) data/tribes/wares/coal/init.lua (+4/-4) src/ai/defaultai.cc (+62/-35) src/ai/defaultai.h (+0/-1) |
||||||||||||||||
To merge this branch: | bzr merge lp://staging/~widelands-dev/widelands/AI-fixes | ||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benedikt Straub | Approve | ||
hessenfarmer | Needs Resubmitting | ||
TiborB | Approve | ||
Review via email: mp+367309@code.staging.launchpad.net |
Commit message
This fixes improves some behavior in AI performance
Ai is now able to adopt to scenarios to certain extend
Description of the change
Following things changed:
1. barbarian barracks no longer part of basic economy
2. AI expands towards low guarded enemy territory
3. AI builds more economy buildings based on neededness and preciousness od wares
4. AI is less agressive in dismantling. It does not dismantle if plenty of input is available for a building
5. added more decisions to genetics either in build and dismantle loops
6. AI now does properly upgrade barbarian smithies without running into a deadlock of having no smith for the tool smithy.
7. Fixed an issue which prevented AI from building second carrier recruiters
From AI code point of view - The changes can be OK, it is hard to say just looking at the code. I presume that you made sure the magic numbers does not repeat - dont forget they are used also in other AI files...
I will do some training once it is approved and merged.
I did not review changes to LUA code..
So for my part it is OK