Browse Source

correct stat checks when calculating the item bonuses

pull/995/head^2
pionere 6 years ago committed by Anders Jenbo
parent
commit
e575ec92be
  1. 16
      Source/items.cpp

16
Source/items.cpp

@ -808,23 +808,23 @@ void CalcPlrItemVals(int p, BOOL Loadgfx)
}
plr[p]._pStrength = sadd + plr[p]._pBaseStr;
if (plr[myplr]._pStrength <= 0) {
plr[myplr]._pStrength = 0;
if (plr[p]._pStrength < 0) {
plr[p]._pStrength = 0;
}
plr[p]._pMagic = madd + plr[p]._pBaseMag;
if (plr[myplr]._pMagic <= 0) {
plr[myplr]._pMagic = 0;
if (plr[p]._pMagic < 0) {
plr[p]._pMagic = 0;
}
plr[p]._pDexterity = dadd + plr[p]._pBaseDex;
if (plr[myplr]._pDexterity <= 0) {
plr[myplr]._pDexterity = 0;
if (plr[p]._pDexterity < 0) {
plr[p]._pDexterity = 0;
}
plr[p]._pVitality = vadd + plr[p]._pBaseVit;
if (plr[myplr]._pVitality <= 0) {
plr[myplr]._pVitality = 0;
if (plr[p]._pVitality < 0) {
plr[p]._pVitality = 0;
}
if (plr[p]._pClass == PC_ROGUE) {

Loading…
Cancel
Save