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

Function StartGoldDrop

Source/inv.cpp:2059–2070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2057}
2058
2059void StartGoldDrop()
2060{
2061 initialDropGoldIndex = pcursinvitem;
2062 if (pcursinvitem <= INVITEM_INV_LAST)
2063 initialDropGoldValue = plr[myplr].InvList[pcursinvitem - INVITEM_INV_FIRST]._ivalue;
2064 else
2065 initialDropGoldValue = plr[myplr].SpdList[pcursinvitem - INVITEM_BELT_FIRST]._ivalue;
2066 dropGoldFlag = TRUE;
2067 dropGoldValue = 0;
2068 if (talkflag)
2069 control_reset_talk();
2070}
2071
2072BOOL UseInvItem(int pnum, int cii)
2073{

Callers 1

UseInvItemFunction · 0.85

Calls 1

control_reset_talkFunction · 0.85

Tested by

no test coverage detected