986 lines
42 KiB
JSON
986 lines
42 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Protocol",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"intent": {
|
|
"$ref": "#/definitions/Intent"
|
|
},
|
|
"snapshot": {
|
|
"$ref": "#/definitions/Snapshot"
|
|
},
|
|
"catalog": {
|
|
"$ref": "#/definitions/ContentCatalog"
|
|
},
|
|
"catalogChange": {
|
|
"$ref": "#/definitions/ContentChange"
|
|
},
|
|
"catalogPreview": {
|
|
"$ref": "#/definitions/ContentPreview"
|
|
},
|
|
"catalogResult": {
|
|
"$ref": "#/definitions/ContentResult"
|
|
},
|
|
"craftRequest": {
|
|
"$ref": "#/definitions/CraftRequest"
|
|
},
|
|
"craftResult": {
|
|
"$ref": "#/definitions/CraftResult"
|
|
}
|
|
},
|
|
"required": [
|
|
"intent",
|
|
"snapshot"
|
|
],
|
|
"definitions": {
|
|
"ContentRequirement": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"metric": {"type": "string"}, "atLeast": {"type": "integer"}},
|
|
"required": ["metric", "atLeast"]
|
|
},
|
|
"RequirementSet": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "requirements": {"type": "array", "items": {"$ref": "#/definitions/ContentRequirement"}}},
|
|
"required": ["id", "name", "description", "requirements"]
|
|
},
|
|
"EffectSet": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}},
|
|
"required": ["id", "name", "description", "modifiers"]
|
|
},
|
|
"TitleDefinition": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "scope": {"type": "string"},
|
|
"requirements": {"type": "array", "items": {"$ref": "#/definitions/ContentRequirement"}}, "effects": {"$ref": "#/definitions/TitleEffects"}
|
|
},
|
|
"required": ["id", "name", "description", "scope", "requirements", "effects"]
|
|
},
|
|
"ItemDefinition": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"slot": {"type": "string"},
|
|
"weight": {"type": "number"},
|
|
"dropChance": {"type": "number"},
|
|
"requirements": {"$ref": "#/definitions/ItemRequirements"},
|
|
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}},
|
|
"attackId": {"type": "string"},
|
|
"craftPool": {"type": "array", "items": {"$ref": "#/definitions/CraftStat"}},
|
|
"craftRolls": {"type": "integer"},
|
|
"weaponType": {"type": "string"}
|
|
},
|
|
"required": ["id", "name", "description", "slot", "weight", "dropChance", "requirements", "modifiers"]
|
|
},
|
|
"ContentStatsRules": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"version": {"type": "integer"}, "base": {"type": "object", "additionalProperties": {"type": "number"}},
|
|
"coefficients": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "number"}}}
|
|
},
|
|
"required": ["version", "base", "coefficients"]
|
|
},
|
|
"ContentCatalog": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"version": {"type": "integer"},
|
|
"titles": {"type": "array", "items": {"$ref": "#/definitions/TitleDefinition"}},
|
|
"items": {"type": "array", "items": {"$ref": "#/definitions/ItemDefinition"}},
|
|
"stats": {"$ref": "#/definitions/ContentStatsRules"},
|
|
"requirementSets": {"type": "array", "items": {"$ref": "#/definitions/RequirementSet"}},
|
|
"effectSets": {"type": "array", "items": {"$ref": "#/definitions/EffectSet"}},
|
|
"gathering": {"$ref": "#/definitions/GatheringContent"},
|
|
"combat": {"$ref": "#/definitions/CombatContent"},
|
|
"crafting": {"$ref": "#/definitions/CraftingContent"},
|
|
"powers": {"$ref": "#/definitions/PowerContent"},
|
|
"building": {"$ref": "#/definitions/BuildingContent"}
|
|
},
|
|
"required": ["version", "titles", "items", "stats"]
|
|
},
|
|
"ContentChange": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"expectedVersion": {"type": "integer"},
|
|
"op": {"type": "string"},
|
|
"reason": {"type": "string"},
|
|
"title": {"$ref": "#/definitions/TitleDraft"},
|
|
"item": {"$ref": "#/definitions/ItemDraft"},
|
|
"stats": {"$ref": "#/definitions/ContentStatsRules"},
|
|
"requirementSet": {"$ref": "#/definitions/RequirementSetDraft"},
|
|
"effectSet": {"$ref": "#/definitions/EffectSetDraft"},
|
|
"requirementSetIds": {"type": "array", "items": {"type": "string"}},
|
|
"effectSetIds": {"type": "array", "items": {"type": "string"}},
|
|
"gatheringSkill": {"$ref": "#/definitions/GatheringSkillDraft"},
|
|
"resource": {"$ref": "#/definitions/ResourceDefinitionDraft"},
|
|
"biome": {"$ref": "#/definitions/BiomeDefinitionDraft"},
|
|
"consumable": {"$ref": "#/definitions/GatheringConsumableDraft"},
|
|
"attack": {"$ref": "#/definitions/CombatAttackDraft"},
|
|
"mob": {"$ref": "#/definitions/MobDefinitionDraft"},
|
|
"loot": {"$ref": "#/definitions/LootTableDraft"},
|
|
"spawn": {"$ref": "#/definitions/MobSpawnDraft"},
|
|
"targetId": {"type": "string"},
|
|
"craftRecipe": {"$ref": "#/definitions/CraftRecipeDraft"},
|
|
"craftProfession": {"$ref": "#/definitions/GatheringSkillDraft"},
|
|
"craftMaterial": {"$ref": "#/definitions/CraftMaterialDraft"},
|
|
"craftRules": {"$ref": "#/definitions/CraftRules"},
|
|
"power": {"$ref": "#/definitions/PowerDraft"},
|
|
"weapon": {"$ref": "#/definitions/GatheringSkillDraft"},
|
|
"building": {"$ref": "#/definitions/BuildingDraft"}
|
|
},
|
|
"required": ["id", "expectedVersion", "op", "reason"]
|
|
},
|
|
"ContentResult": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"version": {"type": "integer"}, "id": {"type": "string"}},
|
|
"required": ["version", "id"]
|
|
},
|
|
"TitleDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "scope": {"type": "string"},
|
|
"requirements": {"type": "array", "items": {"$ref": "#/definitions/ContentRequirement"}}, "effects": {"$ref": "#/definitions/TitleEffects"}
|
|
},
|
|
"required": ["name", "description", "scope", "requirements", "effects"]
|
|
},
|
|
"ItemDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"slot": {"type": "string"},
|
|
"weight": {"type": "number"},
|
|
"dropChance": {"type": "number"},
|
|
"requirements": {"$ref": "#/definitions/ItemRequirements"},
|
|
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}},
|
|
"attackId": {"type": "string"},
|
|
"craftPool": {"type": "array", "items": {"$ref": "#/definitions/CraftStat"}},
|
|
"craftRolls": {"type": "integer"},
|
|
"weaponType": {"type": "string"}
|
|
},
|
|
"required": ["name", "description", "slot", "weight", "dropChance", "requirements", "modifiers"]
|
|
},
|
|
"RequirementSetDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "requirements": {"type": "array", "items": {"$ref": "#/definitions/ContentRequirement"}}},
|
|
"required": ["name", "description", "requirements"]
|
|
},
|
|
"EffectSetDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}},
|
|
"required": ["name", "description", "modifiers"]
|
|
},
|
|
"ContentPreview": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"basedOnVersion": {"type": "integer"}, "proposedVersion": {"type": "integer"}, "resolved": {"$ref": "#/definitions/ContentChange"}},
|
|
"required": ["basedOnVersion", "proposedVersion", "resolved"]
|
|
},
|
|
"Vec3": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"x": {"type": "number"}, "y": {"type": "number"}, "z": {"type": "number"}},
|
|
"required": ["x", "y", "z"]
|
|
},
|
|
"Intent": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"op": {"type": "string"}, "seq": {"type": "integer"},
|
|
"x": {"type": "number"}, "z": {"type": "number"}, "target": {"type": "string"}, "slot": {"type": "string"}
|
|
},
|
|
"required": ["op", "seq", "x", "z", "target", "slot"]
|
|
},
|
|
"Entity": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"kind": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"position": {"$ref": "#/definitions/Vec3"},
|
|
"hp": {"type": "number"},
|
|
"maxHp": {"type": "number"},
|
|
"state": {"type": "string"},
|
|
"resourceId": {"type": "string"},
|
|
"skillId": {"type": "string"},
|
|
"requiredLevel": {"type": "integer"},
|
|
"model": {"type": "string"},
|
|
"radius": {"type": "number"},
|
|
"width": {"type": "number"},
|
|
"depth": {"type": "number"},
|
|
"height": {"type": "number"}
|
|
},
|
|
"required": ["id", "kind", "name", "position", "hp", "maxHp", "state"]
|
|
},
|
|
"Character": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"entity": {"$ref": "#/definitions/Entity"},
|
|
"inventory": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"skills": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"level": {"type": "integer"},
|
|
"experience": {"type": "integer"},
|
|
"experienceToNextLevel": {"type": "integer"},
|
|
"statPoints": {"type": "integer"},
|
|
"titles": {"type": "array", "items": {"$ref": "#/definitions/TitleAward"}},
|
|
"allocatedStats": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"stats": {"type": "object", "additionalProperties": {"$ref": "#/definitions/StatValue"}},
|
|
"mana": {"type": "number"},
|
|
"stamina": {"type": "number"},
|
|
"carryWeight": {"type": "number"},
|
|
"pendingVitalChoices": {"type": "integer"},
|
|
"healthChoices": {"type": "integer"},
|
|
"manaChoices": {"type": "integer"},
|
|
"items": {"type": "array", "items": {"$ref": "#/definitions/ItemInstance"}},
|
|
"equipment": {"type": "object", "additionalProperties": {"type": "string"}},
|
|
"playedSeconds": {"type": "number"},
|
|
"remainingSeconds": {"type": "number"},
|
|
"kills": {"type": "integer"},
|
|
"ack": {"type": "integer"},
|
|
"hasKeystone": {"type": "boolean"},
|
|
"gathering": {"type": "object", "additionalProperties": {"$ref": "#/definitions/SkillProgress"}},
|
|
"gatheringEffects": {"type": "array", "items": {"$ref": "#/definitions/TimedGatheringEffect"}},
|
|
"gatherAttempt": {"type": "integer"},
|
|
"consumables": {"type": "array", "items": {"$ref": "#/definitions/GatheringConsumable"}},
|
|
"stackNames": {"type": "object", "additionalProperties": {"type": "string"}},
|
|
"attack": {"$ref": "#/definitions/CombatAttack"},
|
|
"crafting": {"type": "object", "additionalProperties": {"$ref": "#/definitions/CraftProgress"}},
|
|
"discoveredRecipes": {"type": "object", "additionalProperties": {"$ref": "#/definitions/KnownRecipe"}},
|
|
"craftedStacks": {"type": "array", "items": {"$ref": "#/definitions/CraftedStack"}},
|
|
"powers": {"type": "object", "additionalProperties": {"$ref": "#/definitions/LearnedPower"}},
|
|
"weapons": {"type": "object", "additionalProperties": {"$ref": "#/definitions/WeaponProgress"}},
|
|
"casting": {"type": "string"}
|
|
},
|
|
"required": ["entity", "inventory", "skills", "level", "experience", "experienceToNextLevel", "statPoints", "titles", "allocatedStats", "stats", "mana", "stamina", "carryWeight", "pendingVitalChoices", "healthChoices", "manaChoices", "items", "equipment", "playedSeconds", "remainingSeconds", "kills", "ack", "hasKeystone", "gatherAttempt"]
|
|
},
|
|
"TitleEffects": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"damage": {"type": "number"}, "moveSpeed": {"type": "number"}, "modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}},
|
|
"required": ["damage", "moveSpeed", "modifiers"]
|
|
},
|
|
"StatModifier": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"stat": {"type": "string"},
|
|
"flat": {"type": "number"},
|
|
"percent": {"type": "number"},
|
|
"skill": {"type": "string"}
|
|
},
|
|
"required": ["stat", "flat", "percent"]
|
|
},
|
|
"StatValue": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"base": {"type": "number"}, "flat": {"type": "number"}, "percent": {"type": "number"}, "final": {"type": "number"}},
|
|
"required": ["base", "flat", "percent", "final"]
|
|
},
|
|
"ItemRequirements": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"level": {"type": "integer"}, "stats": {"type": "object", "additionalProperties": {"type": "number"}}, "titles": {"type": "array", "items": {"type": "string"}}},
|
|
"required": ["level", "stats", "titles"]
|
|
},
|
|
"ItemInstance": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"definitionId": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"slot": {"type": "string"},
|
|
"weight": {"type": "number"},
|
|
"requirements": {"$ref": "#/definitions/ItemRequirements"},
|
|
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}},
|
|
"equippable": {"type": "boolean"},
|
|
"requirementMessage": {"type": "string"},
|
|
"attack": {"$ref": "#/definitions/CombatAttack"},
|
|
"provenance": {"$ref": "#/definitions/CraftProvenance"},
|
|
"weaponType": {"type": "string"}
|
|
},
|
|
"required": ["id", "definitionId", "name", "description", "slot", "weight", "requirements", "modifiers", "equippable", "requirementMessage"]
|
|
},
|
|
"TitleAward": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"},
|
|
"scope": {"type": "string"}, "worldId": {"type": "string"}, "earnedAt": {"type": "string"},
|
|
"effects": {"$ref": "#/definitions/TitleEffects"}
|
|
},
|
|
"required": ["id", "name", "description", "scope", "worldId", "earnedAt", "effects"]
|
|
},
|
|
"Chunk": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"key": {"type": "string"},
|
|
"x": {"type": "integer"},
|
|
"z": {"type": "integer"},
|
|
"size": {"type": "number"},
|
|
"resolution": {"type": "integer"},
|
|
"heights": {"type": "array", "items": {"type": "number"}},
|
|
"biome": {"type": "string"},
|
|
"resources": {"type": "array", "items": {"$ref": "#/definitions/Entity"}},
|
|
"color": {"type": "string"}
|
|
},
|
|
"required": ["key", "x", "z", "size", "resolution", "heights", "biome", "resources"]
|
|
},
|
|
"WorldInfo": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"seed": {"type": "integer"},
|
|
"phase": {"type": "string"},
|
|
"ageSeconds": {"type": "number"},
|
|
"bossInSeconds": {"type": "number"},
|
|
"collapseInSeconds": {"type": "number"},
|
|
"safeRadius": {"type": "number"},
|
|
"radius": {"type": "number"},
|
|
"online": {"type": "integer"},
|
|
"capacity": {"type": "integer"},
|
|
"bossHp": {"type": "number"},
|
|
"bossMaxHp": {"type": "number"},
|
|
"kind": {"type": "string"}
|
|
},
|
|
"required": ["id", "seed", "phase", "ageSeconds", "bossInSeconds", "collapseInSeconds", "safeRadius", "radius", "online", "capacity", "bossHp", "bossMaxHp"]
|
|
},
|
|
"Snapshot": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"type": {"type": "string"},
|
|
"version": {"type": "integer"},
|
|
"tick": {"type": "integer"},
|
|
"world": {"$ref": "#/definitions/WorldInfo"},
|
|
"self": {"$ref": "#/definitions/Character"},
|
|
"entities": {"type": "array", "items": {"$ref": "#/definitions/Entity"}},
|
|
"chunks": {"type": "array", "items": {"$ref": "#/definitions/Chunk"}},
|
|
"chunkKeys": {"type": "array", "items": {"type": "string"}},
|
|
"unavailableResources": {"type": "array", "items": {"type": "string"}},
|
|
"message": {"type": "string"},
|
|
"gatherRisks": {"type": "object", "additionalProperties": {"$ref": "#/definitions/GatheringRisk"}},
|
|
"projectileVisuals": {"type": "array", "items": {"$ref": "#/definitions/ProjectileVisual"}}
|
|
},
|
|
"required": ["type", "version", "tick", "world", "self", "entities", "chunks", "chunkKeys", "unavailableResources", "message"]
|
|
},
|
|
"GatheringSkill": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"baseXp": {"type": "integer"},
|
|
"xpPerLevel": {"type": "integer"},
|
|
"maxLevel": {"type": "integer"}
|
|
},
|
|
"required": ["id", "name", "description", "baseXp", "xpPerLevel", "maxLevel"]
|
|
},
|
|
"GatheringSkillDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"baseXp": {"type": "integer"},
|
|
"xpPerLevel": {"type": "integer"},
|
|
"maxLevel": {"type": "integer"}
|
|
},
|
|
"required": ["name", "description", "baseXp", "xpPerLevel", "maxLevel"]
|
|
},
|
|
"ResourceDefinition": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"skillId": {"type": "string"},
|
|
"model": {"type": "string"},
|
|
"output": {"type": "string"},
|
|
"requiredLevel": {"type": "integer"},
|
|
"amount": {"type": "integer"},
|
|
"xp": {"type": "integer"},
|
|
"seconds": {"type": "number"},
|
|
"respawnSeconds": {"type": "number"},
|
|
"density": {"type": "integer"},
|
|
"biomes": {"type": "array", "items": {"type": "string"}}
|
|
},
|
|
"required": ["id", "name", "description", "skillId", "model", "output", "requiredLevel", "amount", "xp", "seconds", "respawnSeconds", "density", "biomes"]
|
|
},
|
|
"ResourceDefinitionDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"skillId": {"type": "string"},
|
|
"model": {"type": "string"},
|
|
"output": {"type": "string"},
|
|
"requiredLevel": {"type": "integer"},
|
|
"amount": {"type": "integer"},
|
|
"xp": {"type": "integer"},
|
|
"seconds": {"type": "number"},
|
|
"respawnSeconds": {"type": "number"},
|
|
"density": {"type": "integer"},
|
|
"biomes": {"type": "array", "items": {"type": "string"}}
|
|
},
|
|
"required": ["name", "description", "skillId", "model", "output", "requiredLevel", "amount", "xp", "seconds", "respawnSeconds", "density", "biomes"]
|
|
},
|
|
"BiomeDefinition": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"color": {"type": "string"},
|
|
"weight": {"type": "integer"},
|
|
"revision": {"type": "integer"},
|
|
"resources": {"type": ["array", "null"], "items": {"type": "string"}}
|
|
},
|
|
"required": ["id", "name", "description", "color", "weight"]
|
|
},
|
|
"BiomeDefinitionDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"color": {"type": "string"},
|
|
"weight": {"type": "integer"},
|
|
"revision": {"type": "integer"},
|
|
"resources": {"type": ["array", "null"], "items": {"type": "string"}}
|
|
},
|
|
"required": ["name", "description", "color", "weight"]
|
|
},
|
|
"GatheringConsumable": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"seconds": {"type": "number"},
|
|
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}
|
|
},
|
|
"required": ["id", "name", "description", "seconds", "modifiers"]
|
|
},
|
|
"GatheringConsumableDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"seconds": {"type": "number"},
|
|
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}
|
|
},
|
|
"required": ["name", "description", "seconds", "modifiers"]
|
|
},
|
|
"GatheringContent": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"skills": {"type": "array", "items": {"$ref": "#/definitions/GatheringSkill"}},
|
|
"resources": {"type": "array", "items": {"$ref": "#/definitions/ResourceDefinition"}},
|
|
"biomes": {"type": "array", "items": {"$ref": "#/definitions/BiomeDefinition"}},
|
|
"consumables": {"type": "array", "items": {"$ref": "#/definitions/GatheringConsumable"}},
|
|
"biomeHistory": {"type": "array", "items": {"$ref": "#/definitions/BiomeDefinition"}}
|
|
},
|
|
"required": ["skills", "resources", "biomes", "consumables"]
|
|
},
|
|
"SkillProgress": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"name": {"type": "string"},
|
|
"xp": {"type": "integer"},
|
|
"level": {"type": "integer"},
|
|
"xpToNextLevel": {"type": "integer"},
|
|
"effectiveLevel": {"type": "integer"},
|
|
"yield": {"$ref": "#/definitions/StatValue"},
|
|
"speed": {"$ref": "#/definitions/StatValue"},
|
|
"experience": {"$ref": "#/definitions/StatValue"},
|
|
"levelValue": {"$ref": "#/definitions/StatValue"}
|
|
},
|
|
"required": ["name", "xp", "level", "xpToNextLevel", "effectiveLevel", "yield", "speed", "experience", "levelValue"]
|
|
},
|
|
"TimedGatheringEffect": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"source": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"expiresAt": {"type": "number"},
|
|
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}
|
|
},
|
|
"required": ["source", "name", "expiresAt", "modifiers"]
|
|
},
|
|
"GatheringRisk": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"failure": {"type": "number"},
|
|
"destruction": {"type": "number"},
|
|
"negative": {"type": "number"},
|
|
"damage": {"type": "number"},
|
|
"seconds": {"type": "number"},
|
|
"allowed": {"type": "boolean"}
|
|
},
|
|
"required": ["failure", "destruction", "negative", "damage", "seconds", "allowed"]
|
|
},
|
|
"CombatAttack": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"delivery": {"type": "string"},
|
|
"effect": {"type": "string"},
|
|
"stat": {"type": "string"},
|
|
"multiplier": {"type": "number"},
|
|
"range": {"type": "number"},
|
|
"cooldown": {"type": "number"},
|
|
"stamina": {"type": "number"},
|
|
"speed": {"type": "number"},
|
|
"radius": {"type": "number"},
|
|
"duration": {"type": "number"},
|
|
"interval": {"type": "number"},
|
|
"dexteritySpeed": {"type": "number"},
|
|
"strengthSpeed": {"type": "number"}
|
|
},
|
|
"required": ["id", "name", "description", "delivery", "effect", "stat", "multiplier", "range", "cooldown", "stamina", "speed", "radius", "duration", "interval"]
|
|
},
|
|
"CombatAttackDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"delivery": {"type": "string"},
|
|
"effect": {"type": "string"},
|
|
"stat": {"type": "string"},
|
|
"multiplier": {"type": "number"},
|
|
"range": {"type": "number"},
|
|
"cooldown": {"type": "number"},
|
|
"stamina": {"type": "number"},
|
|
"speed": {"type": "number"},
|
|
"radius": {"type": "number"},
|
|
"duration": {"type": "number"},
|
|
"interval": {"type": "number"},
|
|
"dexteritySpeed": {"type": "number"},
|
|
"strengthSpeed": {"type": "number"}
|
|
},
|
|
"required": ["name", "description", "delivery", "effect", "stat", "multiplier", "range", "cooldown", "stamina", "speed", "radius", "duration", "interval"]
|
|
},
|
|
"LootEntry": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"item": {"type": "string"},
|
|
"amount": {"type": "integer"},
|
|
"chance": {"type": "number"},
|
|
"group": {"type": "string"},
|
|
"weight": {"type": "integer"}
|
|
},
|
|
"required": ["item", "amount", "chance", "group", "weight"]
|
|
},
|
|
"LootTable": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"entries": {"type": "array", "items": {"$ref": "#/definitions/LootEntry"}}
|
|
},
|
|
"required": ["id", "name", "description", "entries"]
|
|
},
|
|
"LootTableDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"entries": {"type": "array", "items": {"$ref": "#/definitions/LootEntry"}}
|
|
},
|
|
"required": ["name", "description", "entries"]
|
|
},
|
|
"MobDefinition": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"model": {"type": "string"},
|
|
"behavior": {"type": "string"},
|
|
"level": {"type": "integer"},
|
|
"hp": {"type": "number"},
|
|
"damage": {"type": "number"},
|
|
"defence": {"type": "number"},
|
|
"speed": {"type": "number"},
|
|
"aggroRange": {"type": "number"},
|
|
"leashRange": {"type": "number"},
|
|
"scalePerDay": {"type": "number"},
|
|
"xp": {"type": "integer"},
|
|
"attackId": {"type": "string"},
|
|
"lootId": {"type": "string"}
|
|
},
|
|
"required": ["id", "name", "description", "model", "behavior", "level", "hp", "damage", "defence", "speed", "aggroRange", "leashRange", "scalePerDay", "xp", "attackId", "lootId"]
|
|
},
|
|
"MobDefinitionDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"model": {"type": "string"},
|
|
"behavior": {"type": "string"},
|
|
"level": {"type": "integer"},
|
|
"hp": {"type": "number"},
|
|
"damage": {"type": "number"},
|
|
"defence": {"type": "number"},
|
|
"speed": {"type": "number"},
|
|
"aggroRange": {"type": "number"},
|
|
"leashRange": {"type": "number"},
|
|
"scalePerDay": {"type": "number"},
|
|
"xp": {"type": "integer"},
|
|
"attackId": {"type": "string"},
|
|
"lootId": {"type": "string"}
|
|
},
|
|
"required": ["name", "description", "model", "behavior", "level", "hp", "damage", "defence", "speed", "aggroRange", "leashRange", "scalePerDay", "xp", "attackId", "lootId"]
|
|
},
|
|
"MobSpawn": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"mobId": {"type": "string"},
|
|
"x": {"type": "number"},
|
|
"z": {"type": "number"},
|
|
"radius": {"type": "number"},
|
|
"count": {"type": "integer"},
|
|
"respawn": {"type": "number"},
|
|
"minPlayerDistance": {"type": "number"},
|
|
"biomes": {"type": "array", "items": {"type": "string"}}
|
|
},
|
|
"required": ["id", "name", "description", "mobId", "x", "z", "radius", "count", "respawn", "minPlayerDistance", "biomes"]
|
|
},
|
|
"MobSpawnDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"mobId": {"type": "string"},
|
|
"x": {"type": "number"},
|
|
"z": {"type": "number"},
|
|
"radius": {"type": "number"},
|
|
"count": {"type": "integer"},
|
|
"respawn": {"type": "number"},
|
|
"minPlayerDistance": {"type": "number"},
|
|
"biomes": {"type": "array", "items": {"type": "string"}}
|
|
},
|
|
"required": ["name", "description", "mobId", "x", "z", "radius", "count", "respawn", "minPlayerDistance", "biomes"]
|
|
},
|
|
"CombatContent": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"attacks": {"type": "array", "items": {"$ref": "#/definitions/CombatAttack"}},
|
|
"mobs": {"type": "array", "items": {"$ref": "#/definitions/MobDefinition"}},
|
|
"loot": {"type": "array", "items": {"$ref": "#/definitions/LootTable"}},
|
|
"spawns": {"type": "array", "items": {"$ref": "#/definitions/MobSpawn"}}
|
|
},
|
|
"required": ["attacks", "mobs", "loot", "spawns"]
|
|
},
|
|
"ProjectileVisual": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"projectileId": {"type": "string"},
|
|
"phase": {"type": "string"},
|
|
"position": {"$ref": "#/definitions/Vec3"},
|
|
"destination": {"$ref": "#/definitions/Vec3"},
|
|
"speed": {"type": "number"},
|
|
"outcome": {"type": "string"},
|
|
"at": {"type": "number"}
|
|
},
|
|
"required": ["id", "projectileId", "phase", "position", "destination", "speed", "outcome", "at"]
|
|
},
|
|
"CraftStat": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"stat": {"type": "string"},
|
|
"min": {"type": "number"},
|
|
"max": {"type": "number"},
|
|
"percent": {"type": "boolean"},
|
|
"weight": {"type": "number"}
|
|
},
|
|
"required": ["stat", "min", "max", "percent", "weight"]
|
|
},
|
|
"CraftMaterial": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"}
|
|
},
|
|
"required": ["id", "name", "description"]
|
|
},
|
|
"CraftMaterialDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"}
|
|
},
|
|
"required": ["name", "description"]
|
|
},
|
|
"CraftRecipe": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"revision": {"type": "integer"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"profession": {"type": "string"},
|
|
"level": {"type": "integer"},
|
|
"xp": {"type": "integer"},
|
|
"inputs": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"outputs": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"stats": {"type": "object", "additionalProperties": {"type": "number"}},
|
|
"titles": {"type": "array", "items": {"type": "string"}}
|
|
},
|
|
"required": ["id", "revision", "name", "description", "profession", "level", "xp", "inputs", "outputs", "stats", "titles"]
|
|
},
|
|
"CraftRecipeDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"revision": {"type": "integer"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"profession": {"type": "string"},
|
|
"level": {"type": "integer"},
|
|
"xp": {"type": "integer"},
|
|
"inputs": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"outputs": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"stats": {"type": "object", "additionalProperties": {"type": "number"}},
|
|
"titles": {"type": "array", "items": {"type": "string"}}
|
|
},
|
|
"required": ["name", "description", "profession", "level", "xp", "inputs", "outputs", "stats", "titles"]
|
|
},
|
|
"CraftRules": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"baseFailure": {"type": "number"},
|
|
"minFailure": {"type": "number"},
|
|
"maxFailure": {"type": "number"},
|
|
"overLevelDecay": {"type": "number"},
|
|
"underLevelGrowth": {"type": "number"},
|
|
"baseLoss": {"type": "number"},
|
|
"minLoss": {"type": "number"},
|
|
"lossDecay": {"type": "number"},
|
|
"qualityPerLevel": {"type": "number"},
|
|
"maxQualityBias": {"type": "number"},
|
|
"cooldown": {"type": "number"}
|
|
},
|
|
"required": ["baseFailure", "minFailure", "maxFailure", "overLevelDecay", "underLevelGrowth", "baseLoss", "minLoss", "lossDecay", "qualityPerLevel", "maxQualityBias", "cooldown"]
|
|
},
|
|
"CraftingContent": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"professions": {"type": "array", "items": {"$ref": "#/definitions/GatheringSkill"}},
|
|
"materials": {"type": "array", "items": {"$ref": "#/definitions/CraftMaterial"}},
|
|
"recipes": {"type": "array", "items": {"$ref": "#/definitions/CraftRecipe"}},
|
|
"rules": {"$ref": "#/definitions/CraftRules"}
|
|
},
|
|
"required": ["professions", "materials", "recipes", "rules"]
|
|
},
|
|
"CraftProvenance": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"characterId": {"type": "string"},
|
|
"crafterName": {"type": "string"},
|
|
"worldId": {"type": "string"},
|
|
"recipeId": {"type": "string"},
|
|
"recipeRevision": {"type": "integer"},
|
|
"profession": {"type": "string"},
|
|
"level": {"type": "integer"},
|
|
"at": {"type": "number"}
|
|
},
|
|
"required": ["characterId", "crafterName", "worldId", "recipeId", "recipeRevision", "profession", "level", "at"]
|
|
},
|
|
"CraftedStack": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"item": {"type": "string"},
|
|
"quantity": {"type": "integer"},
|
|
"provenance": {"$ref": "#/definitions/CraftProvenance"}
|
|
},
|
|
"required": ["id", "item", "quantity", "provenance"]
|
|
},
|
|
"CraftProgress": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"level": {"type": "integer"},
|
|
"xp": {"type": "integer"},
|
|
"xpToNextLevel": {"type": "integer"},
|
|
"lossPercent": {"type": "number"}
|
|
},
|
|
"required": ["id", "name", "level", "xp", "xpToNextLevel", "lossPercent"]
|
|
},
|
|
"KnownRecipe": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"recipe": {"$ref": "#/definitions/CraftRecipe"},
|
|
"discoveredAt": {"type": "number"}
|
|
},
|
|
"required": ["recipe", "discoveredAt"]
|
|
},
|
|
"CraftRequest": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"characterId": {"type": "string"},
|
|
"profession": {"type": "string"},
|
|
"ingredients": {"type": "object", "additionalProperties": {"type": "integer"}}
|
|
},
|
|
"required": ["id", "characterId", "profession", "ingredients"]
|
|
},
|
|
"CraftResult": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"valid": {"type": "boolean"},
|
|
"success": {"type": "boolean"},
|
|
"message": {"type": "string"},
|
|
"consumed": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"created": {"type": "array", "items": {"type": "string"}},
|
|
"recipe": {"$ref": "#/definitions/KnownRecipe"}
|
|
},
|
|
"required": ["id", "valid", "success", "message", "consumed", "created"]
|
|
},
|
|
"PowerDefinition": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"kind": {"type": "string"},
|
|
"attackId": {"type": "string"},
|
|
"targeting": {"type": "string"},
|
|
"resurrection": {"type": "boolean"},
|
|
"weapon": {"type": "string"},
|
|
"weaponLevel": {"type": "integer"},
|
|
"requirements": {"$ref": "#/definitions/ItemRequirements"},
|
|
"parents": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"book": {"type": "boolean"},
|
|
"mana": {"type": "number"},
|
|
"castSeconds": {"type": "number"},
|
|
"cooldown": {"type": "number"},
|
|
"rankScaling": {"type": "number"},
|
|
"baseXp": {"type": "integer"},
|
|
"xpPerLevel": {"type": "integer"},
|
|
"maxLevel": {"type": "integer"},
|
|
"basePower": {"type": "number"}
|
|
},
|
|
"required": ["id", "name", "description", "kind", "attackId", "targeting", "resurrection", "weapon", "weaponLevel", "requirements", "parents", "book", "mana", "castSeconds", "cooldown", "rankScaling", "baseXp", "xpPerLevel", "maxLevel", "basePower"]
|
|
},
|
|
"PowerDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"kind": {"type": "string"},
|
|
"attackId": {"type": "string"},
|
|
"targeting": {"type": "string"},
|
|
"resurrection": {"type": "boolean"},
|
|
"weapon": {"type": "string"},
|
|
"weaponLevel": {"type": "integer"},
|
|
"requirements": {"$ref": "#/definitions/ItemRequirements"},
|
|
"parents": {"type": "object", "additionalProperties": {"type": "integer"}},
|
|
"book": {"type": "boolean"},
|
|
"mana": {"type": "number"},
|
|
"castSeconds": {"type": "number"},
|
|
"cooldown": {"type": "number"},
|
|
"rankScaling": {"type": "number"},
|
|
"baseXp": {"type": "integer"},
|
|
"xpPerLevel": {"type": "integer"},
|
|
"maxLevel": {"type": "integer"},
|
|
"basePower": {"type": "number"}
|
|
},
|
|
"required": ["name", "description", "kind", "attackId", "targeting", "resurrection", "weapon", "weaponLevel", "requirements", "parents", "book", "mana", "castSeconds", "cooldown", "rankScaling", "baseXp", "xpPerLevel", "maxLevel", "basePower"]
|
|
},
|
|
"PowerContent": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"weapons": {"type": "array", "items": {"$ref": "#/definitions/GatheringSkill"}},
|
|
"powers": {"type": "array", "items": {"$ref": "#/definitions/PowerDefinition"}},
|
|
"weaponXp": {"type": "integer"},
|
|
"spellXp": {"type": "integer"},
|
|
"revivalRange": {"type": "number"},
|
|
"revivalHealth": {"type": "number"}
|
|
},
|
|
"required": ["weapons", "powers", "weaponXp", "spellXp", "revivalRange", "revivalHealth"]
|
|
},
|
|
"LearnedPower": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"definition": {"$ref": "#/definitions/PowerDefinition"},
|
|
"attack": {"$ref": "#/definitions/CombatAttack"},
|
|
"xp": {"type": "integer"},
|
|
"level": {"type": "integer"},
|
|
"xpToNextLevel": {"type": "integer"},
|
|
"readyAt": {"type": "number"}
|
|
},
|
|
"required": ["definition", "attack", "xp", "level", "xpToNextLevel", "readyAt"]
|
|
},
|
|
"WeaponProgress": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"xp": {"type": "integer"},
|
|
"level": {"type": "integer"},
|
|
"xpToNextLevel": {"type": "integer"}
|
|
},
|
|
"required": ["id", "name", "xp", "level", "xpToNextLevel"]
|
|
},
|
|
"BuildingDefinition": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"model": {"type": "string"},
|
|
"profession": {"type": "string"},
|
|
"width": {"type": "number"},
|
|
"depth": {"type": "number"},
|
|
"height": {"type": "number"},
|
|
"hp": {"type": "number"},
|
|
"level": {"type": "integer"}
|
|
},
|
|
"required": ["id", "name", "description", "model", "profession", "width", "depth", "height", "hp", "level"]
|
|
},
|
|
"BuildingDraft": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"name": {"type": "string"},
|
|
"description": {"type": "string"},
|
|
"model": {"type": "string"},
|
|
"profession": {"type": "string"},
|
|
"width": {"type": "number"},
|
|
"depth": {"type": "number"},
|
|
"height": {"type": "number"},
|
|
"hp": {"type": "number"},
|
|
"level": {"type": "integer"}
|
|
},
|
|
"required": ["name", "description", "model", "profession", "width", "depth", "height", "hp", "level"]
|
|
},
|
|
"BuildingContent": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"definitions": {"type": "array", "items": {"$ref": "#/definitions/BuildingDefinition"}},
|
|
"maxStructures": {"type": "integer"},
|
|
"range": {"type": "number"},
|
|
"protectedRadius": {"type": "number"},
|
|
"maxSlope": {"type": "number"}
|
|
},
|
|
"required": ["definitions", "maxStructures", "range", "protectedRadius", "maxSlope"]
|
|
}
|
|
}
|
|
}
|