[Commits] [wesnoth/wesnoth] 397014: remove tgame_mode::LINGER_SP and tgame_mode::LINGE...

GitHub noreply at github.com
Mon Oct 5 22:16:00 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 397014a89dc245a8ccb197ce97ce05e50cce11a1
      https://github.com/wesnoth/wesnoth/commit/397014a89dc245a8ccb197ce97ce05e50cce11a1
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/game_display.hpp
    M src/playmp_controller.cpp
    M src/playsingle_controller.cpp

  Log Message:
  -----------
  remove tgame_mode::LINGER_SP and tgame_mode::LINGER_MP

they already had the same effect so i merged both options into just
tgame_mode::LINGER


  Commit: 8ddcdebb82021ee518200970d299ebbecaf0df9f
      https://github.com/wesnoth/wesnoth/commit/8ddcdebb82021ee518200970d299ebbecaf0df9f
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/side_filter.cpp

  Log Message:
  -----------
  allow side controller= filter in unsynced code.

and make controller= a comma speperated list, so that one can for
example search for controller=ai,network_ai


  Commit: f74d89d166ef40f6c152987c9ccfec80f9860176
      https://github.com/wesnoth/wesnoth/commit/f74d89d166ef40f6c152987c9ccfec80f9860176
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/unit.hpp

  Log Message:
  -----------
  more lua modifyable unit properties


  Commit: 1f3aeb6574dac56177660d86d4a1c321b244ebfb
      https://github.com/wesnoth/wesnoth/commit/1f3aeb6574dac56177660d86d4a1c321b244ebfb
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/unit.cpp

  Log Message:
  -----------
  add [effect] apply_to=max_expereince set=<value>


  Commit: eaa192ffa80e4d699c7b169f6eefdac9be3e0c81
      https://github.com/wesnoth/wesnoth/commit/eaa192ffa80e4d699c7b169f6eefdac9be3e0c81
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/play_controller.cpp
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  fix [lua] tags beeing lost on reload


  Commit: 11d6c3f1998f254631616478e75756a6fa2d41ea
      https://github.com/wesnoth/wesnoth/commit/11d6c3f1998f254631616478e75756a6fa2d41ea
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  fix assertion failue in wesnth.random


  Commit: c9e23dc733cc5c81e8f12ca8be43adf36fd8b67d
      https://github.com/wesnoth/wesnoth/commit/c9e23dc733cc5c81e8f12ca8be43adf36fd8b67d
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/saved_game.cpp

  Log Message:
  -----------
  add enable_if= to mod and era events

http://gna.org/bugs/?23721
enable_if = in [event] contains a condition that is evalulated before
the scenario is startd (specially before the [replay_start] snapshot is
taken) to check whether the event should be added to the scenario.
[event]
enable_if="$($scenario_num -1 > -1)"
[/event]
will for example add the event only if it's not the first scenario (assuming
wml sets the variable) 'scenario_num' to the current scenario number.


  Commit: f7e0de59b71cf6a55ac5d81365a16715072e9229
      https://github.com/wesnoth/wesnoth/commit/f7e0de59b71cf6a55ac5d81365a16715072e9229
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/unit.hpp

  Log Message:
  -----------
  fix units variation getter


  Commit: 94ea5782fffdd0ee29d4d2777dfdc4fbd562a482
      https://github.com/wesnoth/wesnoth/commit/94ea5782fffdd0ee29d4d2777dfdc4fbd562a482
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/formula_string_utils.cpp

  Log Message:
  -----------
  add $varname?default_value| in variable substitution


  Commit: 83cc82185e5336ead14fee5f9e5bb95b1d02cda0
      https://github.com/wesnoth/wesnoth/commit/83cc82185e5336ead14fee5f9e5bb95b1d02cda0
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-10-06 (Tue, 06 Oct 2015)

  Changed paths:
    M src/ai/lua/core.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_api.cpp
    M src/scripting/lua_api.hpp
    M src/unit.cpp

  Log Message:
  -----------
  add custom [effect]s with wesnoth.effects

Note that is not possible to use untore_unit/put unit inside those
effects becasue it will casue infinite recirsion.

Intead you can eigher use direct lua unit modification or use reuse
effects with wesnoth.add_modification(u, ..., , ..., false)

The main problem here was, that [effect]s are often applied in unit's
constructor where is was previously not possible to create a lua_unit
refering to that unit, to fix that i had to change lua_unit, luaW_checkunit
and luaW_getunit.


Compare: https://github.com/wesnoth/wesnoth/compare/b742542b37bc...83cc82185e53


More information about the Commits mailing list