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

Function PrintItemMisc

Source/items.cpp:2999–3028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2997}
2998
2999void PrintItemMisc(ItemStruct *x)
3000{
3001 if (x->_iMiscId == IMISC_SCROLL) {
3002 strcpy(tempstr, "Right-click to read");
3003 AddPanelString(tempstr, TRUE);
3004 }
3005 if (x->_iMiscId == IMISC_SCROLLT) {
3006 strcpy(tempstr, "Right-click to read, then");
3007 AddPanelString(tempstr, TRUE);
3008 strcpy(tempstr, "left-click to target");
3009 AddPanelString(tempstr, TRUE);
3010 }
3011 if (x->_iMiscId >= IMISC_USEFIRST && x->_iMiscId <= IMISC_USELAST) {
3012 PrintItemOil(x->_iMiscId);
3013 strcpy(tempstr, "Right click to use");
3014 AddPanelString(tempstr, TRUE);
3015 }
3016 if (x->_iMiscId == IMISC_BOOK) {
3017 strcpy(tempstr, "Right click to read");
3018 AddPanelString(tempstr, TRUE);
3019 }
3020 if (x->_iMiscId == IMISC_MAPOFDOOM) {
3021 strcpy(tempstr, "Right click to view");
3022 AddPanelString(tempstr, TRUE);
3023 }
3024 if (x->_iMiscId == IMISC_EAR) {
3025 sprintf(tempstr, "Level : %i", x->_ivalue);
3026 AddPanelString(tempstr, TRUE);
3027 }
3028}
3029
3030void PrintItemDetails(ItemStruct *x)
3031{

Callers 2

PrintItemDetailsFunction · 0.85
PrintItemDurFunction · 0.85

Calls 2

AddPanelStringFunction · 0.85
PrintItemOilFunction · 0.85

Tested by

no test coverage detected