mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Add "Disrupt ASD" mission
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "Sound Control.h"
|
||||
#include "renderworld.h"
|
||||
#include "Isometric Utils.h"
|
||||
#include "Rebel Command.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -548,9 +549,22 @@ UINT32 ASDResourceCostMoney( UINT8 aType )
|
||||
return gGameExternalOptions.gASDResource_Cost[aType];
|
||||
}
|
||||
|
||||
INT32 GetStrategicAIResourceCount( UINT8 aType )
|
||||
{
|
||||
if (aType < 0 || aType >= ASD_RESOURCE_MAX)
|
||||
return 0;
|
||||
|
||||
return gASDResource[aType];
|
||||
}
|
||||
|
||||
// add resources to the AIs resource pool
|
||||
void AddStrategicAIResources( UINT8 aType, INT32 aAmount )
|
||||
{
|
||||
if (aType == ASD_MONEY)
|
||||
{
|
||||
aAmount *= RebelCommand::GetASDIncomeModifier();
|
||||
}
|
||||
|
||||
gASDResource[aType] = max( 0, gASDResource[aType] + aAmount );
|
||||
|
||||
if ( aType == ASD_HELI )
|
||||
|
||||
Reference in New Issue
Block a user