[wesnoth-commits] [wesnoth/wesnoth] bc956b: Lua AIs: fix experience for killing level 0 units

GitHub noreply at github.com
Fri Nov 9 14:58:30 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: bc956b3e7f2d801dc82afcc3918c1e376b7207a7
      https://github.com/wesnoth/wesnoth/commit/bc956b3e7f2d801dc82afcc3918c1e376b7207a7
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2018-11-09 (Fri, 09 Nov 2018)

  Changed paths:
    M data/ai/lua/battle_calcs.lua
    M data/ai/micro_ais/cas/ca_bottleneck_move.lua
    M data/ai/micro_ais/cas/ca_fast_attack_utils.lua

  Log Message:
  -----------
  Lua AIs: fix experience for killing level 0 units


  Commit: 30e1fd1742b1328dae9fa635147f951b2ec4c22f
      https://github.com/wesnoth/wesnoth/commit/30e1fd1742b1328dae9fa635147f951b2ec4c22f
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2018-11-09 (Fri, 09 Nov 2018)

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

  Log Message:
  -----------
  Bottleneck Micro AI: simplify a conditional

Use elseif and no need to check experience again, that is already done earlier.


Compare: https://github.com/wesnoth/wesnoth/compare/d743a5b9f241...30e1fd1742b1
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Commits mailing list