Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Suggestion: Prices should be based on what each port has in stock #7

Open
epshteinmatthew opened this issue May 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@epshteinmatthew
Copy link
Collaborator

There should be a class called Port, which stores the info for a generic port. Then, a const list of ports can be created for each port to store the info. The port class contains the following:
-Name:String
-Supply:Object[string : int]
-MaxSupply: int
-FirstRestock:string
-PriceScalar: float(?)
The price of each commodity would be decided with something like this : price = MaxSupply/Supply[type]*PriceScalar
Additionally, an extra cost can be applied(can be negaitve lol) if you buy all the stuff from a port
A port will restock a random amount when taipan leaves the port. It will always try to restock its firstRestock first, then will try to restock a random good. If either fail, it will restock a random good until something suceeds or all goods fail.(the latter can be done with a conditional at the top of the restock action)

@lightningbolts lightningbolts added the enhancement New feature or request label May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants