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