> If China goes to war, it's probably going to be because their economy is in tatters.
Well, they probably also have to factor in whether invading Taiwan is likely to improve that situation, and I would argue that it's not - China is currently exporting stuff all over the world, so economic sanctions would be very painful for them. And there are lots of countries who would like to have a slice of the manufacturing that China is currently hogging...
Very rarely do countries go to war because they think it will improve their economy.
They go to war because a large chunk of their population is pissed off about the economy.
See also: US