Browse Source

StoreStatOk bin exact (#670)

pull/39/head
Anders Jenbo 7 years ago committed by Robin Eklind
parent
commit
b209bebcaf
  1. 17
      Source/items.cpp
  2. 2
      Source/items.h

17
Source/items.cpp

@ -4127,15 +4127,18 @@ void __fastcall UseItem(int p, int Mid, int spl)
}
}
BOOLEAN __fastcall StoreStatOk(ItemStruct *h)
BOOL __fastcall StoreStatOk(ItemStruct *h)
{
BOOLEAN sf; // al
BOOL sf;
sf = TRUE;
if (plr[myplr]._pStrength < h->_iMinStr)
sf = FALSE;
if (plr[myplr]._pMagic < h->_iMinMag)
sf = FALSE;
if (plr[myplr]._pDexterity < h->_iMinDex)
sf = FALSE;
sf = 1;
if (plr[myplr]._pStrength < h->_iMinStr
|| plr[myplr]._pMagic < h->_iMinMag
|| plr[myplr]._pDexterity < h->_iMinDex)
sf = 0;
return sf;
}

2
Source/items.h

@ -88,7 +88,7 @@ void __fastcall PrintItemMisc(ItemStruct *x);
void __fastcall PrintItemDetails(ItemStruct *x);
void __fastcall PrintItemDur(ItemStruct *x);
void __fastcall UseItem(int p, int Mid, int spl);
BOOLEAN __fastcall StoreStatOk(ItemStruct *h);
BOOL __fastcall StoreStatOk(ItemStruct *h);
BOOL __fastcall SmithItemOk(int i);
int __fastcall RndSmithItem(int lvl);
void __fastcall BubbleSwapItem(ItemStruct *a, ItemStruct *b);

Loading…
Cancel
Save