View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0027524 | AI War 2 | GUI | Jul 14, 2022 7:19 pm | Jul 14, 2022 9:53 pm | |
Reporter | Lord Of Nothing | Assigned To | |||
Status | new | Resolution | open | ||
Product Version | 5.501 Fixes | ||||
Summary | 0027524: UI Issues - Chain Lightning weapon DPS. | ||||
Description | Found this while testing a mod, but it does affect vanilla units. Confirmed via test chamber testing, but you can see it simply by varying the XML values and observing the effect on DPS in the pedia if you want. The actual weapon works fine, as far as I can tell, it's purely UI trouble. It does apply to basegame units, for example the Jarl (Also the Raijin, AI Raijin, Ymir, Dire Lightning Guardians and Chain Lightning eye off the top of my head). So, the issue is: Chain lightning weapons have the wrong ingame maximum DPS listed in their tooltip, for several reasons. The ingame DPS thing seems to be based on WeaponDamage*maximum_number_of_targets_hit_per_shot*number_beams_to_fire/reloadtime. But this is wrong, for several reasons: 1. It ignores aoe_and_beam_damage_multiplier_to_non_primary_target totally. (This applies with the Jarl. (And all the above mentioned units)) 2. It assumes that maximum_number_of_targets_hit_per_shot is, indeed, the maximum number of targets hit per shot. But this is almost never true, because for chain lightning weapons, this value is the maximum number of *secondary* targets hit. So if issues 1 and 3 do not apply, this causes a slight DPS underestimate. (This may be a similar or identical cause to issue 0025197 ?) (This is an issue with some of the above units, but not all.) 3. This is another reason why assuming that maximum_number_of_targets_hit_per_shot is, indeed, the maximum number of targets hit per shot can be a problem, really: maximum_number_of_targets_hit_per_shot may not be reachable with the chaining values of the units. In the case of the Jarl, maximum_number_of_targets_hit_per_shot is set at 25. But the Jarl can hit a maximum of 21 targets with it's chaining settings - 1 primary, 4 chained from the primary, and 16 chained from the first chains. This causes a DPS overestimate. (This is an issue with the Jarl and a few of the other unit mentioned above, but not all of them) (4. number_beams_to_fire is taken into account by the DPS calculation, but as far as I could tell, it doesn't actually get used by chain lightning. I don't think this actually affects any basegame units, though, so I include it purely for completeness.) In the case of the Jarl, a DPS of 11100 is displayed as the maximum in the attached picture. But it's not. This is (roughly) the result of 4000*25/9 (I don't know why it's not exact). But it should be (4000+20*2000)/9= 4888. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
Jul 14, 2022 7:19 pm | Lord Of Nothing | New Issue | |
Jul 14, 2022 7:19 pm | Lord Of Nothing | File Added: Jarl.png | |
Jul 14, 2022 7:20 pm | Lord Of Nothing | Description Updated | |
Jul 14, 2022 9:49 pm | Lord Of Nothing | Description Updated | |
Jul 14, 2022 9:50 pm | Lord Of Nothing | Description Updated | |
Jul 14, 2022 9:53 pm | Lord Of Nothing | Description Updated |