Roland Johansen
Deity
barbarian stealth DDs don't. it could be they're just stupid captains since they can't build them normally? i did a WB test just now, and barbs were the quickest way i could think of. i gave myself some stealth bombers and a stealth DD, the barbs got 2 stacks, each with a ship of the line and a stealth DD. bombing stack 1, the SoL was damaged to max and no further, but the SDD never admitted it was there. so it didn't take any damage and it never tried to hurt my planes. when my own SDD swam out and saw the barb SDDs, at that point the barb SDDs started reacting to my stealth bombers. after i officially legally knew they were there, they did take damage and they shot down one of my planes.
It's good that you tested this and it's pretty improbable that there exists a difference between barbarian units and non-barbarian units for aerial interception.
However, I'm a tiny bit worried about the size of your test sample: 2 stacks of 1 stealth destroyer and 1 ship of the line. The chance that an unmodded stealth destroyer intercepts units is 50% and stealth bombers have an evasion chance of 50%, so all in all a stealth destroyer only has a 25% chance to intercept a stealth bomber. And it doesn't take many stealth bomber missions to do maximum damage to a ship of the line, so the chance that none of these bombers is intercepted (even if aerial interception is working) is not insignificant.
I would test it myself, but I'm having computer problems which stops me from playing this great game until my computer is fixed.
By the way, the fact that the stealth destroyer was never attacked does seem to indicate that it doesn't intercept bombing missions. I just want to avoid the small chance that our reasoning about changes could be based on incorrect facts about how it works now.
I like this idea a lot.
There is one situation where it's not perfect: Say I have a Caravel with an Explorer and a Galleon with three Cannons. They get attacked by a Missile Cruiser. With your suggestion, the Galleon will defend because it has higher strength * odds and they both have cargo.
You're not distinguishing between different quantities of cargo.
I would guess that strength * odds ^ (#cargo / 2) would work pretty well.
Hmm, the more units a ship transports, the higher its perceived strength, the bigger the chance it will be used to defend. Hmm, interesting.
If at some point due to some code changes strong transport units with minimal units in their cargo bays (missile cruiser with 1 missile) are going to take precedence over weaker non-transport units (empty carrier), then the formula that governs this change should be very simple and documented in the civilopedia. I'm opposed to complicated formulas which are hidden to the user. There are enough of those already in the game.
I do like Wodan's proposal because it weakens the transport units so that they are only likely to defend when they will win the battle. However, it doesn't always produce the results that I would want and I would expect. Here is an example that is not unlikely to occur:
A galleon transporting 3 units (lets make them city raider 3 macemen to make you feel the pain ) and escorted by a caravel is attacked by an enemy caravel.
The galleon's chance of victory is 0.782 (78.2%) in this case. So it's likely to win, but victory is by no means a certainty.
Galleon strength according to Wodan: 4 * 0.782 = 3.128 which is higher than the strength 3 caravel so the galleon is going to defend. I would not want that. There is a significant chance that we lose 4 units. We want the caravel to defend and maybe even give its life to defend the galleon and its transported units.
I cannot criticise someone else's formulas without coming up with one that I think might work better. Of course, this is only my opinion, so if you can create scenarios where it isn't working as you would like it to, then please do say so.
The combat algorithms normally makes the unit which has the highest chance of victory defend. This also means that your expected losses are going to be minimized. That's just another way of describing the same rule. It is also exactly what you want when a stack of units containing transportation ships is going to be attacked. You want to minimize your losses.
When an empty galleon is going to be attacked by another galleon, then the chance of victory is 50% and the chance of loss is 50%, so on average you'll lose 0.5 units. If a galleon carrying 3 units is going to be attacked by another galleon, then the chances of victory remain the same, but the average amount of units that you'll lose in that battle is 0.5 * 4 = 2 because when you lose, you'll lose the galleon plus the 3 units it is carrying.
So my proposed rule is: calculate the expected number of losses ( = chance of loss * number of units that are going to be lost) and let the unit defend for whom this number is the lowest.
For example, the combat described above between the galleon + 3 transported units escorted by a caravel and the enemy caravel attacking.
Expected losses when the galleon is defending: 0.218 * 4 = 0.872
Expected losses when the caravel is defending: 0.5
So, the caravel will defend.
If the galleon were only carrying 1 unit, then it would defend:
Expected losses when the galleon is defending: 0.218 * 2 = 0.436
Expected losses when the caravel is defending: 0.5
By the way, I used this combat calculator to calculate the chances of victory and loss between various units.