mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: exp bonus from interrogation was too high
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6229 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5525,6 +5525,9 @@ void HandlePrisonerProcessingInSector( INT16 sMapX, INT16 sMapY, INT8 bZ )
|
||||
UINT32 interrogationpoints = pSectorInfo->uiInterrogationHundredsLeft;
|
||||
pSectorInfo->uiInterrogationHundredsLeft = 0;
|
||||
|
||||
// remember old interrogation points for exp distribution later
|
||||
UINT32 oldinterrogationpoints = interrogationpoints;
|
||||
|
||||
if ( !numprisoners )
|
||||
return;
|
||||
|
||||
@@ -5682,8 +5685,11 @@ void HandlePrisonerProcessingInSector( INT16 sMapX, INT16 sMapY, INT8 bZ )
|
||||
|
||||
// give experience rewards to the interrogators
|
||||
// total experience to share
|
||||
if ( !oldinterrogationpoints )
|
||||
return;
|
||||
|
||||
FLOAT totalexp = (FLOAT) (100 * prisonersinterrogated);
|
||||
FLOAT expratio = totalexp / (interrogationpoints * 33); // TODO
|
||||
FLOAT expratio = totalexp / (oldinterrogationpoints * 33); // TODO
|
||||
|
||||
// award experience
|
||||
for ( uiCnt = 0, pSoldier = MercPtrs[ uiCnt ]; uiCnt <= gTacticalStatus.Team[ OUR_TEAM ].bLastID; ++uiCnt, ++pSoldier)
|
||||
|
||||
Reference in New Issue
Block a user