@gameslate/sdk 0.3.15 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/game-support.js +3 -2
- package/package.json +1 -1
package/lib/game-support.js
CHANGED
|
@@ -120,11 +120,12 @@ export function parseGameSupportReadme(markdown) {
|
|
|
120
120
|
}
|
|
121
121
|
function checkMapAgainstCode(support, ctx, problems) {
|
|
122
122
|
const hasMapCap = ctx.sources.some(s => s.capabilities.includes('map_2d'));
|
|
123
|
-
|
|
123
|
+
const drawn = support.map.status === 'done' || support.map.status === 'partial';
|
|
124
|
+
if (drawn && !hasMapCap) {
|
|
124
125
|
problems.push(`map.status is "${support.map.status}" but no source declares map_2d`);
|
|
125
126
|
}
|
|
126
127
|
/* "partial" means some map is drawn: a live position alone leaves the game owed a map */
|
|
127
|
-
if (
|
|
128
|
+
if (drawn && support.map.geometry === 'none') {
|
|
128
129
|
problems.push(`map.status is "${support.map.status}" but map.geometry is "none": nothing is drawn, so it stays "open"`);
|
|
129
130
|
}
|
|
130
131
|
if (support.map.status === 'open' && hasMapCap) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gameslate/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"description": "Build plugins for GameSlate, the second-screen companion for PC games: the plugin contract, game-state and catalogue schemas, and the plugin builder.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|