Add durable recipe discovery and profession crafting
This commit is contained in:
+204
-13
@@ -4,14 +4,35 @@
|
||||
"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"}
|
||||
"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"],
|
||||
"required": [
|
||||
"intent",
|
||||
"snapshot"
|
||||
],
|
||||
"definitions": {
|
||||
"ContentRequirement": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
@@ -47,7 +68,9 @@
|
||||
"dropChance": {"type": "number"},
|
||||
"requirements": {"$ref": "#/definitions/ItemRequirements"},
|
||||
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}},
|
||||
"attackId": {"type": "string"}
|
||||
"attackId": {"type": "string"},
|
||||
"craftPool": {"type": "array", "items": {"$ref": "#/definitions/CraftStat"}},
|
||||
"craftRolls": {"type": "integer"}
|
||||
},
|
||||
"required": ["id", "name", "description", "slot", "weight", "dropChance", "requirements", "modifiers"]
|
||||
},
|
||||
@@ -69,7 +92,8 @@
|
||||
"requirementSets": {"type": "array", "items": {"$ref": "#/definitions/RequirementSet"}},
|
||||
"effectSets": {"type": "array", "items": {"$ref": "#/definitions/EffectSet"}},
|
||||
"gathering": {"$ref": "#/definitions/GatheringContent"},
|
||||
"combat": {"$ref": "#/definitions/CombatContent"}
|
||||
"combat": {"$ref": "#/definitions/CombatContent"},
|
||||
"crafting": {"$ref": "#/definitions/CraftingContent"}
|
||||
},
|
||||
"required": ["version", "titles", "items", "stats"]
|
||||
},
|
||||
@@ -95,7 +119,11 @@
|
||||
"mob": {"$ref": "#/definitions/MobDefinitionDraft"},
|
||||
"loot": {"$ref": "#/definitions/LootTableDraft"},
|
||||
"spawn": {"$ref": "#/definitions/MobSpawnDraft"},
|
||||
"targetId": {"type": "string"}
|
||||
"targetId": {"type": "string"},
|
||||
"craftRecipe": {"$ref": "#/definitions/CraftRecipeDraft"},
|
||||
"craftProfession": {"$ref": "#/definitions/GatheringSkillDraft"},
|
||||
"craftMaterial": {"$ref": "#/definitions/CraftMaterialDraft"},
|
||||
"craftRules": {"$ref": "#/definitions/CraftRules"}
|
||||
},
|
||||
"required": ["id", "expectedVersion", "op", "reason"]
|
||||
},
|
||||
@@ -123,7 +151,9 @@
|
||||
"dropChance": {"type": "number"},
|
||||
"requirements": {"$ref": "#/definitions/ItemRequirements"},
|
||||
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}},
|
||||
"attackId": {"type": "string"}
|
||||
"attackId": {"type": "string"},
|
||||
"craftPool": {"type": "array", "items": {"$ref": "#/definitions/CraftStat"}},
|
||||
"craftRolls": {"type": "integer"}
|
||||
},
|
||||
"required": ["name", "description", "slot", "weight", "dropChance", "requirements", "modifiers"]
|
||||
},
|
||||
@@ -204,7 +234,10 @@
|
||||
"gatherAttempt": {"type": "integer"},
|
||||
"consumables": {"type": "array", "items": {"$ref": "#/definitions/GatheringConsumable"}},
|
||||
"stackNames": {"type": "object", "additionalProperties": {"type": "string"}},
|
||||
"attack": {"$ref": "#/definitions/CombatAttack"}
|
||||
"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"}}
|
||||
},
|
||||
"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"]
|
||||
},
|
||||
@@ -246,7 +279,8 @@
|
||||
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}},
|
||||
"equippable": {"type": "boolean"},
|
||||
"requirementMessage": {"type": "string"},
|
||||
"attack": {"$ref": "#/definitions/CombatAttack"}
|
||||
"attack": {"$ref": "#/definitions/CombatAttack"},
|
||||
"provenance": {"$ref": "#/definitions/CraftProvenance"}
|
||||
},
|
||||
"required": ["id", "definitionId", "name", "description", "slot", "weight", "requirements", "modifiers", "equippable", "requirementMessage"]
|
||||
},
|
||||
@@ -645,6 +679,163 @@
|
||||
"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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user