[Commits] [wesnoth/wesnoth] 244ad2: MAIs: minor code simplification in AIs that take b...

GitHub noreply at github.com
Fri Mar 28 14:49:24 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 244ad22ce29038720cd685a85cbc45bb94e655d8
      https://github.com/wesnoth/wesnoth/commit/244ad22ce29038720cd685a85cbc45bb94e655d8
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-03-28 (Fri, 28 Mar 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_coward.lua
    M data/ai/micro_ais/cas/ca_hunter.lua
    M data/ai/micro_ais/cas/ca_patrol.lua
    M data/ai/micro_ais/cas/ca_return_guardian.lua
    M data/ai/micro_ais/cas/ca_stationed_guardian.lua
    M data/ai/micro_ais/cas/ca_zone_guardian.lua

  Log Message:
  -----------
  MAIs: minor code simplification in AIs that take both [filter] and id=

These are the AIs that used to use Behavior Candidate Actions (BCA).


  Commit: 187f1c489bc87d8ed0d02263fbe4133aa1b09d66
      https://github.com/wesnoth/wesnoth/commit/187f1c489bc87d8ed0d02263fbe4133aa1b09d66
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-03-28 (Fri, 28 Mar 2014)

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

  Log Message:
  -----------
  Patrol MAI: fix bug with save/load persistent data storage

WML values may not be used as keys, this can make savegames invalid.
Store information in the units now rather than in self.data. (Note:
storing in self.data would also be possible if the syntax were changed.)


Compare: https://github.com/wesnoth/wesnoth/compare/c72c8e7ff23e...187f1c489bc8


More information about the Commits mailing list