Skip to content

TreasureSoldEvent

Valuables sold in town at full value (the 1-gp-1-XP identity kept clean).

Full documentation: TreasureSoldEvent. Wire type: treasure_sold.

Default visibility: player

Message codes: town.treasure.sold

JSON Schema

{
  "$defs": {
    "Visibility": {
      "description": "Who may see an event.\n\nThe wire values are `\"player\"` and `\"referee\"` \u2014 lowercase, serialized into every\nevent; changing them is a `schema_version` bump.",
      "enum": [
        "player",
        "referee"
      ],
      "title": "Visibility",
      "type": "string"
    }
  },
  "description": "Valuables sold in town at full value (the 1-gp-1-XP identity kept clean).",
  "properties": {
    "code": {
      "default": "town.treasure.sold",
      "title": "Code",
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/Visibility",
      "default": "player"
    },
    "event_type": {
      "const": "treasure_sold",
      "default": "treasure_sold",
      "title": "Event Type",
      "type": "string"
    },
    "character_id": {
      "title": "Character Id",
      "type": "string"
    },
    "instance_ids": {
      "items": {
        "type": "string"
      },
      "title": "Instance Ids",
      "type": "array"
    },
    "gp_value": {
      "title": "Gp Value",
      "type": "integer"
    }
  },
  "required": [
    "character_id",
    "instance_ids",
    "gp_value"
  ],
  "title": "TreasureSoldEvent",
  "type": "object"
}