mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New Feature: Drug System Overhaul. The drug system has been completely overhauled.
Requires GameDir >= r2257. For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=341541&#msg_341541 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7896 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+10
-5
@@ -54,6 +54,7 @@
|
||||
#include "BriefingRoom_Data.h"
|
||||
|
||||
#include "Map Screen Helicopter.h"
|
||||
#include "Drugs And Alcohol.h" // added by Flugente for DoesMercHavePersonality( ... )
|
||||
|
||||
#ifdef JA2UB
|
||||
#include "Ja25_Tactical.h"
|
||||
@@ -872,7 +873,7 @@ INT32 CalcThreateningEffectiveness( UINT8 ubMerc )
|
||||
}
|
||||
|
||||
// SANDRO - bonus for threatening for assertive people
|
||||
if ( gGameOptions.fNewTraitSystem && gMercProfiles[pSoldier->ubProfile].bCharacterTrait == CHAR_TRAIT_ASSERTIVE )
|
||||
if ( gGameOptions.fNewTraitSystem && DoesMercHavePersonality( pSoldier, CHAR_TRAIT_ASSERTIVE ) )
|
||||
{
|
||||
iDeadliness += 50;
|
||||
}
|
||||
@@ -899,10 +900,14 @@ UINT8 CalcDesireToTalk( UINT8 ubNPC, UINT8 ubMerc, INT8 bApproach )
|
||||
// SANDRO - bonus for communication with people for assertive people
|
||||
if ( gGameOptions.fNewTraitSystem && bApproach != APPROACH_THREATEN)
|
||||
{
|
||||
if ( pMercProfile->bCharacterTrait == CHAR_TRAIT_ASSERTIVE )
|
||||
iPersonalVal += 50;
|
||||
else if ( pMercProfile->bCharacterTrait == CHAR_TRAIT_MALICIOUS )
|
||||
iPersonalVal -= 50;
|
||||
INT16 id = GetSoldierIDFromMercID( ubMerc );
|
||||
if ( id > -1 )
|
||||
{
|
||||
if ( DoesMercHavePersonality( MercPtrs[id], CHAR_TRAIT_ASSERTIVE ) )
|
||||
iPersonalVal += 50;
|
||||
else if ( DoesMercHavePersonality( MercPtrs[id], CHAR_TRAIT_MALICIOUS ) )
|
||||
iPersonalVal -= 50;
|
||||
}
|
||||
}
|
||||
|
||||
// ARM: NOTE - for towns which don't use loyalty (San Mona, Estoni, Tixa, Orta )
|
||||
|
||||
Reference in New Issue
Block a user