Add item actions, targeting, bindings, and encumbrance
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
"craftRequest": {
|
||||
"$ref": "#/definitions/CraftRequest"
|
||||
},
|
||||
"itemActionRequest": {"$ref": "#/definitions/ItemActionRequest"},
|
||||
"itemActionResult": {"$ref": "#/definitions/ItemActionResult"},
|
||||
"craftResult": {
|
||||
"$ref": "#/definitions/CraftResult"
|
||||
},
|
||||
@@ -238,6 +240,7 @@
|
||||
"mana": {"type": "number"},
|
||||
"stamina": {"type": "number"},
|
||||
"carryWeight": {"type": "number"},
|
||||
"movementFactor": {"type": "number"},
|
||||
"pendingVitalChoices": {"type": "integer"},
|
||||
"healthChoices": {"type": "integer"},
|
||||
"manaChoices": {"type": "integer"},
|
||||
@@ -294,6 +297,7 @@
|
||||
"ItemInstance": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"coating": {"$ref": "#/definitions/WeaponCoating"},
|
||||
"id": {"type": "string"},
|
||||
"definitionId": {"type": "string"},
|
||||
"name": {"type": "string"},
|
||||
@@ -462,9 +466,20 @@
|
||||
},
|
||||
"required": ["name", "description", "color", "weight"]
|
||||
},
|
||||
"ItemUseEffect": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {"kind": {"type": "string"}, "amount": {"type": "number"}},
|
||||
"required": ["kind", "amount"]
|
||||
},
|
||||
"WeaponCoating": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {"source": {"type": "string"}, "name": {"type": "string"}, "expiresAt": {"type": "number"}, "damage": {"type": "number"}},
|
||||
"required": ["source", "name", "expiresAt", "damage"]
|
||||
},
|
||||
"GatheringConsumable": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"useEffect": {"$ref": "#/definitions/ItemUseEffect"},
|
||||
"id": {"type": "string"},
|
||||
"name": {"type": "string"},
|
||||
"description": {"type": "string"},
|
||||
@@ -476,6 +491,7 @@
|
||||
"GatheringConsumableDraft": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"useEffect": {"$ref": "#/definitions/ItemUseEffect"},
|
||||
"id": {"type": "string"},
|
||||
"name": {"type": "string"},
|
||||
"description": {"type": "string"},
|
||||
@@ -795,6 +811,7 @@
|
||||
"professions": {"type": "array", "items": {"$ref": "#/definitions/GatheringSkill"}},
|
||||
"materials": {"type": "array", "items": {"$ref": "#/definitions/CraftMaterial"}},
|
||||
"recipes": {"type": "array", "items": {"$ref": "#/definitions/CraftRecipe"}},
|
||||
"recipeHistory": {"type": "array", "items": {"$ref": "#/definitions/CraftRecipe"}},
|
||||
"rules": {"$ref": "#/definitions/CraftRules"}
|
||||
},
|
||||
"required": ["professions", "materials", "recipes", "rules"]
|
||||
@@ -843,6 +860,25 @@
|
||||
},
|
||||
"required": ["recipe", "discoveredAt"]
|
||||
},
|
||||
"ItemActionRequest": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {"type": "string"}, "characterId": {"type": "string"},
|
||||
"op": {"type": "string"}, "item": {"type": "string"},
|
||||
"target": {"type": "string"}, "slot": {"type": "string"},
|
||||
"quantity": {"type": "integer"}
|
||||
},
|
||||
"required": ["id", "characterId", "op", "item", "target", "slot", "quantity"]
|
||||
},
|
||||
"ItemActionResult": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {"type": "string"}, "message": {"type": "string"},
|
||||
"returned": {"type": "object", "additionalProperties": {"type": "integer"}},
|
||||
"recipe": {"$ref": "#/definitions/KnownRecipe"}
|
||||
},
|
||||
"required": ["id", "message", "returned"]
|
||||
},
|
||||
"CraftRequest": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user