mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 15:54:12 +00:00
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:
parent
aeed6d5538
commit
1390c8be74
@ -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
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user