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

Function GetItemStr

Source/items.cpp:2486–2504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2484}
2485
2486void GetItemStr(int i)
2487{
2488 int nGold;
2489
2490 if (item[i]._itype != ITYPE_GOLD) {
2491 if (item[i]._iIdentified)
2492 strcpy(infostr, item[i]._iIName);
2493 else
2494 strcpy(infostr, item[i]._iName);
2495
2496 if (item[i]._iMagical == ITEM_QUALITY_MAGIC)
2497 infoclr = COL_BLUE;
2498 if (item[i]._iMagical == ITEM_QUALITY_UNIQUE)
2499 infoclr = COL_GOLD;
2500 } else {
2501 nGold = item[i]._ivalue;
2502 sprintf(infostr, "%i gold %s", nGold, get_pieces_str(nGold));
2503 }
2504}
2505
2506void CheckIdentify(int pnum, int cii)
2507{

Callers 1

DrawInfoBoxFunction · 0.85

Calls 1

get_pieces_strFunction · 0.85

Tested by

no test coverage detected