Problem
If you attach an automatic barrel to a plasma gun, the game displays one less energy damage than ballistic damage.
Why does it happen
After weapon modification's damage multipliers are applied, Ballistic/Physical damage is rounded down to the nearest integer and then added to base damage.
However, energy damage or any other damage that uses "DamageTypeValues" property, is added to base damage first, then the final damage is rounded down.
So, on the matter at hand, the plasma auto barrel's multiplier is -0.35. -8.4 ballistic damage is rounded down to -8, with a final dmg of 16. But -8.4 energy damage is first added to base damage, then 15.6 dmg is rounded down to 15!
Solution
I changed the value to -0.33(-7.92) from -0.35(-8.4). Now They'll always have equal damage, no matter the capacitor.
If you attach an automatic barrel to a plasma gun, the game displays one less energy damage than ballistic damage.
Why does it happen
After weapon modification's damage multipliers are applied, Ballistic/Physical damage is rounded down to the nearest integer and then added to base damage.
However, energy damage or any other damage that uses "DamageTypeValues" property, is added to base damage first, then the final damage is rounded down.
So, on the matter at hand, the plasma auto barrel's multiplier is -0.35. -8.4 ballistic damage is rounded down to -8, with a final dmg of 16. But -8.4 energy damage is first added to base damage, then 15.6 dmg is rounded down to 15!
Solution
I changed the value to -0.33(-7.92) from -0.35(-8.4). Now They'll always have equal damage, no matter the capacitor.