| 2592 | } |
| 2593 | |
| 2594 | static int items_moveToInventory(lua_State *state) { |
| 2595 | auto item = Lua::CheckDFObject<df::item>(state, 1); |
| 2596 | auto unit = Lua::CheckDFObject<df::unit>(state, 2); |
| 2597 | auto use_mode = (df::inv_item_role_type)luaL_optint(state, 3, 0); |
| 2598 | int body_part = luaL_optint(state, 4, -1); |
| 2599 | lua_pushboolean(state, Items::moveToInventory(item, unit, use_mode, body_part)); |
| 2600 | return 1; |
| 2601 | } |
| 2602 | |
| 2603 | static int items_createItem(lua_State *state) |
| 2604 | { |
nothing calls this directly
no test coverage detected