- Adding XML_Roaming.cpp to project

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@860 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
AcyForsythe
2007-04-27 20:52:43 +00:00
parent 48c5a4e1ab
commit d8ed7117f0
6 changed files with 219 additions and 43 deletions
+3 -1
View File
@@ -621,6 +621,8 @@ INT8 CalcActionPoints(SOLDIERTYPE *pSold)
ubPoints +=0;
}
}
else
ubPoints += gGameExternalOptions.iPlayerAPBonus;
// if we are in boxing mode, adjust APs... THIS MUST BE LAST!
if ( gTacticalStatus.bBoxingState == BOXING || gTacticalStatus.bBoxingState == PRE_BOXING )
@@ -687,7 +689,7 @@ void CalcNewActionPoints( SOLDIERTYPE *pSoldier )
}
else
{ //Kaiden: Players just max out normally unless drugged
pSoldier->bActionPoints = __min( pSoldier->bActionPoints, gubMaxActionPoints[ pSoldier->ubBodyType ] );
pSoldier->bActionPoints = __min( pSoldier->bActionPoints, (gubMaxActionPoints[ pSoldier->ubBodyType ] + gGameExternalOptions.iPlayerAPBonus) );
}
}