[wesnoth-commits] [wesnoth/wesnoth] a9d9fb: AI: fix [leader_goal] for sides with multiple leaders

mattsc noreply at github.com
Fri Nov 22 04:26:27 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a9d9fbaccd13cba0c42b64c839e3dbf6c588c2f7
      https://github.com/wesnoth/wesnoth/commit/a9d9fbaccd13cba0c42b64c839e3dbf6c588c2f7
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M src/ai/default/ca.cpp

  Log Message:
  -----------
  AI: fix [leader_goal] for sides with multiple leaders

Previously the AI would only move one of the leaders.


  Commit: 626d7ee38127453977e7d77faaa571729204ac24
      https://github.com/wesnoth/wesnoth/commit/626d7ee38127453977e7d77faaa571729204ac24
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M data/ai/lua/ca_high_xp_attack.lua
    M src/ai/composite/aspect.hpp
    M src/ai/composite/goal.cpp
    M src/ai/composite/rca.cpp
    M src/ai/composite/rca.hpp
    M src/ai/default/aspect_attacks.cpp
    M src/ai/default/ca.cpp
    M src/ai/default/ca_move_to_targets.cpp
    M src/ai/default/recruitment.cpp
    M src/ai/lua/core.cpp
    M src/ai/lua/core.hpp
    M src/ai/lua/engine_lua.cpp

  Log Message:
  -----------
  AI: add [filter_own] to all default AI candidate actions

This allows restricting each CA individually to only a subset of the units. It also means that several instances of the same CA can be used in the same AI configuration, in order to, for example, force the order in which units are dealt with, or to apply different settings to different units.


  Commit: 997e08c5d30d47eff8203a8911d1ae7e5942ddf8
      https://github.com/wesnoth/wesnoth/commit/997e08c5d30d47eff8203a8911d1ae7e5942ddf8
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M data/ai/lua/ca_move_to_any_enemy.lua

  Log Message:
  -----------
  Experimental AI: fix bug in move_to_any_enemy CA

Previously, if the best move found for a unit was its own position, the entire CA would be blacklisted and no other unit would be moved.


  Commit: 1816ee524913fb3bc26673287aecd3c1cf1dad2d
      https://github.com/wesnoth/wesnoth/commit/1816ee524913fb3bc26673287aecd3c1cf1dad2d
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M data/ai/lua/ca_castle_switch.lua
    M data/ai/lua/ca_grab_villages.lua
    M data/ai/lua/ca_move_to_any_enemy.lua
    M data/ai/lua/ca_place_healers.lua
    M data/ai/lua/ca_recruit_rushers.lua
    M data/ai/lua/ca_retreat_injured.lua
    M data/ai/lua/ca_spread_poison.lua
    M data/ai/lua/ca_village_hunt.lua
    M data/ai/lua/generic_recruit_engine.lua

  Log Message:
  -----------
  AI: add [filter_own] to all Experimental AI candidate actions


  Commit: 31b04e345f882ca3ac094c21665cf9e1e95885da
      https://github.com/wesnoth/wesnoth/commit/31b04e345f882ca3ac094c21665cf9e1e95885da
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M data/ai/lua/ca_castle_switch.lua
    M data/ai/lua/ca_grab_villages.lua
    M data/ai/lua/ca_high_xp_attack.lua
    M data/ai/lua/ca_move_to_any_enemy.lua
    M data/ai/lua/ca_place_healers.lua
    M data/ai/lua/ca_recruit_rushers.lua
    M data/ai/lua/ca_retreat_injured.lua
    M data/ai/lua/ca_spread_poison.lua
    M data/ai/lua/ca_village_hunt.lua
    M data/ai/lua/generic_recruit_engine.lua
    M src/ai/composite/aspect.hpp
    M src/ai/composite/goal.cpp
    M src/ai/composite/rca.cpp
    M src/ai/composite/rca.hpp
    M src/ai/default/aspect_attacks.cpp
    M src/ai/default/ca.cpp
    M src/ai/default/ca_move_to_targets.cpp
    M src/ai/default/recruitment.cpp
    M src/ai/lua/core.cpp
    M src/ai/lua/core.hpp
    M src/ai/lua/engine_lua.cpp

  Log Message:
  -----------
  Merge pull request #4581 from mattsc/ca_filter_own

AI: add [filter_own] to all default and Exp AI candidate actions


Compare: https://github.com/wesnoth/wesnoth/compare/1c590a7efef9...31b04e345f88



More information about the Commits mailing list