mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Fix: if merc cannot complain about his equipment due to being asleep or on duty, retry an hour later
- Fix: in AIM bios, show max life, not life at start of game - Fix: typo resulted in AIM mercs not refusing job because of hated mercs present when they should do so - Dialogue clarification: QUOTE_PRE_NOT_SMART is now used for complaints about food, QUOTE_POST_NOT_SMART to refuse smoking git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8354 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -886,23 +886,30 @@ void MercComplainAboutEquipment( UINT8 ubProfile )
|
||||
ubProfile = LARRY_NORMAL;
|
||||
}
|
||||
}
|
||||
|
||||
// Are we dead/ does merc still exist?
|
||||
pSoldier = FindSoldierByProfileID( ubProfile, FALSE );
|
||||
|
||||
if ( pSoldier != NULL )
|
||||
if ( pSoldier != NULL && pSoldier->stats.bLife >= OKLIFE )
|
||||
{
|
||||
if ( pSoldier->stats.bLife >= OKLIFE && pSoldier->flags.fMercAsleep != TRUE && pSoldier->bAssignment < ON_DUTY )
|
||||
if ( pSoldier->flags.fMercAsleep != TRUE && pSoldier->bAssignment < ON_DUTY )
|
||||
{
|
||||
//ATE: Double check that this problem still exists!
|
||||
if ( SoldierHasWorseEquipmentThanUsedTo( pSoldier ) )
|
||||
{
|
||||
// Say quote!
|
||||
TacticalCharacterDialogue( pSoldier, QUOTE_WHINE_EQUIPMENT );
|
||||
|
||||
// anv: morale hit
|
||||
HandleMoraleEvent( pSoldier, MORALE_BAD_EQUIPMENT, pSoldier->sSectorX, pSoldier->sSectorY, pSoldier->bSectorZ );
|
||||
ModifyPlayerReputation(REPUTATION_TOWN_LOST);
|
||||
ModifyPlayerReputation( REPUTATION_TOWN_LOST );
|
||||
}
|
||||
}
|
||||
// if we can't complain right now, do it later
|
||||
else
|
||||
{
|
||||
AddStrategicEvent( EVENT_MERC_COMPLAIN_EQUIPMENT, GetWorldTotalMin( ) + 60, ubProfile );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user