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

Function CheckIdentify

Source/items.cpp:2506–2520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2504}
2505
2506void CheckIdentify(int pnum, int cii)
2507{
2508 ItemStruct *pi;
2509
2510 if (cii >= NUM_INVLOC)
2511 pi = &plr[pnum].InvList[cii - NUM_INVLOC];
2512 else
2513 pi = &plr[pnum].InvBody[cii];
2514
2515 pi->_iIdentified = TRUE;
2516 CalcPlrInv(pnum, TRUE);
2517
2518 if (pnum == myplr)
2519 SetCursor_(CURSOR_HAND);
2520}
2521
2522void DoRepair(int pnum, int cii)
2523{

Callers 1

TryIconCursFunction · 0.85

Calls 2

CalcPlrInvFunction · 0.85
SetCursor_Function · 0.85

Tested by

no test coverage detected