[wesnoth-commits] [wesnoth/wesnoth] 271f49: WFL: Add functions to get the time of day bonus
Celtic Minstrel
noreply at github.com
Sun May 23 17:46:37 UTC 2021
Branch: refs/heads/wfl_tod
Home: https://github.com/wesnoth/wesnoth
Commit: 271f490c4047ded720a577fb11d0b9c421d07681
https://github.com/wesnoth/wesnoth/commit/271f490c4047ded720a577fb11d0b9c421d07681
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-23 (Sun, 23 May 2021)
Changed paths:
M src/formula/function_gamestate.cpp
Log Message:
-----------
WFL: Add functions to get the time of day bonus
tod_bonus: accounts for inherent terrain lighting and unit illumination effects
base_tod_bonus: ignores these effects
Both take an optional location and an optional turn number. With a location, time areas are taken into account. With a turn number, you can check what the bonus will be iin the future, or what it was in the past.
Closes #5776
Commit: 16f3d455744b8ea94731ec84db5e26dfb31718e1
https://github.com/wesnoth/wesnoth/commit/16f3d455744b8ea94731ec84db5e26dfb31718e1
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-05-23 (Sun, 23 May 2021)
Changed paths:
M src/formula/callable_objects.cpp
Log Message:
-----------
WFL: Add a convenient way to get the terrain a unit is standing on
Compare: https://github.com/wesnoth/wesnoth/compare/969d83dbb939...16f3d455744b
More information about the Commits
mailing list