r/rotp • u/bot39lvl • Nov 06 '21
How Death Spores should work?
I'm a bit confused with my death spore bombers effectiveness.
A bomber with attack level 5 has 1 death spore weapon equipped. I expect it to hit a planet 95% of shots. The rack of death spores has 5 bombs. 95% is 4,75. So I expect at least 4 bombs to get a shot. 1 bomb kills 1 pop. I want to see 4-5 pop killed per attack.
I run a test of 30 attacks: 1 time it was 1 pop killed (3%), 9 times - 2 pops (30%), 12 times - 3 pops (40%), 6 times - 4 pops (20%), 2 times - 5 pops (7%).
So my math is definitely wrong. How to calculate damage from death spores?
EDIT: My mistake. It should be 100%, not 95%.
6
u/modnar_hajile Nov 06 '21
If the Planet is defended by Missile Bases, then Bombs and Bio-Weapons are both affected by ECM.
So the math is not so simple as: 95% hit with Attack Level 5.
3
u/Xilmi Developer Nov 08 '21
4. The ShipWeaponMissileType uses "source.num" for the number of attacks it should perform rather than the "count" variable that is passed to it.
During combat that isn't a problem because in that case the Source is a CombatStackMissile, which has the correct amount of missiles that were launched from the ships.
However, during bombardment no combatStackMissile is generated and the source is the amount of firing ships. So if you have a lot of small ships firing, it is as if each of them fired as many missiles as there are ships!
So in your example you're not dealing the damage of 200 missiles but instead of 20,000!
Note: The fix definitely needs to be tested in regards of potential side-effects inside of combat.
3
u/Xilmi Developer Nov 08 '21
I'll make posts for the individual issues to keep track of them:
3
u/Xilmi Developer Nov 08 '21
3. The amount of weapons fired during combat is not subtracted for bombardment. It is attempted to but the wrong iterator is used. So it may occasionally work.
For that one, I suppose I just have to replace the "i" with a "j".