mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-23 06:41:08 +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
@ -24,6 +24,8 @@ namespace MWLua
|
||||
item["isRestocking"]
|
||||
= [](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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user