update supply and activity levels

This commit is contained in:
SpaceAdmiral 2023-10-25 17:27:37 -07:00
parent 268a1c2442
commit bead15176e
4 changed files with 39 additions and 17 deletions

View File

@ -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"
]
}

View File

@ -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",
@ -33,6 +38,7 @@
},
"required": [
"symbol",
"type",
"tradeVolume",
"supply",
"purchasePrice",

View File

@ -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"

11
models/SupplyLevel.json Normal file
View File

@ -0,0 +1,11 @@
{
"type": "string",
"description": "The supply level of a trade good.",
"enum": [
"SCARCE",
"LIMITED",
"MODERATE",
"HIGH",
"ABUNDANT"
]
}