In Terraria, there are five different "types" of damage (similar to elemental damage in other games). These types are melee, ranged, magic, summon, and throwing damage. Various armors buffs the total damage output of a certain damage type - this is good if you're trying to build a character that (for example) uses only bows - you can spec them out with armor and accessories that boost their "ranged" damage stat.
There are some armors/accessories in the game which automatically damage enemies if they get too close. For example, A full set of Chlorophyte armor spawns a leaf crystal above your head, which will shoot at any enemies it can see. Another example is the Spore Sac, which spawns small spores around you which will home in and damage enemies that wander too close. There are also some equips that reflect damage back at the attacker, such as the turtle armor.
Are these "extra" damage sources affected by damage-boosting stats? Which damage type do they fall under?