Merge branch 'addcarry' into 'master'

Add missing lua function types.Item.isCarriable

See merge request OpenMW/openmw!3879
fix-osga-rotate-wildly
Alexei Kotov 11 months ago
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…
Cancel
Save