mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Prevent hiring MERC in UB if not enough funds
This commit is contained in:
@@ -1203,6 +1203,22 @@ BOOLEAN MercFilesHireMerc(UINT8 ubMercID)
|
|||||||
return(FALSE);//not enough big ones $$$sATMText
|
return(FALSE);//not enough big ones $$$sATMText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef JA2UB
|
||||||
|
Namount = 0;
|
||||||
|
Namount += gMercProfiles[ubMercID].uiWeeklySalary;
|
||||||
|
if ( gSelectedMercKit > 0 )
|
||||||
|
{
|
||||||
|
Namount += gMercProfiles[ubMercID].usOptionalGearCost;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( Namount > LaptopSaveInfo.iCurrentBalance )
|
||||||
|
{
|
||||||
|
DoLapTopMessageBox( MSG_BOX_LAPTOP_DEFAULT, sATMText[4], LAPTOP_SCREEN, MSG_BOX_FLAG_OK, NULL );
|
||||||
|
return(FALSE);//not enough big ones $$$sATMText
|
||||||
|
}
|
||||||
|
#endif // JA2UB
|
||||||
|
|
||||||
|
|
||||||
bReturnCode = HireMerc( &HireMercStruct );
|
bReturnCode = HireMerc( &HireMercStruct );
|
||||||
|
|
||||||
//already have limit of mercs on the team
|
//already have limit of mercs on the team
|
||||||
|
|||||||
Reference in New Issue
Block a user