Skip to content

Commit

Permalink
Added unit_type.profile and unit_type.small_profile getters (fixes #1468
Browse files Browse the repository at this point in the history
)

There are probably more [unit_type] getters I should add, but this addresses the
immediate issue brought up in the feature request.
  • Loading branch information
Vultraz committed Feb 8, 2018
1 parent aeed6d5 commit 1390c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/scripting/lua_unit_type.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 1390c8b

Please sign in to comment.