forked from github/server
hp_max is a property, not a function
This commit is contained in:
parent
2f3fa88af5
commit
30de17d1e8
|
@ -197,8 +197,7 @@ bind_unit(lua_State * L)
|
|||
.def_readonly("region", &unit::region)
|
||||
.def_readonly("faction", &unit::faction)
|
||||
.def_readonly("id", &unit::no)
|
||||
.def_readwrite("hp", &unit::hp)
|
||||
.def("hp_max", &unit_hpmax)
|
||||
.def_readwrite("hp", &unit::hp)
|
||||
.def("get_item", &unit_getitem)
|
||||
.def("add_item", &unit_additem)
|
||||
.def("get_skill", &unit_getskill)
|
||||
|
@ -211,5 +210,6 @@ bind_unit(lua_State * L)
|
|||
.property("familiarspells", &unit_familiarspells, return_stl_iterator)
|
||||
.property("number", &unit_getnumber, &unit_setnumber)
|
||||
.property("race", &unit_getrace, &unit_setrace)
|
||||
.property("hp_max", &unit_hpmax)
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue