damage of the shot*component modifier would make most sense, ergo i would assume (ammo+buff)*component modifier. I would assume (not having access to any code) damage is calculated on the component side.
But will need confirmation by anyone that has access to numbers. Where have gone the days, when the only anwer was something allong the line of "you don't realy need to know that formula".