MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / FindGetItem

Function FindGetItem

Source/inv.cpp:1662–1672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1660}
1661
1662int FindGetItem(uint32_t iseed, _item_indexes idx, uint16_t createInfo)
1663{
1664 for (uint8_t i = 0; i < ActiveItemCount; i++) {
1665 auto &item = Items[ActiveItems[i]];
1666 if (item.keyAttributesMatch(iseed, idx, createInfo)) {
1667 return i;
1668 }
1669 }
1670
1671 return -1;
1672}
1673
1674void SyncGetItem(Point position, uint32_t iseed, _item_indexes idx, uint16_t ci)
1675{

Callers 6

OnRequestGetItemFunction · 0.85
OnGetItemFunction · 0.85
OnRequestAutoGetItemFunction · 0.85
DeltaLoadLevelFunction · 0.85
SyncGetItemFunction · 0.85
StartPlayerKillFunction · 0.85

Calls 1

keyAttributesMatchMethod · 0.80

Tested by

no test coverage detected