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

GitHub noreply at github.com
Fri Mar 28 14:51:47 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 293295392490558788af65df86363e806df7c6a7
      https://github.com/wesnoth/wesnoth/commit/293295392490558788af65df86363e806df7c6a7
  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: 5c5a2bcf51e10bb1f3f7c6a76e398fe011c8cca0
      https://github.com/wesnoth/wesnoth/commit/5c5a2bcf51e10bb1f3f7c6a76e398fe011c8cca0
  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/0c73f26ec76e...5c5a2bcf51e1


More information about the Commits mailing list