at.turtleme.game.defs
Schema Diff
+48 -9
Compatibility Analysis
Breaking Changes Detected
11 breaking changes, 9 non-breaking changes.
Breaking Changes (11)
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.dir", kind: "prop", name: Some("dir") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.index", kind: "prop", name: Some("index") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.at", kind: "prop", name: Some("at") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.since", kind: "prop", name: Some("since") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.elapsed", kind: "prop", name: Some("elapsed") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.level", kind: "prop", name: Some("level") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.mark", kind: "prop", name: Some("mark") }
- RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.span", kind: "prop", name: Some("span") }
- RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.index", kind: "prop", name: Some("index") }
- RemovedVertex RemovedVertex { vertex_id: "at.turtleme.game.defs#cast.index" }
- RemovedVertex RemovedVertex { vertex_id: "at.turtleme.game.defs#cast.span" }
Non-Breaking Changes (9)
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#cast.elapsed" }
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#cast.level" }
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#cast.mark" }
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#mark" }
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#mark.at" }
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#mark.dir" }
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#mark.index" }
- AddedVertex AddedVertex { vertex_id: "at.turtleme.game.defs#mark.since" }
- AddedEdge AddedEdge { src: "at.turtleme.game.defs#cast.mark", tgt: "at.turtleme.game.defs#mark", kind: "ref", name: None }
Migration Guidance
Removed Elements
RemovedVertex { vertex_id: "at.turtleme.game.defs#cast.index" }RemovedVertex { vertex_id: "at.turtleme.game.defs#cast.span" }
Added Elements
AddedVertex { vertex_id: "at.turtleme.game.defs#cast.elapsed" }AddedVertex { vertex_id: "at.turtleme.game.defs#cast.level" }AddedVertex { vertex_id: "at.turtleme.game.defs#cast.mark" }AddedVertex { vertex_id: "at.turtleme.game.defs#mark" }AddedVertex { vertex_id: "at.turtleme.game.defs#mark.at" }AddedVertex { vertex_id: "at.turtleme.game.defs#mark.dir" }AddedVertex { vertex_id: "at.turtleme.game.defs#mark.index" }AddedVertex { vertex_id: "at.turtleme.game.defs#mark.since" }
Additional Notes
- Breaking: RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.dir", kind: "prop", name: Some("dir") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.index", kind: "prop", name: Some("index") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.at", kind: "prop", name: Some("at") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#mark", src: "at.turtleme.game.defs#mark", tgt: "at.turtleme.game.defs#mark.since", kind: "prop", name: Some("since") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.elapsed", kind: "prop", name: Some("elapsed") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.level", kind: "prop", name: Some("level") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.mark", kind: "prop", name: Some("mark") }
- Breaking: RequiredEdgeRemoved { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.span", kind: "prop", name: Some("span") }
- Breaking: RequiredEdgeRemoved { vertex_id: "at.turtleme.game.defs#cast", src: "at.turtleme.game.defs#cast", tgt: "at.turtleme.game.defs#cast.index", kind: "prop", name: Some("index") }
- Non-breaking: AddedEdge { src: "at.turtleme.game.defs#cast.mark", tgt: "at.turtleme.game.defs#mark", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"cast": {
5
-
"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.",
5
+
"description": "A run of strikes. The seed every window is drawn from, the level the run opened at and the marker's state are all turtle meat's, so a client can draw the bar to the millisecond without being able to widen it, slow it or move the gold sliver.",
6
6
"properties": {
7
-
"index": {
8
-
"description": "The earliest placement a strike may still name. Placements only go forward.",
7
+
"elapsed": {
8
+
"description": "How far into the run this reply reckons it is. A client sets its own clock from it, so the offset it reports for a strike is measured against the run turtle meat is timing.",
9
9
"minimum": 0,
10
10
"type": "integer"
11
11
},
12
12
"left": {
13
13
"description": "Strikes the cast has left, landed or missed.",
14
14
"minimum": 0,
15
15
"type": "integer"
16
16
},
17
+
"level": {
18
+
"description": "The Fishing level the cast opened at, which with the streak gives the width of the window and the pace of the marker. Held for the run, so a level gained mid-cast does not widen the bar under the player.",
19
+
"maximum": 99,
20
+
"minimum": 0,
21
+
"type": "integer"
22
+
},
23
+
"mark": {
24
+
"ref": "at.turtleme.game.defs#mark",
25
+
"type": "ref"
26
+
},
17
27
"seed": {
18
28
"description": "What the run's windows are drawn from.",
19
29
"type": "integer"
20
30
},
21
-
"span": {
22
-
"description": "How wide the window is now, at this level and this streak. Worked out by turtle meat, not asked for.",
23
-
"type": "number"
24
-
},
25
31
"streak": {
26
32
"description": "Strikes landed in a row, which is what narrows the window and quickens the marker.",
27
33
"minimum": 0,
28
34
"type": "integer"
29
35
}
30
36
},
31
37
"required": [
32
38
"seed",
39
+
"level",
33
40
"streak",
34
41
"left",
35
-
"index",
36
-
"span"
42
+
"mark",
43
+
"elapsed"
44
+
],
45
+
"type": "object"
46
+
},
47
+
"mark": {
48
+
"description": "Where the marker was left after the last strike, and which window that laid down. With the run's seed, level and streak it is the whole bar: where the marker is at any later moment of the run follows from it and the clock, which is how a client and turtle meat draw and judge the same bar without describing it to one another.",
49
+
"properties": {
50
+
"at": {
51
+
"description": "Where across the bar the marker was left, as a percentage of it.",
52
+
"maximum": 100,
53
+
"minimum": 0,
54
+
"type": "number"
55
+
},
56
+
"dir": {
57
+
"description": "Which way it is travelling: 1 towards the right end, -1 towards the left.",
58
+
"type": "integer"
59
+
},
60
+
"index": {
61
+
"description": "Which placement of the run's windows is on the bar. A turn at either end lays down the next one.",
62
+
"minimum": 0,
63
+
"type": "integer"
64
+
},
65
+
"since": {
66
+
"description": "The moment of the run, in milliseconds, at which it started moving again. Until then it is held still for the splash to play over, and a strike thrown before it is refused.",
67
+
"minimum": 0,
68
+
"type": "integer"
69
+
}
70
+
},
71
+
"required": [
72
+
"at",
73
+
"dir",
74
+
"since",
75
+
"index"
37
76
],
38
77
"type": "object"
39
78
},
40
79
"market": {
41
80
"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.",
42
81
"properties": {
43
82
"at": {
44
83
"description": "When turtle meat fetched it.",
45
84
"format": "datetime",
46
85
"type": "string"
47
86
},
48
87
"high": {
49
88
"description": "What buyers are paying, so what a buy offer fills at.",
50
89
"minimum": 1,
51
90
"type": "integer"
52
91
},
53
92
"low": {
54
93
"description": "What sellers are getting, so what a sell offer fills at, before the 2% tax.",
55
94
"minimum": 1,
56
95
"type": "integer"
57
96
},
58
97
"stale": {
59
98
"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.",
60
99
"type": "boolean"
61
100
}
62
101
},
63
102
"required": [
64
103
"high",
65
104
"low"
66
105
],
67
106
"type": "object"
68
107
},
69
108
"net": {
70
109
"description": "The drift net, when it is in the water. Absent when it is not.",
71
110
"properties": {
72
111
"holding": {
73
112
"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.",
74
113
"minimum": 0,
75
114
"type": "integer"
76
115
},
77
116
"setAt": {
78
117
"format": "datetime",
79
118
"type": "string"
80
119
}
81
120
},
82
121
"type": "object"
83
122
},
84
123
"reef": {
85
124
"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.",
86
125
"properties": {
87
126
"across": {
88
127
"description": "How many patches across the board is. It is square.",
89
128
"type": "integer"
90
129
},
91
130
"laid": {
92
131
"description": "Whether the shoal has gone down yet. It goes down on the first sweep, clear of it.",
93
132
"type": "boolean"
94
133
},
95
134
"over": {
96
135
"description": "How the board ended, or null while it is still being played.",
97
136
"knownValues": [
98
137
"clear",
99
138
"scattered",
100
139
"left"
101
140
],
102
141
"type": "string"
103
142
},
104
143
"shoal": {
105
144
"description": "How many sea turtles are under it, which the nets in the corner count down.",
106
145
"type": "integer"
107
146
},
108
147
"swept": {
109
148
"description": "How many patches have been opened.",
110
149
"minimum": 0,
111
150
"type": "integer"
112
151
}
113
152
},
114
153
"required": [
115
154
"across",
116
155
"shoal"
117
156
],
118
157
"type": "object"
119
158
},
120
159
"rest": {
121
160
"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.",
122
161
"properties": {
123
162
"reef": {
124
163
"description": "After a reef, however it ended.",
125
164
"format": "datetime",
126
165
"type": "string"
127
166
},
128
167
"strike": {
129
168
"description": "After a run of strikes, however it ended. Null when the water has never been worked.",
130
169
"format": "datetime",
131
170
"type": "string"
132
171
}
133
172
},
134
173
"type": "object"
135
174
},
136
175
"skill": {
137
176
"properties": {
138
177
"xp": {
139
178
"minimum": 0,
140
179
"type": "integer"
141
180
}
142
181
},
143
182
"required": [
144
183
"xp"
145
184
],
146
185
"type": "object"
147
186
},
148
187
"spot": {
149
188
"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.",
150
189
"properties": {
151
190
"movesAt": {
152
191
"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.",
153
192
"format": "datetime",
154
193
"type": "string"
155
194
},
156
195
"since": {
157
196
"description": "When this spot appeared.",
158
197
"format": "datetime",
159
198
"type": "string"
160
199
}
161
200
},
162
201
"required": [
163
202
"since"
164
203
],
165
204
"type": "object"
166
205
},
167
206
"state": {
168
207
"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.",
169
208
"properties": {
170
209
"bankedTurtles": {
171
210
"description": "Turtles held at the Grand Exchange rather than in the inventory.",
172
211
"minimum": 0,
173
212
"type": "integer"
174
213
},
175
214
"cast": {
176
215
"description": "The run of strikes being played, when there is one. Null between casts.",
177
216
"ref": "#cast",
178
217
"type": "ref"
179
218
},
180
219
"cooking": {
181
220
"ref": "#skill",
182
221
"type": "ref"
183
222
},
184
223
"did": {
185
224
"format": "did",
186
225
"type": "string"
187
226
},
188
227
"fishing": {
189
228
"ref": "#skill",
190
229
"type": "ref"
191
230
},
192
231
"gp": {
193
232
"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.",
194
233
"minimum": 0,
195
234
"type": "integer"
196
235
},
197
236
"items": {
198
237
"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.",
199
238
"type": "unknown"
200
239
},
201
240
"market": {
202
241
"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.",
203
242
"ref": "#market",
204
243
"type": "ref"
205
244
},
206
245
"net": {
207
246
"ref": "#net",
208
247
"type": "ref"
209
248
},
210
249
"outcome": {
211
250
"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.",
212
251
"type": "unknown"
213
252
},
214
253
"proof": {
215
254
"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.",
216
255
"maxLength": 4096,
217
256
"type": "string"
218
257
},
219
258
"reef": {
220
259
"description": "The reef board being played, when there is one. Null between boards.",
221
260
"ref": "#reef",
222
261
"type": "ref"
223
262
},
224
263
"rest": {
225
264
"description": "When the two stretches of water that rest are worth working again.",
226
265
"ref": "#rest",
227
266
"type": "ref"
228
267
},
229
268
"seq": {
230
269
"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.",
231
270
"minimum": 0,
232
271
"type": "integer"
233
272
},
234
273
"shop": {
235
274
"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.",
236
275
"type": "unknown"
237
276
},
238
277
"spot": {
239
278
"description": "The fishing spot being stood over, when there is one. Null when there is not.",
240
279
"ref": "#spot",
241
280
"type": "ref"
242
281
},
243
282
"stats": {
244
283
"description": "Lifetime tallies.",
245
284
"type": "unknown"
246
285
}
247
286
},
248
287
"required": [
249
288
"did",
250
289
"seq",
251
290
"proof"
252
291
],
253
292
"type": "object"
254
293
}
255
294
},
256
295
"id": "at.turtleme.game.defs",
257
296
"lexicon": 1
258
297
}