mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +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:
@@ -109,6 +109,10 @@
|
||||
#include "LuaInitNPCs.h"
|
||||
#include "Luaglobal.h"
|
||||
|
||||
#ifdef DIFFICULTY_SETTING
|
||||
#include "GameInitOptionsScreen.h"
|
||||
#endif
|
||||
|
||||
#ifdef JA2UB
|
||||
#include "SaveLoadGame.h"
|
||||
#include "email.h"
|
||||
@@ -7318,7 +7322,12 @@ void CreateAndAddMoneyObjectToGround( UINT32 sGridNo, INT32 iEasyAmount, INT32 i
|
||||
break;
|
||||
|
||||
default:
|
||||
#ifdef DIFFICULTY_SETTING
|
||||
iCash = iNormalAmount;
|
||||
break;
|
||||
#else
|
||||
Assert(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
CreateMoney( iCash, &Object );
|
||||
@@ -7515,6 +7524,12 @@ void HandleMovingEnemiesOntoRoofs()
|
||||
MoveEnemyFromGridNoToRoofGridNo( 15446, 13993 );
|
||||
MoveEnemyFromGridNoToRoofGridNo( 15436, 14006 );
|
||||
break;
|
||||
#ifdef DIFFICULTY_SETTING
|
||||
default:
|
||||
MoveEnemyFromGridNoToRoofGridNo( 15446, 13993 );
|
||||
MoveEnemyFromGridNoToRoofGridNo( 15436, 14006 );
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7529,6 +7544,11 @@ void HandleMovingEnemiesOntoRoofs()
|
||||
case DIF_LEVEL_HARD:
|
||||
MoveEnemyFromGridNoToRoofGridNo( 8711, 5521 );
|
||||
break;
|
||||
#ifdef DIFFICULTY_SETTING
|
||||
default:
|
||||
MoveEnemyFromGridNoToRoofGridNo( 8711, 5521 );
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user