From af55429fe094394f9f6b2b7d4efe63b8a29e0894 Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 15 Sep 2019 02:58:20 +0200 Subject: [PATCH] [hellfire] PremiumItemOk bin exact --- Source/items.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/items.cpp b/Source/items.cpp index 6301a10c4..cc3ad7527 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3771,6 +3771,15 @@ BOOL PremiumItemOk(int i) BOOL rv; rv = TRUE; +#ifdef HELLFIRE + if (AllItemsList[i].itype == ITYPE_MISC || AllItemsList[i].itype == ITYPE_GOLD || AllItemsList[i].itype == ITYPE_0E) + rv = FALSE; + + if (gbMaxPlayers != 1) { + if (AllItemsList[i].iMiscId == IMISC_OILOF || AllItemsList[i].itype == ITYPE_RING || AllItemsList[i].itype == ITYPE_AMULET) + rv = FALSE; + } +#else if (AllItemsList[i].itype == ITYPE_MISC) rv = FALSE; if (AllItemsList[i].itype == ITYPE_GOLD) @@ -3786,6 +3795,7 @@ BOOL PremiumItemOk(int i) if (AllItemsList[i].itype == ITYPE_AMULET) rv = FALSE; } +#endif return rv; }