Lua API: Add village_support field to wesnoth.sides table elements

The [store_side] implementation in Lua actually already assumed that
this field was implemented.
This commit is contained in:
Ignacio R. Morelle 2013-12-18 23:44:16 -03:00
parent 80d093b2b9
commit f10bf2b538
2 changed files with 5 additions and 2 deletions

View file

@ -25,7 +25,8 @@ Version 1.11.7+dev:
* Language and i18n:
* Updated translations: Chinese (Traditional), Dutch, Galician, Japanese
* Lua API:
* Added flag and flag_icon fields to wesnoth.sides table elements.
* Added flag, flag_icon, and village_support fields to wesnoth.sides table
elements.
* Multiplayer:
* Unit names and genders are synced in MP games.
* Replays:
@ -51,7 +52,8 @@ Version 1.11.7+dev:
* [modify_side] can now change a side's flags and status bar icon using the
"flag" and "flag_icon" attributes also accepted in [side] definitions
(bug #18454).
* [store_side] now stores the "flag" and "flag_icon" attributes from sides.
* [store_side] now stores the "flag", "flag_icon", and "village_support"
attributes from sides.
* Miscellaneous and bug fixes:
* Pango markup is applied correctly and consistently in button tooltips.

View file

@ -1160,6 +1160,7 @@ static int impl_side_get(lua_State *L)
return_int_attrib("gold", t.gold());
return_tstring_attrib("objectives", t.objectives());
return_int_attrib("village_gold", t.village_gold());
return_int_attrib("village_support", t.village_support());
return_int_attrib("recall_cost", t.recall_cost());
return_int_attrib("base_income", t.base_income());
return_int_attrib("total_income", t.total_income());