gomeler / LocationGenerator

Simple exercise in Go that generates locations for tabletop RPGs.
0 stars 0 forks source link

Add Viper for configuration files #4

Open gomeler opened 5 years ago

gomeler commented 5 years ago

Viper will enable easy ingestion of json config/default files. A lot of the hard-coded values used for things like race spawning and building spawning should be possible to configure externally.

gomeler commented 5 years ago

Becoming pretty apparent that I need to enable custom weights for buildings of various location types. For example, fewer industry buildings for farms, inverse for towns/cities. I think this can be solved by abstracting the building generation stack and just pointing it at a config file for the location type.