[Commits] [wesnoth/wesnoth] cc6679: ai_helper.robust_move_and_attack: return action re...

GitHub noreply at github.com
Sat Oct 22 03:57:25 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: cc6679159b8eb548d37b10c5ba4dbdba631df5bd
      https://github.com/wesnoth/wesnoth/commit/cc6679159b8eb548d37b10c5ba4dbdba631df5bd
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2016-10-21 (Fri, 21 Oct 2016)

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

  Log Message:
  -----------
  ai_helper.robust_move_and_attack: return action result to calling function

This function is supposed to be able to deal with all kinds of rare and
weird events without throwing errors, but it should still return a
status table describing what happened. The vast majority of situations
will simply return the move_result tables. For all the strange stuff
that could also happen due to WML events etc., we set up dummy tables
with the same structure and (somewhat) descriptive error messages
instead.


  Commit: 93f95f1d4c515009a70b3b262799de3988399f87
      https://github.com/wesnoth/wesnoth/commit/93f95f1d4c515009a70b3b262799de3988399f87
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2016-10-21 (Fri, 21 Oct 2016)

  Changed paths:
    M data/ai/micro_ais/cas/ca_fast_move.lua

  Log Message:
  -----------
  Fast Micro AI: better recovery from ambushes etc.

This is not necessary for most other Micro AIs, but this AI moves many
units per execution for speed reasons. If an ambush or failed teleport
or similar happens, it is better to reconsider rather than pull through
with the rest of the moves.


Compare: https://github.com/wesnoth/wesnoth/compare/bb436220811a...93f95f1d4c51


More information about the Commits mailing list