Skip to content

Skewed graph for Ammo Damage #70

@Roudique

Description

@Roudique

Since BSG recently added grenade launchers, there's one special 40x46mm cartridge that has weird stats: M576. It's a buckshot shot shell and has damage value of 121 and 15 projectile count, which results in total damage of 1815.

Most of ammo in Tarkov has damage in rage between 30 and 200, and this 1815 value really messes up damage graph:
image

This happens because the percentage to be filled is calculated as following:
Min total damage value among ALL ammo / Max total damage value among ALL ammo
which results in range 35 -> 1815 and weird UI.

I have a draft PR to add couple tweaks to UI and calculations:
image

What is done there:
— To draw graph, we take min-max values only among ammo of the same type, not among all types;
— Min value is 0, not the actual min value of ammo damage. IMO it will look more natural for most of ammo types:
image
damage is used instead of totalDamage;
— For buckshot, damage is shown as damage x projectileCount instead of totalDamage.

Same could be done for armor damage comparison.

Of course there are downsides. Ammo damage comparison will have "special treatment" and code inevitably will become more complicated and error-prone, but I think improvements in UX are worth it.

@VeritasDev thoughts? I could submit a draft PR if this is something that could be of value.
PR would be reaaally raw because I'm not familiar with codebase and not aware of things I could mess up if I change calculations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions