I just meant that even though I live in a biome with extremely common nasty enemies I haven't seen any spawn in towns and chalked it up to luck.
Yeah, I get that. But speaking of which, while I don't usually have a main base in jungle, I don't really know if I very commonly see wraits in a jungle? The other monsters are probably a lot more common. And if your NPCs wander away, and happen to run into a turtle or derpling, they'll meet their demise right away too, but those at least won't go through walls.
tbh i like the light idea
Actually, quick correction on that suggestion. It probably would make wraits extremely rare... so, how about something like.
Blood moons ignore that, so wraits can spawn at blood moons (although they're very annoying, expecially considering it's common to happen, that "wraith floats in neighbor house, if merchant isn't killed on-the-spot, he gets freaked out and tries to run away, opening the door, letting in that 25 zombies on the other side of the door, gets murdered, and, the zombie swarm gets in the house, and kills everyone else to the upper floors too"
Erm... I'm actually not sure about blood moons either...
But, if light actually could keep wraits away, it would be very difficult to actually find wraits to begin with... so, I dunno... maybe it could work in a way, like lights keep them away, but only in and near towns and the player's bed - so, they won't annoy you in your house either, and neither anyone else in the town - and it still should be somehow, that they won't spawn into the town even when you're not in the town, so they won't kill your NPCs off-screen.
But any other lightsources on the road wouldn't affect their spawnrates, so they actually would posses a threat still, just not annoy you in towns.
Or some other solutions.
Like, if it would be possible, make monsters unable to spawn into towns, even when the town is off-screen, or something.
And exclude wraits from the list of monsters that may spawn even in town on higher than normal difficulty. So, they could spawn anywhere else where they can spawn, but, they can't in towns. Because they're just annoying. I mean, even at the point, when you swing around a terra blade or something, it would take you one swing to kill them, but you still can't save your neighbors when these things spawn off-screen. And non-melee NPCs can't really defend themselves from these. It's just annoying...