| 2997 | } |
| 2998 | |
| 2999 | void 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 | |
| 3030 | void PrintItemDetails(ItemStruct *x) |
| 3031 | { |
no test coverage detected