I’ve finished phase one of my plan to add more Free Merchants and their suppliers (hunters, scavengers, fishermen, small-time farmers etc.) to the game, to make it feel more alive and plausible.
I need your help though:
I created a special variant of the garage that’s already in game, but with a merchant and two guards inside. The game, however, doesn’t recognise the new classes, even though I’ve added them to “classes.json”. Why? How can I make it work?
Is adding a new structure to the mapgen folder enough to make it spawn or do I need to add it somewhere else?
Thank you in advance! Also, if you have any suggestions, post them here! I’d be happy to listen what you’d want to see in the game.
To have a structure spawn, you need to add an overmap terrain entry, such as this one.
[{
“type”: “overmap_terrain”, > What it is
“id”: “park”, > Its JSON id
“name”: “park”, > Its name
“sym”: “O”, > Its symbol on the overmap
“color”: “green”, > The symbols color
“see_cost”: 2, > How far away you can see the location
“mondensity”: 2, > Monster density in your location
“flags”: [ “SIDEWALK” ] > What the game attaches it to, in this case a sidewalk.
}]
The “Guide to adding new content for first time contributers” has a brief entry on mapgen.