Added unit_type.profile and unit_type.small_profile getters (fixes #1468)

There are probably more [unit_type] getters I should add, but this addresses the
immediate issue brought up in the feature request.
This commit is contained in:
Charles Dang 2018-02-09 07:48:15 +11:00
parent aeed6d5538
commit 1390c8be74
2 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,7 @@ Version 1.13.11:
* Allow moving on-map units by setting unit.x and unit.y fields, or with
unit.loc = {x, y} or unit.loc = {x = x, y = y}
* Added side.chose_random getter.
* Added unit_type.profile and unit_type.small_profile getters.
* Multiplayer:
* Dark Forecast: Fixed broken faction and leader selection.
* Rename the Khalifate to Dunefolk. This includes renaming all the faction's

View File

@ -51,6 +51,8 @@ static int impl_unit_type_get(lua_State *L)
return_string_attrib("race", ut.race_id());
return_string_attrib("image", ut.image());
return_string_attrib("icon", ut.icon());
return_string_attrib("profile", ut.big_profile());
return_string_attrib("small_profile", ut.small_profile());
return_int_attrib("max_hitpoints", ut.hitpoints());
return_int_attrib("max_moves", ut.movement());
return_int_attrib("max_experience", ut.experience_needed());