Any war or political turmoil will stimulate the demand for gold in the market, thus pushing up the price of gold, and emergencies often make the price of gold soar sharply in a short period of time. "One shot hits two thousand gold" is just another perfect interpretation that the safe-haven value of gold has prompted the price of gold to skyrocket.
It can also be interpreted as other meanings, which can mean that the Qing dynasty paid reparations as soon as the foreign artillery rang. You can also spend money like water at the beginning of the war. It can also be that when war breaks out, business opportunities will come.