How to know which items to stock. Obviously, someone shouldn't stock wheat and magic stones in the same shop for example. Probably have each shop be a profession in the same sense as players, and use a profession API to decide which items "belong" to which profession. Then, a shop with that profession will just stock all of the items of their profession, but with random noise mixed in.
for each shop
pick a profession from list:
for each item from profession:
apply region prices and supply/demand to each item
apply random noise from X and Z coords (-150% to +50%)
make a random few (3-5) items full supply and demand and ignore noise
any items with <= 0 are ignored / removed from list
How to know which items to stock. Obviously, someone shouldn't stock wheat and magic stones in the same shop for example. Probably have each shop be a profession in the same sense as players, and use a profession API to decide which items "belong" to which profession. Then, a shop with that profession will just stock all of the items of their profession, but with random noise mixed in.
```
for each shop
pick a profession from list:
for each item from profession:
apply region prices and supply/demand to each item
apply random noise from X and Z coords (-150% to +50%)
make a random few (3-5) items full supply and demand and ignore noise
any items with <= 0 are ignored / removed from list
```