1
0
Fork
You've already forked ProjectTallow
0

Figure out how to select trading inventory from location #6

Open
opened 2026年04月14日 06:08:33 +02:00 by SumianVoice · 0 comments

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 ```
Sign in to join this conversation.
No Branch/Tag specified
master
experimental
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SumianVoice/ProjectTallow#6
Reference in a new issue
SumianVoice/ProjectTallow
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?