New Trait: Snitch (Trait 22) (by anv)

Every midnight snitches will give you a report about their collegues' opinions. Information includes:
- merc whining about high death rate,
- merc whining about player reputation,
- merc whining about his low morale,
- merc whining about some other merc (unliked, not only hated),
- merc planning to quit (leave without renewing contract, only AIM mercs) next day,
- merc whining about player inactivity,
- merc whining about player owing them money (you can only owe money to MERC mercs).

List of snitches (trait 22)
Beth
Bud
Buzz
Carp
Ears
Gary
Hurl
Lance
Leon
Weasel

see: http://www.bears-pit.com/board/ubbthreads.php/topics/329412/Snitches_+_Externalised_morale.html

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6723 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-01-01 12:02:23 +00:00
parent 224ebe9ba3
commit d5b4599e9c
54 changed files with 1395 additions and 163 deletions
+39 -2
View File
@@ -2,6 +2,9 @@
#define _GAME_SETTINGS__H_
#include "Types.h"
#include "Strategic Status.h"
#include "Morale.h"
#define GAME_INI_FILE "Ja2.ini"
@@ -1452,13 +1455,30 @@ typedef struct
} HELICOPTER_SETTINGS;
typedef struct
{
UINT8 ubDefaultMorale;
UINT8 ubHoursBetweenStrategicDelay;
INT8 bValues[64];
INT8 bModifiers[32];
INT16 sDrugAndAlcoholModifiers[2];
} MORALE_SETTINGS;
typedef struct
{
INT8 bValues[32];
} REPUTATION_SETTINGS;
typedef struct
{
UINT8 ubMaxNumberOfTraits;
UINT8 ubNumberOfMajorTraitsAllowed;
UINT8 ubMaxNumberOfTraitsForIMP;
UINT8 ubNumberOfMajorTraitsAllowedForIMP;
BOOLEAN fAllowSpecialMercTraitsException;
UINT8 ubSpecialMercID;
//BOOLEAN fAllowSpecialMercTraitsException;
//UINT8 ubSpecialMercID;
BOOLEAN fAllowAttributePrereq;
@@ -1725,6 +1745,17 @@ typedef struct
INT8 sVOScanAssignmentBaseRange;
INT8 sVOListeningHearingBonus;
// SNITCH
UINT8 ubSNTBaseChance; // Base chance that snitch will inform about certain event (in percents)
FLOAT fSNTMercOpinionAboutSnitchBonusModifier; // How much chance is influenced by relation between snitch and target
FLOAT fSNTSnitchOpinionAboutMercBonusModifier; // How much chance is influenced by relation between snitch and target
FLOAT fSNTSnitchLeadershipBonusModifer; // How much chance is influenced by snitch's leadership
INT8 bSNTSociableMercBonus; // Bonus to chance if merc is sociable
INT8 bSNTLonerMercBonus; // Bonus to chance if merc is loner
INT8 bSNTSameAssignmentBonus; // Bonus to chance if snitch and merc are on the same assignment
INT8 bSNTMercOpinionAboutMercTreshold; // For reports "merc hates merc" final chance is proportional to dislike in range between treshold (0%) and -25(100%)
} SKILL_TRAIT_VALUES;
// HEADROCK HAM 4: Constants used as coefficients by the various parts of the new CTH system.
@@ -2140,6 +2171,10 @@ extern TAUNTS_SETTINGS gTauntsSettings;
extern HELICOPTER_SETTINGS gHelicopterSettings;
extern MORALE_SETTINGS gMoraleSettings;
extern REPUTATION_SETTINGS gReputationSettings;
// HEADROCK HAM 4: CTH constants read from a separate INI file
extern CTH_CONSTANTS gGameCTHConstants;
@@ -2158,6 +2193,8 @@ void LoadGameAPBPConstants();
void LoadCTHConstants();
void LoadTauntsSettings();
void LoadHelicopterRepairRefuelSettings();
void LoadMoraleSettings();
void LoadReputationSettings();
void FreeGameExternalOptions();
void InitGameOptions();