Complex sentence: Toy became the mistress of the ship's captain, who showered gold upon her, so much so that by the time she arrived in San Francisco, Toy had a fair bit of money.
Split into simpler sentences: Toy became the mistress of the ship's captain, who showered gold upon her. When she arrived in San Francisco, Toy had a fair bit of money.