1
0
Fork 0
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:
Alexei Kotov 2024-02-20 08:36:46 +00:00
commit 592081d3cb

View file

@ -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);
} }
} }