(AI leaders are no longer slow to select attacks.)
This commit is contained in:
parent
0ebd35aef0
commit
b26420b171
3 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,7 @@
|
|||
Version 1.9.13+svn:
|
||||
* AI:
|
||||
* Fixed bug #18962 and bug #19214: AI leaders are no longer slow to select
|
||||
attacks.
|
||||
* Editor:
|
||||
* Fixed overpainting of transparent tile icons on the editor palettes on the
|
||||
sidebar
|
||||
|
|
|
@ -3,6 +3,9 @@ changes may be omitted). For a complete list of changes, see the main
|
|||
changelog: http://svn.gna.org/viewcvs/*checkout*/wesnoth/trunk/changelog
|
||||
|
||||
Version 1.9.13+svn:
|
||||
* AI:
|
||||
* Fixed bug #18962 and bug #19214: AI leaders are no longer slow to select
|
||||
attacks.
|
||||
* Language and i18n:
|
||||
* Changed font used for CJK languages to DroidSans.
|
||||
* Updated translations: British English, Chinese (Simplified), Czech, Dutch,
|
||||
|
|
|
@ -294,13 +294,6 @@ double attack_analysis::rating(double aggression, const readonly_context& ai_obj
|
|||
value -= exposure*(1.0-aggression);
|
||||
}
|
||||
|
||||
// If this attack uses our leader, and the leader can reach the keep,
|
||||
// and has gold to spend, reduce the value to reflect the leader's
|
||||
// lost recruitment opportunity in the case of an attack.
|
||||
if(uses_leader && ai_obj.leader_can_reach_keep() && ai_obj.current_team().gold() > 20) {
|
||||
value -= double(ai_obj.current_team().gold())*0.5;
|
||||
}
|
||||
|
||||
// Prefer to attack already damaged targets.
|
||||
value += ((target_starting_damage/3 + avg_damage_inflicted) - (1.0-aggression)*avg_damage_taken)/10.0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue