mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Background additions:
- <no_male> and <no_female> prohibit specific backgrounds to show up on IMP generation - <cth_vs_creatures> modifies gun CTH when aiming at creatures - added wisdom stat modifier - Fix: maximum cth can never exceed 100 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6359 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -491,6 +491,10 @@ void AssignBackgroundHelpText( UINT8 ubNumber, MOUSE_REGION* pMouseregion )
|
||||
// ability description
|
||||
for ( UINT8 i = 0; i < BACKGROUND_FLAG_MAX; ++i)
|
||||
{
|
||||
// some properties are hidden
|
||||
if ( ((UINT64)1 << i) & BACKGROUND_HIDDEN_FLAGS )
|
||||
continue;
|
||||
|
||||
if ( zBackground[ ubNumber ].uiFlags & ((UINT64)1 << i) )
|
||||
{
|
||||
swprintf(atStr, szBackgroundText_Flags[ i ] );
|
||||
@@ -589,6 +593,12 @@ BOOLEAN IsBackGroundAllowed( UINT8 ubNumber )
|
||||
if ( !ubNumber )
|
||||
return FALSE;
|
||||
|
||||
// some backgrounds are only allowed to specific genders. Set both to forbid a background from ever showing up in IMP creation (for merc-specific backgrounds)
|
||||
if ( fCharacterIsMale && zBackground[ ubNumber ].uiFlags & BACKGROUND_NO_MALE )
|
||||
return FALSE;
|
||||
else if ( !fCharacterIsMale && zBackground[ ubNumber ].uiFlags & BACKGROUND_NO_FEMALE )
|
||||
return FALSE;
|
||||
|
||||
if ( SkillsList[0] == HEAVY_WEAPONS_NT || SkillsList[1] == HEAVY_WEAPONS_NT || SkillsList[2] == HEAVY_WEAPONS_NT )
|
||||
{
|
||||
if ( zBackground[ ubNumber ].value[BG_ARTILLERY] > 0 )
|
||||
|
||||
Reference in New Issue
Block a user