[Commits] [wesnoth/wesnoth] 5533d5: Fast Micro AI: separate out attacks by AI leader
GitHub
noreply at github.com
Mon Sep 7 15:49:45 UTC 2015
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 5533d5728ac5f5b30a204811c5ef38a639beff06
https://github.com/wesnoth/wesnoth/commit/5533d5728ac5f5b30a204811c5ef38a639beff06
Author: mattsc <mattsc at MSMB.local>
Date: 2015-09-07 (Mon, 07 Sep 2015)
Changed paths:
M data/ai/micro_ais/cas/ca_fast_combat.lua
A data/ai/micro_ais/cas/ca_fast_combat_leader.lua
M data/ai/micro_ais/micro_ai_wml_tag.lua
Log Message:
-----------
Fast Micro AI: separate out attacks by AI leader
In the previous version, the leader would sometimes leave the keep for
truly suicidal attacks. This commit adds an extra layer of analysis to
evaluate whether an attack position is safe enough.
This evaluation is too expensive to be done for all units for the
purpose of this AI, or even to be done for the leader more than once,
so this is separated out into its own candidate action that is only
evaluated once everything else is done.
More information about the Commits
mailing list