Skip to content
Merged

V2.1 #74

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update supply and activity levels
  • Loading branch information
space-admiral committed Oct 26, 2023
commit bead15176e30347e0d464148d32f40f07e4614e2
9 changes: 9 additions & 0 deletions models/ActivityLevel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "string",
"description": "The activity level of a trade good. If the good is an import, this represents how strong consumption is for the good. If the good is an export, this represents how strong the production is for the good.",
"enum": [
"WEAK",
"GROWING",
"STRONG"
]
}
24 changes: 15 additions & 9 deletions models/MarketTradeGood.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,25 @@
"type": "string",
"description": "The symbol of the trade good."
},
"type": {
"type": "string",
"description": "The type of trade good (export, import, or exchange).",
"enum": [
"EXPORT",
"IMPORT",
"EXCHANGE"
]
},
"tradeVolume": {
"type": "integer",
"description": "The typical volume flowing through the market for this type of good. The larger the trade volume, the more stable prices will be.",
"description": "This is the maximum number of units that can be purchased or sold at this market in a single trade for this good. Trade volume also gives an indication of price volatility. A market with a low trade volume will have large price swings, while high trade volume will be more resilient to price changes.",
"minimum": 1
},
"supply": {
"type": "string",
"description": "A rough estimate of the total supply of this good in the marketplace.",
"enum": [
"SCARCE",
"LIMITED",
"MODERATE",
"ABUNDANT"
]
"$ref": "./SupplyLevel.json"
},
"activity": {
"$ref": "./ActivityLevel.json"
},
"purchasePrice": {
"type": "integer",
Expand All @@ -33,6 +38,7 @@
},
"required": [
"symbol",
"type",
"tradeVolume",
"supply",
"purchasePrice",
Expand Down
12 changes: 4 additions & 8 deletions models/ShipyardShip.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@
"type": "string"
},
"supply": {
"type": "string",
"description": "A rough estimate of the total supply of this good in the marketplace.",
"enum": [
"SCARCE",
"LIMITED",
"MODERATE",
"ABUNDANT"
]
"$ref": "./SupplyLevel.json"
},
"production": {
"$ref": "./ActivityLevel.json"
},
"purchasePrice": {
"type": "integer"
Expand Down
11 changes: 11 additions & 0 deletions models/SupplyLevel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "string",
"description": "The supply level of a trade good.",
"enum": [
"SCARCE",
"LIMITED",
"MODERATE",
"HIGH",
"ABUNDANT"
]
}