[wesnoth-commits] [wesnoth/wesnoth] f599c7: Add 'Delay Advancements [modification]

gfgtdf noreply at github.com
Fri Oct 9 01:12:08 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f599c77783fb79faf14339ee976aaa58d2c08209
      https://github.com/wesnoth/wesnoth/commit/f599c77783fb79faf14339ee976aaa58d2c08209
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M data/_main.cfg
    A data/modifications.cfg
    M src/play_controller.cpp
    M src/units/helper.cpp

  Log Message:
  -----------
  Add 'Delay Advancements [modification]

Depsite being a [modification] this is actuall implemented
in the C++ code the [modification] just sets a flag.

This is meant as an alterntive to the preset advancement
type of mod, i want to play around with it a bit in 1.15
maybe we will remove it later.

The problbme this is supposed to fix is that advancemnts
are done randomly during the enemeies turn. It has a few
advantages over the preset advancemnt approach:
1) It can easily handle amlas and normal advancement
2) It doesn't need special code to handle the case that
   A unit advances multiple times.
3) It doesn't break in case that other wml code changed
   The advancements  of a unit after the preselected advancement was chosen
4) The user never needs to think about an advancement of
   a unit that might not even advance

It also has a disadvantage: it changes the rules of the
game quite a bit, in partiucar if the units heals form
an adcancement (which us usally the case), since now
with this 'healing the unit on advancement by retaliation'
during the enemies turn can no longer happen. I still
think its wirth to think about this and test it though.


  Commit: 5a24414154675eb576ec7617e9d193e66cd914c1
      https://github.com/wesnoth/wesnoth/commit/5a24414154675eb576ec7617e9d193e66cd914c1
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M src/play_controller.cpp

  Log Message:
  -----------
  Update play_controller.cpp


Compare: https://github.com/wesnoth/wesnoth/compare/af344d21a4c0...5a2441415467



More information about the Commits mailing list