|
|
|
|
@ -2704,7 +2704,7 @@ int RndUItem(int m)
|
|
|
|
|
okflag = FALSE; |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_GOLD) |
|
|
|
|
okflag = FALSE; |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_MEAT) |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_FOOD) |
|
|
|
|
okflag = FALSE; |
|
|
|
|
if (AllItemsList[i].iMiscId == IMISC_BOOK) |
|
|
|
|
okflag = TRUE; |
|
|
|
|
@ -4459,7 +4459,7 @@ void PrintItemDetails(ItemStruct *x)
|
|
|
|
|
if (x->_iClass == ICLASS_WEAPON) { |
|
|
|
|
#ifdef HELLFIRE |
|
|
|
|
if (x->_iMinDam == x->_iMaxDam) { |
|
|
|
|
if (x->_iMaxDur == 255) |
|
|
|
|
if (x->_iMaxDur == DUR_INDESTRUCTIBLE) |
|
|
|
|
sprintf(tempstr, "damage: %i Indestructible", x->_iMinDam); |
|
|
|
|
else |
|
|
|
|
sprintf(tempstr, "damage: %i Dur: %i/%i", x->_iMinDam, x->_iDurability, x->_iMaxDur); |
|
|
|
|
@ -4526,7 +4526,7 @@ void PrintItemDur(ItemStruct *x)
|
|
|
|
|
if (x->_iClass == ICLASS_WEAPON) { |
|
|
|
|
#ifdef HELLFIRE |
|
|
|
|
if (x->_iMinDam == x->_iMaxDam) { |
|
|
|
|
if (x->_iMaxDur == 255) |
|
|
|
|
if (x->_iMaxDur == DUR_INDESTRUCTIBLE) |
|
|
|
|
sprintf(tempstr, "damage: %i Indestructible", x->_iMinDam); |
|
|
|
|
else |
|
|
|
|
sprintf(tempstr, "damage: %i Dur: %i/%i", x->_iMinDam, x->_iDurability, x->_iMaxDur); |
|
|
|
|
@ -4582,7 +4582,7 @@ void UseItem(int p, int Mid, int spl)
|
|
|
|
|
|
|
|
|
|
switch (Mid) { |
|
|
|
|
case IMISC_HEAL: |
|
|
|
|
case IMISC_MEAT: |
|
|
|
|
case IMISC_FOOD: |
|
|
|
|
j = plr[p]._pMaxHP >> 8; |
|
|
|
|
l = ((j >> 1) + random_(39, j)) << 6; |
|
|
|
|
#ifdef HELLFIRE |
|
|
|
|
@ -4846,7 +4846,7 @@ BOOL SmithItemOk(int i)
|
|
|
|
|
rv = FALSE; |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_GOLD) |
|
|
|
|
rv = FALSE; |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_MEAT) |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_FOOD) |
|
|
|
|
rv = FALSE; |
|
|
|
|
#ifdef HELLFIRE |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_STAFF && AllItemsList[i].iSpell) |
|
|
|
|
@ -4958,7 +4958,7 @@ BOOL PremiumItemOk(int i)
|
|
|
|
|
|
|
|
|
|
rv = TRUE; |
|
|
|
|
#ifdef HELLFIRE |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_MISC || AllItemsList[i].itype == ITYPE_GOLD || AllItemsList[i].itype == ITYPE_MEAT) |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_MISC || AllItemsList[i].itype == ITYPE_GOLD || AllItemsList[i].itype == ITYPE_FOOD) |
|
|
|
|
rv = FALSE; |
|
|
|
|
|
|
|
|
|
if (gbMaxPlayers != 1) { |
|
|
|
|
@ -4970,7 +4970,7 @@ BOOL PremiumItemOk(int i)
|
|
|
|
|
rv = FALSE; |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_GOLD) |
|
|
|
|
rv = FALSE; |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_MEAT) |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_FOOD) |
|
|
|
|
rv = FALSE; |
|
|
|
|
if (AllItemsList[i].itype == ITYPE_STAFF) |
|
|
|
|
rv = FALSE; |
|
|
|
|
|