- new feature: backgrounds allow more personalisation of mercenaries

- background feature replaces overheating on startup screen, moved overheating opion to ini

WARNING: GameDir revision >= 1748 is required.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6353 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2013-09-03 20:55:33 +00:00
parent 0bff118f10
commit 4ccc6a5b2a
66 changed files with 3128 additions and 303 deletions
+20 -2
View File
@@ -31,6 +31,7 @@
#include "IMP Disability Trait.h"
#include "IMP Color Choosing.h"
#include "IMP Minor Trait.h"
#include "IMP Background.h" // added by Flugente
#endif
@@ -76,6 +77,8 @@ INT32 iPersonality = 0;
// attitude
INT32 iAttitude = 0;
// Flugente: background
UINT8 usBackground = 0;
// additives, but no preservatives
INT32 iAddStrength = 0;
@@ -274,6 +277,9 @@ void HandleCharProfile()
case( IMP_MINOR_TRAITS_PAGE ):
HandleIMPMinorTrait( );
break;
case( IMP_BACKGROUND ):
HandleIMPBackground( );
break;
}
return;
@@ -350,6 +356,9 @@ void RenderCharProfile()
case( IMP_MINOR_TRAITS_PAGE ):
RenderIMPMinorTrait( );
break;
case( IMP_BACKGROUND ):
RenderIMPBackground( );
break;
}
// render title bar
@@ -455,6 +464,10 @@ void ExitOldIMPMode( void )
DestroyIMPButtons( );
ExitIMPMinorTrait( );
break;
case( IMP_BACKGROUND ):
DestroyIMPButtons( );
ExitIMPBackground( );
break;
}
return;
@@ -542,6 +555,10 @@ void EnterNewIMPMode( void )
CreateIMPButtons( );
EnterIMPMinorTrait( );
break;
case( IMP_BACKGROUND ):
CreateIMPButtons( );
EnterIMPBackground( );
break;
}
@@ -577,11 +594,12 @@ void ResetCharacterStats( void )
// attitude
iAttitude = 0;
// background
usBackground = 0;
// names
memset( &pFullName, 0 , sizeof( pFullName) );
memset( &pNickName, 0 , sizeof( pNickName) );
}