[wesnoth-commits] [wesnoth/wesnoth] 9b6008: ExpAI: fix bug in finding hexes next to healers
mattsc
noreply at github.com
Sun Mar 14 16:02:26 UTC 2021
Branch: refs/heads/1.14
Home: https://github.com/wesnoth/wesnoth
Commit: 9b6008be54a8581daa89f439ba73ed9a4fb2ff5f
https://github.com/wesnoth/wesnoth/commit/9b6008be54a8581daa89f439ba73ed9a4fb2ff5f
Author: mattsc <mattsc000 at gmail.com>
Date: 2021-03-14 (Sun, 14 Mar 2021)
Changed paths:
M data/ai/lua/retreat.lua
Log Message:
-----------
ExpAI: fix bug in finding hexes next to healers
The CA was supposed to mark hexes next to healers as potential healing locations, but because of this bug that did not work.
Commit: 768c5f8315a1de87e99eac55665a47d4a5467d32
https://github.com/wesnoth/wesnoth/commit/768c5f8315a1de87e99eac55665a47d4a5467d32
Author: mattsc <mattsc000 at gmail.com>
Date: 2021-03-14 (Sun, 14 Mar 2021)
Changed paths:
M data/ai/micro_ais/cas/ca_goto.lua
Log Message:
-----------
Goto Micro AI: fix checks of avoid_enemies key
Numerical values are sometimes transferred from WML to Lua using the string type. This applies, for example, to very small numbers, such as 0.0000000000001. This needs to be taken into account when checking whether avoid_enemies is a number.
Commit: c61494e1dc640686efce3e6520c97f003d6cdaa9
https://github.com/wesnoth/wesnoth/commit/c61494e1dc640686efce3e6520c97f003d6cdaa9
Author: mattsc <mattsc000 at gmail.com>
Date: 2021-03-14 (Sun, 14 Mar 2021)
Changed paths:
M data/ai/micro_ais/cas/ca_goto.lua
Log Message:
-----------
Goto Micro AI: fix possible error when ignoring enemies
The final determination of the hex to move to must take enemies into account, otherwise the MAI might try to move the unit to a hex it cannot actually reach.
Commit: 778fde4fbeffd8978513ae64dbf60d5fa8aafc4b
https://github.com/wesnoth/wesnoth/commit/778fde4fbeffd8978513ae64dbf60d5fa8aafc4b
Author: mattsc <mattsc000 at gmail.com>
Date: 2021-03-14 (Sun, 14 Mar 2021)
Changed paths:
M data/ai/micro_ais/cas/ca_protect_unit_attack.lua
M data/ai/micro_ais/cas/ca_protect_unit_finish.lua
M data/ai/micro_ais/cas/ca_protect_unit_move.lua
Log Message:
-----------
Protect Unit Micro AI: ensure units are on AI side
In general, the units specified in the MAI setup should be on the AI side. However, that might change during a scenario, for example when there is an event that switches units to other sides.
Commit: 0c7ea59613a494b8dea035ed5defdefac3512f34
https://github.com/wesnoth/wesnoth/commit/0c7ea59613a494b8dea035ed5defdefac3512f34
Author: mattsc <mattsc000 at gmail.com>
Date: 2021-03-14 (Sun, 14 Mar 2021)
Changed paths:
M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
Log Message:
-----------
Multipack Wolves MAI: fix error when a wolf is surrounded
Commit: 23fc50925641d17d46e995413675fca7b151c155
https://github.com/wesnoth/wesnoth/commit/23fc50925641d17d46e995413675fca7b151c155
Author: mattsc <mattsc000 at gmail.com>
Date: 2021-03-14 (Sun, 14 Mar 2021)
Changed paths:
M data/ai/lua/ai_helper.lua
M data/ai/lua/battle_calcs.lua
M data/ai/micro_ais/cas/ca_messenger_move.lua
Log Message:
-----------
Lua AIs: fix some incorrectly used variables
Fixes #5586
Compare: https://github.com/wesnoth/wesnoth/compare/649adaefd8b6...23fc50925641
More information about the Commits
mailing list