diff --git a/CHANGELOG.md b/CHANGELOG.md index b4525b6..69a59aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ # Release Notes -### Version 2.9.2 +### Version 2.10.0 +- added [nomination log indicator](https://fontawesome.com/icons/book-dead). When a nomination log [v] is available, the number of currently visible entries is displayed. Clicking the indicator can reveal/hide the nomination log. - fix issue where a player and storyteller updating the same players pronouns at around the same time causes an infinite loop disconnecting the session. +- fix bug with shifting roles when the storyteller deletes a player --- ### Version 2.9.1 -- added [nomination log indicator](https://fontawesome.com/icons/book-dead). When a nomination log [v] is available, the number of currently visible entries is displayed. Clicking the indicator can reveal/hide the nomination log. - fix gamestate JSON not showing (custom) roles and failing to load states with custom scripts properly - fix gamestate not stripping out special characters from role.id on load - made character assignment modal a bit prettier diff --git a/src/components/Player.vue b/src/components/Player.vue index 5dab5f1..6ee7c4e 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -111,6 +111,15 @@ diff --git a/src/store/socket.js b/src/store/socket.js index 326bb8d..1b898e8 100644 --- a/src/store/socket.js +++ b/src/store/socket.js @@ -164,6 +164,10 @@ class LiveSession { if (!this._isSpectator) return; this._store.commit("players/move", params); break; + case "remove": + if (!this._isSpectator) return; + this._store.commit("players/remove", params); + break; case "isNight": if (!this._isSpectator) return; this._store.commit("toggleNight", params); @@ -784,6 +788,15 @@ class LiveSession { if (this._isSpectator) return; this._send("move", payload); } + + /** + * Remove a player. ST only + * @param payload + */ + removePlayer(payload) { + if (this._isSpectator) return; + this._send("remove", payload); + } } export default store => { @@ -842,9 +855,11 @@ export default store => { case "players/move": session.movePlayer(payload); break; + case "players/remove": + session.removePlayer(payload); + break; case "players/set": case "players/clear": - case "players/remove": case "players/add": session.sendGamestate("", true); break;