Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Send items_handling flag with connect packet, bump version to 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LegendaryLinux committed Jan 23, 2022
1 parent 03028d6 commit 22f8c24
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions assets/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
const CLIENT_VERSION = {
state: 'Beta',
major: 0,
minor: 10,
patch: 6,
minor: 11,
patch: 0,
};

const ARCHIPELAGO_PROTOCOL_VERSION = {
major: 0,
minor: 2,
build: 2,
build: 4,
class: 'Version',
};

Expand Down
2 changes: 2 additions & 0 deletions games/A Link to the Past/A Link to the Past.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class GameInstance {
tags: tags,
password: serverPassword,
version: ARCHIPELAGO_PROTOCOL_VERSION,
items_handling: 0b001,
};
serverSocket.send(JSON.stringify([connectionData]));
};
Expand Down Expand Up @@ -186,6 +187,7 @@ class GameInstance {
if (this.itemsReceived.find((ir) =>
ir.item === item.item && ir.location === item.location && ir.player === item.player
)) { return; }

this.itemsReceived.push(item);
});
};
Expand Down
1 change: 1 addition & 0 deletions games/Example Game/GameInstance.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class GameInstance {
tags: tags,
password: serverPassword,
version: ARCHIPELAGO_PROTOCOL_VERSION,
items_handling: 0b001,
};
serverSocket.send(JSON.stringify([connectionData]));
};
Expand Down
1 change: 1 addition & 0 deletions games/Super Metroid/Super Metroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class GameInstance {
tags: tags,
password: serverPassword,
version: ARCHIPELAGO_PROTOCOL_VERSION,
items_handling: 0b001,
};
serverSocket.send(JSON.stringify([connectionData]));
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "super-nintendo-client",
"version": "0.10.6",
"version": "0.11.0",
"author": "Chris Wilson",
"description": "A Super Nintendo Client designed to allow multiple games to connect to an Archipelago server.",
"license": "MIT",
Expand Down

0 comments on commit 22f8c24

Please sign in to comment.