You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: