0
The Terraria wiki says that:
[If there is] no more than one other NPC within 25 tiles and no more than three other NPCs (not counting the NPCs within 25 tiles) within 120 tiles, [prices are reduced to] 90%.
If true, this leads to some strange effects: it would be worse for an NPC to be within 1...