mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
Merge branch 'addcarry' into 'master'
Add missing lua function types.Item.isCarriable See merge request OpenMW/openmw!3879
This commit is contained in:
commit
592081d3cb
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ namespace MWLua
|
||||||
item["isRestocking"]
|
item["isRestocking"]
|
||||||
= [](const Object& object) -> bool { return object.ptr().getCellRef().getCount(false) < 0; };
|
= [](const Object& object) -> bool { return object.ptr().getCellRef().getCount(false) < 0; };
|
||||||
|
|
||||||
|
item["isCarriable"] = [](const Object& object) -> bool { return object.ptr().getClass().isItem(object.ptr()); };
|
||||||
|
|
||||||
addItemDataBindings(item, context);
|
addItemDataBindings(item, context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue