mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Add checks around all use of bMercOpinion
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2854 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+4
-1
@@ -575,7 +575,10 @@ UINT8 CalcDesireToTalk( UINT8 ubNPC, UINT8 ubMerc, INT8 bApproach )
|
||||
pNPCProfile = &(gMercProfiles[ubNPC]);
|
||||
pMercProfile = &(gMercProfiles[ubMerc]);
|
||||
|
||||
iPersonalVal = 50 + pNPCProfile->bMercOpinion[ubMerc]; /* + pNPCProfile->bMercTownReputation[ pNPCProfile->bTown ] */;
|
||||
iPersonalVal = 50; /* + pNPCProfile->bMercTownReputation[ pNPCProfile->bTown ] */;
|
||||
if (OKToCheckOpinion(ubMerc)) {
|
||||
iPersonalVal += pNPCProfile->bMercOpinion[ubMerc];
|
||||
}
|
||||
|
||||
// ARM: NOTE - for towns which don't use loyalty (San Mona, Estoni, Tixa, Orta )
|
||||
// loyalty will always remain 0 (this was OKed by Ian)
|
||||
|
||||
Reference in New Issue
Block a user