src/game/Laptop/Mercs.cc
//Gets the actual merc id from the array
Gets the actual merc id from the array
Gets the actual merc id from the array
UINT8 GetMercIDFromMERCArray(UINT8 ubMercID)
{
	if( ubMercID <= 6 )
	{
		return( gubMercArray[ ubMercID ] );
	}
	else if( ( ubMercID == 7 ) || ( ubMercID == 8 ) )
	{
		if ( HasLarryRelapsed() )
		{
			return( gubMercArray[ 8 ] );
		}
		else
		{
			return( gubMercArray[ 7 ] );
		}
	}
	else if( ubMercID <= 10 )
	{
		return( gubMercArray[ ubMercID ] );
	}
	else
	{
		SLOGA("GetMercIDFromMercArray: invalid MercID");
		return( TRUE );
	}
}
UINT8 GetMercIDFromMERCArray ( UINT8 ubMercID ) { if ( ubMercID <= 6 ) { return ( gubMercArray [ ubMercID ] ) ; } else if ( ( ubMercID == 7 ) || ( ubMercID == 8 ) ) { if ( HasLarryRelapsed ( ) ) { return ( gubMercArray [ 8 ] ) ; } else { return ( gubMercArray [ 7 ] ) ; } } else if ( ubMercID <= 10 ) { return ( gubMercArray [ ubMercID ] ) ; } else { SLOGA ( " " ) ; return ( TRUE ) ; } }
Gets the actual merc id from the array
Gets the actual merc id from the array
//if it is one of the regular MERCS //if it is Larry, determine if it Stoned larry or straight larry //if it is one of the newer mercs //else its an error