1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/config/schemas/market.json
Ivan Savenko f59834afe1 Fixes for configurable markets support
- string "speech" can now be translated
- removed "title" string, VCMI will now use object name instead
- moved configuration of all "markets" into a separate json file
- added schema for validation of market objects
- removed serialization of translated strings from University
2024-11-20 15:45:13 +00:00

51 lines
1.2 KiB
JSON

{
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI map object format",
"description" : "Description of map object class",
"required" : [ "modes" ],
"additionalProperties" : false,
"properties" : {
"description" : {
"description" : "Message that will be shown on right-clicking this object",
"type" : "string"
},
"speech" : {
"description" : "Message that will be shown to player on visiting this object",
"type" : "string"
},
"modes" : {
"type" : "array",
"items" : {
"enum" : [ "resource-resource", "resource-player", "creature-resource", "resource-artifact", "artifact-resource", "artifact-experience", "creature-experience", "creature-undead", "resource-skill" ],
"type" : "string"
}
},
"efficiency" : {
"type" : "number",
"minimum" : 1,
"maximum" : 9
},
"offer" : {
"type" : "array"
},
// Properties that might appear since this node is shared with object config
"compatibilityIdentifiers" : { },
"blockedVisitable" : { },
"removable" : { },
"aiValue" : { },
"index" : { },
"base" : { },
"name" : { },
"rmg" : { },
"templates" : { },
"battleground" : { },
"sounds" : { }
}
}