mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +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:
+13
-2
@@ -20,6 +20,7 @@
|
||||
#include "Facilities.h"
|
||||
// HEADROCK HAM 3.6: Militia upkeep
|
||||
#include "Town Militia.h"
|
||||
#include "CampaignStats.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
// the global defines
|
||||
@@ -231,16 +232,26 @@ UINT32 AddTransactionToPlayersBook (UINT8 ubCode, UINT8 ubSecondCode, UINT32 uiD
|
||||
|
||||
if( !fInFinancialMode )
|
||||
{
|
||||
ClearFinanceList( );
|
||||
ClearFinanceList( );
|
||||
}
|
||||
else
|
||||
{
|
||||
SetFinanceButtonStates( );
|
||||
|
||||
// force update
|
||||
fPausedReDrawScreenFlag = TRUE;
|
||||
fPausedReDrawScreenFlag = TRUE;
|
||||
}
|
||||
|
||||
// Flugente: campaign stats
|
||||
if ( ubCode == ANONYMOUS_DEPOSIT )
|
||||
gCampaignStats.AddMoneyEarned(CAMPAIGN_MONEY_START, iAmount );
|
||||
else if ( ubCode == DEPOSIT_FROM_GOLD_MINE || ubCode == DEPOSIT_FROM_SILVER_MINE )
|
||||
gCampaignStats.AddMoneyEarned(CAMPAIGN_MONEY_MINES, iAmount );
|
||||
else if ( ubCode == SOLD_ITEMS )
|
||||
gCampaignStats.AddMoneyEarned(CAMPAIGN_MONEY_TRADE, iAmount );
|
||||
else
|
||||
gCampaignStats.AddMoneyEarned(CAMPAIGN_MONEY_ETC, iAmount );
|
||||
|
||||
fMapScreenBottomDirty = TRUE;
|
||||
|
||||
// return unique id of this transaction
|
||||
|
||||
Reference in New Issue
Block a user