[wesnoth-commits] [wesnoth/wesnoth] d9b4ae: add student variable to ability formulas
gfgtdf
noreply at github.com
Sat Apr 18 20:38:50 UTC 2020
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: d9b4ae1ecadc04039430da90970c5c448e5ab944
https://github.com/wesnoth/wesnoth/commit/d9b4ae1ecadc04039430da90970c5c448e5ab944
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2020-04-18 (Sat, 18 Apr 2020)
Changed paths:
M src/actions/attack.cpp
M src/actions/heal.cpp
M src/actions/move.cpp
M src/pathfind/teleport.cpp
M src/units/abilities.cpp
M src/units/map.hpp
M src/units/types.cpp
M src/units/udisplay.cpp
M src/units/unit.cpp
M src/units/unit.hpp
Log Message:
-----------
add student variable to ability formulas
This can be different from 'other' in case of a
an ability that effects the enemy, where 'other'
should be the unit that receives the effect
(here: the enemy), studend is the unit that
matches the [affect_adjacent], and the unnamed
unit is the unit that has the ability.
I think it'd be nice to have even more variables
available so that for example the effect could
depend on the opponent even when it doesn't
effect the opponent.
More information about the Commits
mailing list