Add item actions, targeting, bindings, and encumbrance

This commit is contained in:
dingo
2026-09-10 20:57:36 -04:00
parent 32955eca09
commit 9b01ee38e3
38 changed files with 1297 additions and 77 deletions
+36
View File
@@ -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": {