{
"id": "at.turtleme.game.defs",
"defs": {
"net": {
"type": "object",
"properties": {
"setAt": {
"type": "string",
"format": "datetime"
},
"holding": {
"type": "integer",
"minimum": 0,
"description": "What the net would yield if hauled now. A readout for drawing, not a promise: nothing is banked until it is hauled, and the server works the figure out again at that point."
}
},
"description": "The drift net, when it is in the water. Absent when it is not."
},
"cast": {
"type": "object",
"required": [
"seed",
"streak",
"left",
"index",
"span"
],
"properties": {
"left": {
"type": "integer",
"minimum": 0,
"description": "Strikes the cast has left, landed or missed."
},
"seed": {
"type": "integer",
"description": "What the run's windows are drawn from."
},
"span": {
"type": "number",
"description": "How wide the window is now, at this level and this streak. Worked out by turtle meat, not asked for."
},
"index": {
"type": "integer",
"minimum": 0,
"description": "The earliest placement a strike may still name. Placements only go forward."
},
"streak": {
"type": "integer",
"minimum": 0,
"description": "Strikes landed in a row, which is what narrows the window and quickens the marker."
}
},
"description": "A run of strikes. The seed is what every window of the run is drawn from, and it is turtle meat's, so a client can render the bar without being able to widen it or move the gold sliver."
},
"reef": {
"type": "object",
"required": [
"across",
"shoal"
],
"properties": {
"laid": {
"type": "boolean",
"description": "Whether the shoal has gone down yet. It goes down on the first sweep, clear of it."
},
"over": {
"type": "string",
"description": "How the board ended, or null while it is still being played.",
"knownValues": [
"clear",
"scattered",
"left"
]
},
"shoal": {
"type": "integer",
"description": "How many sea turtles are under it, which the nets in the corner count down."
},
"swept": {
"type": "integer",
"minimum": 0,
"description": "How many patches have been opened."
},
"across": {
"type": "integer",
"description": "How many patches across the board is. It is square."
}
},
"description": "A reef board, as much of it as a player is allowed to know. Where the shoal lies is deliberately absent: a board laid out in the page is a board whose shoal is sitting in memory, and a player who looked would not be guessing at anything."
},
"rest": {
"type": "object",
"properties": {
"reef": {
"type": "string",
"format": "datetime",
"description": "After a reef, however it ended."
},
"strike": {
"type": "string",
"format": "datetime",
"description": "After a run of strikes, however it ended. Null when the water has never been worked."
}
},
"description": "The moments two stretches of water are worth working again. Held as the moment it is up rather than a countdown, so closing the page does not hand the time back."
},
"spot": {
"type": "object",
"required": [
"since"
],
"properties": {
"since": {
"type": "string",
"format": "datetime",
"description": "When this spot appeared."
},
"movesAt": {
"type": "string",
"format": "datetime",
"description": "When it wanders off, drawn from the moment it appeared and nothing else, so that both sides get the same answer without being told it."
}
},
"description": "A fishing spot. Where it is on the water is the page's business; when it leaves is not, because casting at water nobody is standing over has to be refusable."
},
"skill": {
"type": "object",
"required": [
"xp"
],
"properties": {
"xp": {
"type": "integer",
"minimum": 0
}
}
},
"state": {
"type": "object",
"required": [
"did",
"seq",
"proof"
],
"properties": {
"gp": {
"type": "integer",
"minimum": 0,
"description": "Coins. Held here rather than by the client because a shop, an exchange and a player's own claim about what they can afford are the same question."
},
"did": {
"type": "string",
"format": "did"
},
"net": {
"ref": "#net",
"type": "ref"
},
"seq": {
"type": "integer",
"minimum": 0,
"description": "Increases whenever the state changes, and never otherwise. Publishing a receipt whose sequence has already been counted is a no-op rather than an error."
},
"cast": {
"ref": "#cast",
"type": "ref",
"description": "The run of strikes being played, when there is one. Null between casts."
},
"reef": {
"ref": "#reef",
"type": "ref",
"description": "The reef board being played, when there is one. Null between boards."
},
"rest": {
"ref": "#rest",
"type": "ref",
"description": "When the two stretches of water that rest are worth working again."
},
"shop": {
"type": "unknown",
"description": "What each of the shop's shelves is holding right now, keyed by item, for a page that has to draw a counter. A shelf nobody has traded at is absent and sits at its usual quantity."
},
"spot": {
"ref": "#spot",
"type": "ref",
"description": "The fishing spot being stood over, when there is one. Null when there is not."
},
"items": {
"type": "unknown",
"description": "How many of each kind the player is carrying, keyed by item. Which of the inventory's slots a stack sits in is the client's business and is not recorded."
},
"proof": {
"type": "string",
"maxLength": 4096,
"description": "A compact JWS over these figures, signed by turtle meat. Writing it into at.turtleme.player.state is what puts a player on the leaderboard; not writing it is how they stay off."
},
"stats": {
"type": "unknown",
"description": "Lifetime tallies."
},
"market": {
"ref": "#market",
"type": "ref",
"description": "What a sea turtle is going for, as turtle meat last fetched it. Present only on the methods that need a price, and null when none recent enough to trade on could be had."
},
"cooking": {
"ref": "#skill",
"type": "ref"
},
"fishing": {
"ref": "#skill",
"type": "ref"
},
"outcome": {
"type": "unknown",
"description": "What the call just did, in facts rather than sentences: what was caught, bought, cooked or refused. The page puts it into words, because phrasing is not a number anyone else can see. Absent on a read. An outcome carrying `stale: true` means another call settled first and nothing was written; the state beside it is what is actually true."
},
"bankedTurtles": {
"type": "integer",
"minimum": 0,
"description": "Turtles held at the Grand Exchange rather than in the inventory."
}
},
"description": "A player's progress as the server holds it, with a receipt for publishing it. Every method returns this, so that a client always leaves a call holding something it can write to its own repository."
},
"market": {
"type": "object",
"required": [
"high",
"low"
],
"properties": {
"at": {
"type": "string",
"format": "datetime",
"description": "When turtle meat fetched it."
},
"low": {
"type": "integer",
"minimum": 1,
"description": "What sellers are getting, so what a sell offer fills at, before the 2% tax."
},
"high": {
"type": "integer",
"minimum": 1,
"description": "What buyers are paying, so what a buy offer fills at."
},
"stale": {
"type": "boolean",
"description": "True when the price service could not be reached and this is the last quote that arrived. Still traded on, up to a point, because a price from twenty minutes ago is a price."
}
},
"description": "The Grand Exchange quote the server settles against, fetched from the Old School RuneScape Wiki's real-time API rather than taken from the caller. The graph on the page is drawn from the same API directly; this is the number a trade actually happens at."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}