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

View File

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