mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
New Feature: Added up to 15 game difficulty settings (by Jazz)
- Externalized the difficulty setings to "TableData\DifficultySettings.xml" file - Some INI Settings (ja2_options.ini, CTHConstants.ini and Creature_Settings.ini) moved from INI file to this xml file - see #define DIFFICULTY_SETTING git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7447 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -103,6 +103,10 @@
|
||||
#include "Ja25 Strategic Ai.h"
|
||||
#endif
|
||||
|
||||
#ifdef DIFFICULTY_SETTING
|
||||
#include "GameInitOptionsScreen.h"
|
||||
#endif
|
||||
|
||||
#include "fresh_header.h"
|
||||
|
||||
#include "Dialogue Control.h"
|
||||
@@ -2061,7 +2065,10 @@ INT16 SOLDIERTYPE::CalcActionPoints( void )
|
||||
//if ( this->bTeam != CIV_TEAM && this->bTeam != gbPlayerNum)
|
||||
if ( this->bTeam == ENEMY_TEAM )
|
||||
{
|
||||
switch ( gGameOptions.ubDifficultyLevel )
|
||||
#ifdef DIFFICULTY_SETTING
|
||||
ubPoints += zDeffSetting[gGameOptions.ubDifficultyLevel].iEnemyAPBonus;
|
||||
#else
|
||||
switch( gGameOptions.ubDifficultyLevel )
|
||||
{
|
||||
case DIF_LEVEL_EASY:
|
||||
|
||||
@@ -2086,6 +2093,7 @@ INT16 SOLDIERTYPE::CalcActionPoints( void )
|
||||
default:
|
||||
ubPoints += 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
// Bonus to Militia APs
|
||||
else if ( this->bTeam == MILITIA_TEAM )
|
||||
@@ -2194,7 +2202,10 @@ void SOLDIERTYPE::CalcNewActionPoints( void )
|
||||
}
|
||||
if ( this->bTeam == ENEMY_TEAM )
|
||||
{
|
||||
switch ( gGameOptions.ubDifficultyLevel )
|
||||
#ifdef DIFFICULTY_SETTING
|
||||
usMaxActionPnts += zDeffSetting[gGameOptions.ubDifficultyLevel].iEnemyAPBonus;
|
||||
#else
|
||||
switch( gGameOptions.ubDifficultyLevel )
|
||||
{
|
||||
case DIF_LEVEL_EASY:
|
||||
usMaxActionPnts += gGameExternalOptions.iEasyAPBonus;
|
||||
@@ -2209,6 +2220,7 @@ void SOLDIERTYPE::CalcNewActionPoints( void )
|
||||
usMaxActionPnts += gGameExternalOptions.iInsaneAPBonus;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
// Bonus to Militia APs
|
||||
else if ( this->bTeam == MILITIA_TEAM )
|
||||
|
||||
Reference in New Issue
Block a user