@
AdamCrock
It is really appreciated you pushed forward to help me while some armed with versed code-diving abilities could simply resolved this in perhaps less than 5 mins.
Sadly, those numbers are war weariness, not war success. Why I kept question about ship's cargo being count towards war success is because war success is not shown in the UI? There are some theories coming straight from the code, but not the actual game everybody feels.
Seems war weariness has some connections with war success according to some, but war success is a different concept.
But, after looking into the code again, I wasn't able to find the functions manipulating war success values in GlobalDefines.xml.
So I tested too and found a decisive conclusion: Indeed, cargo is totally ignored.
We need to get 40 war success points, so I put 5 transports with full cargo. So, I supposed 5*4(for attacking)=20.
Let suppose cargo is worth 4 each unit too. So 5(five transports)*4(units per transport)*4(war success)=80 war success for a grand total of 120, which is far enough for capitulation. I didn't do anything, so I had to suppose it was worth 20 < needed 40 war success.
Then, I made supposition sunk units were worth 1 point each (just like captured settler/worker).
5*4*1=20
Thus a grand total of 20+20=40. Jackpot? Nope. Still no capitulation.
Conclusion, seems devs knew the gamebreaking value of letting sunken units worth in war success. Either they forgot to code something to this perspective or they intentionally ignored those units for game balance.
N.B. I also tested that little theory of a stack of workers where the first worth 4 war success and the rest 1 each. Yes, it did work. I put 37 workers. The first worth 4 points and remaining 36 worth 1 point each. So 4+36=40. Capitulation was available. If workers were all valued at 1 point, I should have scored 37<40 (No capitulation).
So, mass capturing workers in different plots have a great value in capitulation because the act fo capturing is worth 4 points for the head unit in the worker stack.