Skip to content

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

Description

@epshteinmatthew

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions