[wesnoth-commits] [wesnoth/wesnoth] cdc77a: WC2: bonus points

sevu noreply at github.com
Fri Oct 22 19:35:21 UTC 2021


  Branch: refs/heads/1.16-wc2
  Home:   https://github.com/wesnoth/wesnoth
  Commit: cdc77a8234ffef8c64138ecec61ea32b1a8538dd
      https://github.com/wesnoth/wesnoth/commit/cdc77a8234ffef8c64138ecec61ea32b1a8538dd
  Author: Severin Glöckner <severin.gloeckner at stud.htwk-leipzig.de>
  Date:   2021-10-22 (Fri, 22 Oct 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/map/scenario_utils/bonus_points.lua

  Log Message:
  -----------
  WC2: bonus points

In 1.14 it was 1 bonus point per player.
In the function 3 bonus points are hardcoded.
Reason is that wc2_player_count is not known in the first scenario.
Change to give 1 bonus per player in later scenarios, and assume 3 players for the first one.


  Commit: 2b8b6d65a59ae0782d044cc00b6314abe28bbbd1
      https://github.com/wesnoth/wesnoth/commit/2b8b6d65a59ae0782d044cc00b6314abe28bbbd1
  Author: Severin Glöckner <severin.gloeckner at stud.htwk-leipzig.de>
  Date:   2021-10-22 (Fri, 22 Oct 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/game_mechanics/recall.lua

  Log Message:
  -----------
  WC2 recall costs

It's fine to give this object also to remaining enemies.
(It's only unneccessary, as they are deleted afterwards.)
Though when side 4 is a human side it is useful.


  Commit: 983352d57afd12a11b3c507c6794481c84adaa45
      https://github.com/wesnoth/wesnoth/commit/983352d57afd12a11b3c507c6794481c84adaa45
  Author: Severin Glöckner <severin.gloeckner at stud.htwk-leipzig.de>
  Date:   2021-10-22 (Fri, 22 Oct 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/map/scenario_utils/plot.lua

  Log Message:
  -----------
  WC2 Plot: make it independent of player sides


  Commit: 1307eed100867011a3beb8e91128b90e35f50287
      https://github.com/wesnoth/wesnoth/commit/1307eed100867011a3beb8e91128b90e35f50287
  Author: Severin Glöckner <severin.gloeckner at stud.htwk-leipzig.de>
  Date:   2021-10-22 (Fri, 22 Oct 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/campaign_main.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/color.lua

  Log Message:
  -----------
  Make "wc2_fix_colors" work with 4 player sides

This is the only place, where it mattered, that there is no reserved empty side for side 4.
For the dual role of side 4 being either an AI or a player side, it uses a workaround.


Compare: https://github.com/wesnoth/wesnoth/compare/bed6a25040d1...1307eed10086



More information about the Commits mailing list