|
|
|
|
@ -923,15 +923,20 @@ void __cdecl S_StartSSell()
|
|
|
|
|
// 6A09E4: using guessed type int stextsmax;
|
|
|
|
|
// 6A6BB8: using guessed type int stextscrl;
|
|
|
|
|
|
|
|
|
|
BOOLEAN __fastcall SmithRepairOk(int i) |
|
|
|
|
BOOL __fastcall SmithRepairOk(int i) |
|
|
|
|
{ |
|
|
|
|
if (plr[myplr].InvList[i]._itype != ITYPE_NONE |
|
|
|
|
&& plr[myplr].InvList[i]._itype |
|
|
|
|
&& plr[myplr].InvList[i]._itype != ITYPE_GOLD |
|
|
|
|
&& plr[myplr].InvList[i]._itype != ITYPE_0E) |
|
|
|
|
return plr[myplr].InvList[i]._iDurability != plr[myplr].InvList[i]._iMaxDur; |
|
|
|
|
else |
|
|
|
|
return 0; |
|
|
|
|
if (plr[myplr].InvList[i]._itype == ITYPE_NONE) |
|
|
|
|
return FALSE; |
|
|
|
|
if (plr[myplr].InvList[i]._itype == ITYPE_MISC) |
|
|
|
|
return FALSE; |
|
|
|
|
if (plr[myplr].InvList[i]._itype == ITYPE_GOLD) |
|
|
|
|
return FALSE; |
|
|
|
|
if (plr[myplr].InvList[i]._itype == ITYPE_0E) |
|
|
|
|
return FALSE; |
|
|
|
|
if (plr[myplr].InvList[i]._iDurability == plr[myplr].InvList[i]._iMaxDur) |
|
|
|
|
return FALSE; |
|
|
|
|
|
|
|
|
|
return TRUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void __cdecl S_StartSRepair() |
|
|
|
|
|