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

Function FindGetItem

Source/inv.cpp:1615–1635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1613}
1614
1615int FindGetItem(int idx, WORD ci, int iseed)
1616{
1617 int i, ii;
1618
1619 i = 0;
1620 if (numitems <= 0)
1621 return -1;
1622
1623 while (1) {
1624 ii = itemactive[i];
1625 if (item[ii].IDidx == idx && item[ii]._iSeed == iseed && item[ii]._iCreateInfo == ci)
1626 break;
1627
1628 i++;
1629
1630 if (i >= numitems)
1631 return -1;
1632 }
1633
1634 return ii;
1635}
1636
1637void SyncGetItem(int x, int y, int idx, WORD ci, int iseed)
1638{

Callers 10

DeltaLoadLevelFunction · 0.85
On_REQUESTGITEMFunction · 0.85
On_GETITEMFunction · 0.85
On_REQUESTAGITEMFunction · 0.85
On_AGETITEMFunction · 0.85
SyncGetItemFunction · 0.85
InvPutItemFunction · 0.85
SyncPutItemFunction · 0.85
RespawnDeadItemFunction · 0.85
StartPlayerKillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected