We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 016d1fb commit b3b8ab6Copy full SHA for b3b8ab6
1 file changed
msu/hooks/items/item_container.nut
@@ -92,4 +92,19 @@
92
93
return __original(_item);
94
}
95
+
96
+ q.getItemsByFunction <- function( _function )
97
+ {
98
+ local ret = [];
99
+ foreach (slot, _ in ::Const.ItemSlotSpaces)
100
101
+ ret.extend(this.getItemsByFunctionAtSlot(slot, _function));
102
+ }
103
+ return ret;
104
105
106
+ q.getItemsByFunctionAtSlot <- function( _slot, _function )
107
108
+ return this.m.Items[_slot].filter(@(_, _item) _item != null && _item != -1 && _function(_item));
109
110
});
0 commit comments