[1.1.74] Ammo types applying an effect don't get damage bonus
Posted: Tue Dec 06, 2022 6:30 pm
I'm currently working on a mod that adds extra ammo types. While testing the application of stickers when hitting a target, I noticed that the sticker only applies its base damage, and ignores any damage from ammo bonuses.
Take the following ammo type For testing purposes it only applies a sticker that does 5 (base) fire damage per second, for 5 seconds (so 25 (base) damage total) In this testing world the ammo damage bonus has been set to 160%, and the tooltip indeed adds 160% bonus damage, for an additional 8 damage per second.
Upon firing the ammo at a target, a spidertron whose fire resistance has been set to 0/0% for testing purposes, it only does 25 damage total, instead of the expected 65 damage.
I would expect either:
Enable the mod, load the save file, put 1 test ammo into the turret. The turret is marked as enemy and will immediately shoot the spidertron. Observe the loss of HP on the spidertron.
Take the following ammo type For testing purposes it only applies a sticker that does 5 (base) fire damage per second, for 5 seconds (so 25 (base) damage total) In this testing world the ammo damage bonus has been set to 160%, and the tooltip indeed adds 160% bonus damage, for an additional 8 damage per second.
Upon firing the ammo at a target, a spidertron whose fire resistance has been set to 0/0% for testing purposes, it only does 25 damage total, instead of the expected 65 damage.
I would expect either:
- It correctly applies the bonus damage shown in the tooltip, or
- For it to not show the bonus damage in the tooltip
Enable the mod, load the save file, put 1 test ammo into the turret. The turret is marked as enemy and will immediately shoot the spidertron. Observe the loss of HP on the spidertron.