NPCs in Terraria have different preferences and preferences, some of which have specific preferences for terrain and neighbors, businessmen, zoologists and guides usually choose to open shops and trade in the forest, witch doctors and nurses like the sacred land environment, tree demons and painters like the jungle environment, and so on.
forest
Businessman, zoologist and guide
The Holy Land
Witch Doctor and Nurse
jungle
Tree Demon and Painting
desert
Steampunks and dye vendors
Snow
Electricians, robots and tax collectors like snowy environments
ocean
Fishermen, pirates and barbers love the marine environment.
ps: These preferences may affect NPC behavior and attitudes. They trade in specific environments and reduce prices and new commodities will appear.