From 93fa20af539205ebc211dc71dcbaca57d487e592 Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 15 Sep 2019 22:25:09 +0200 Subject: [PATCH] [hellfire] PrintItemMisc bin exact --- Source/items.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Source/items.cpp b/Source/items.cpp index 50b3ad31b..bb00bd78c 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3260,10 +3260,28 @@ void PrintItemMisc(ItemStruct *x) strcpy(tempstr, "Right click to use"); AddPanelString(tempstr, TRUE); } +#ifdef HELLFIRE + if (x->_iMiscId > IMISC_OILFIRST && x->_iMiscId < IMISC_OILLAST) { + PrintItemOil(x->_iMiscId); + strcpy(tempstr, "Right click to use"); + AddPanelString(tempstr, TRUE); + } + if (x->_iMiscId > 46 && x->_iMiscId < 52) { //TODO: apply enums + PrintItemOil(x->_iMiscId); + strcpy(tempstr, "Right click to use"); + AddPanelString(tempstr, TRUE); + } +#endif if (x->_iMiscId == IMISC_BOOK) { strcpy(tempstr, "Right click to read"); AddPanelString(tempstr, TRUE); } +#ifdef HELLFIRE + if (x->_iMiscId == IMISC_NOTE) { + strcpy(tempstr, "Right click to read"); + AddPanelString(tempstr, TRUE); + } +#endif if (x->_iMiscId == IMISC_MAPOFDOOM) { strcpy(tempstr, "Right click to view"); AddPanelString(tempstr, TRUE); @@ -3272,6 +3290,12 @@ void PrintItemMisc(ItemStruct *x) sprintf(tempstr, "Level : %i", x->_ivalue); AddPanelString(tempstr, TRUE); } +#ifdef HELLFIRE + if (x->_iMiscId == IMISC_AURIC) { + sprintf(tempstr, "Doubles gold capacity"); + AddPanelString(tempstr, TRUE); + } +#endif } void PrintItemDetails(ItemStruct *x)