mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
New Feature: Campaign History collects combat data and displays battle reports on the website.
requires GameDir >= r1901. For more info, see http://www.bears-pit.com/board/ubbthreads.php/topics/329205.html#Post329205 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6705 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "Interface.h"
|
||||
#include "Food.h" // added by Flugente
|
||||
#include "Animation data.h" // added by Flugente for SoldierBodyTypes
|
||||
#include "CampaignStats.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
//forward declarations of common classes to eliminate includes
|
||||
@@ -224,9 +225,13 @@ BOOLEAN ApplyDrugs( SOLDIERTYPE *pSoldier, OBJECTTYPE *pObject )
|
||||
UseKitPoints( pObject, 100, pSoldier );
|
||||
else
|
||||
{
|
||||
UINT16 ptsused = (*pObject)[0]->data.objectStatus;
|
||||
|
||||
gCampaignStats.AddConsumption(CAMPAIGN_CONSUMED_MEDICAL, (FLOAT)(ptsused * Item[usItem].ubWeight / 100.0) );
|
||||
|
||||
// remove object
|
||||
pObject->RemoveObjectsFromStack(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( (ubDrugType & DRUG_ALCOHOL) != 0 )
|
||||
|
||||
Reference in New Issue
Block a user