Commit graph

69 commits

Author SHA1 Message Date
Pingumask
080296e0aa 3.17.0 2023-11-10 22:57:42 +00:00
pingumask
c721637d90 Fix linter issues 2023-05-09 17:43:00 +00:00
MRegnard
3e859a8850
Adding the Organ Grinder (#42)
* Adding Organ Grinder's icon

* Adding Organ Grinder's English description

* Adding Organ Grinder's French Description

* Adding Organ Grinder's English Jinxes

* Adding Organ Grinder's French Jinxes

* Correcting a typo

* Correcting a typo

* Adding a new icon

* Temporary change to test presence of new icon

* Adding some texts

They will be useful later

* Adding some texts, useful later

* Adding print in History for hidden vote

* Correcting history's print

* Adding new token for Organ Grinder

* New token for Organ Grinder

* Adding new (boolean) parameter for hidden vote

* Adding a new option in the menue

Without effect for now

* Cancelling previous update

* Adding new option in the menue

For now, without the bad effect

* Test: is the variable "isOrganGrinder" detected?

* The option in the menue can now change a variable

* Updating the saving of vote history

Taking account the possibility of Organ Grinder

* Correcting the previous commit

Deleting an unexpected "locale"

* Testing new way

Because of its folder, this file doesn't have access to the grimoire. I test now to give the boolean "organVote" as a parameter.

* Testing giving "organGrinder" as a parameter

* Testing to find the "grimoire" variable

* Adding a print for debbug

* Deleting the console.log, but adding a new test

* Test to know if the bool variable is seen

* End of test, get back to the normal type

* Test

* Cancelling all changes in Vote.vue

* Trying to access to the grimoire with an import

* Testing again to import grimoire

* Testing to print organGrinder

* Gone back to the first changes

Now, we just have to know where is the grimoire, for the import

* Test for access to the grimoire

* New test to find the grimoire

* Trying to import 'state' instead of 'grimoire'

* maybe the import is useless

* Trying what happens if organGrinder=true

* Trying access to index.js/state without conflict

* Update session.js

* Update session.js

* Update session.js

* Correcting typo

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Final version of this file

* Updating a sentence in singular

* Correcting Organ Grinder's ability

The Organ Grinder's ability is not active for exiles.

* Hiding the number of votes if Organ Grinder

* Trying new bool, maybe better that "isStoryTeller"

* Update Vote.vue

* Update Vote.vue

* Just for a test

* Update Vote.vue

* It's just for a test

* Cancelling all changes, I'll see it later

* Updating to take account isOrganGrinderVoteMode

* Allowing Story Teller to see history

(even if there is an Organ Grinder)

* Correcting ?:

An "else" condition is necessary.

* Trying to correct the error with new parenthesis

* Hidding the number of hands up during vote

Only for players, and only if there is an Organ Grinder

* Test for hide vote

* Update Player.vue

* Cancelling changes

* Test for icons

* New test to confirm the "v-if" is detected

* New test

* Trying to add the "?"

* Testing adding some new elements to print the "?"

* Finishing the print of "?"

The print wasn't printed for other players before the vote lock.

* Corecting a careless mistake

* Finalising the hidden votes

- Correcting the conditions (the previous ones was for tests
- Changing the colour of "?"

* Adding a new colour

* Removing the previous (and without effect) change

* Adding a new colour
2023-05-09 17:32:02 +00:00
Pingumask
d59cef24d3 storyteller tools 2022-11-06 17:48:18 +01:00
pingumask
738d2c42ff add "Ring bell" for Strory teller 2022-10-27 22:37:06 +02:00
Steffen
350d2a5a18
fixed local server (closes #240) 2022-01-25 12:25:48 +01:00
Steffen
300395de08
v2.13.0 (#168)
* add support for custom fabled (closes #110)

* 2.13.0

* show custom fabled first

* add recordVoteHistory & clearVoteHistory to session menu

* Update CHANGELOG.md

* socket part of toggle recordVoteHistory

analogous to isNight

* remove accidental

* Add files via upload

* add custom fabled

* Add option to reduce night animations to save power.

* add fallback icon for fabled

* changelog

* disable all animations now

* linter

* add 'on the block' indicator

- after vote, ST chooses to put onto block / empty block / no change to block
- player menu has add / remove from block
- players are automatically removed from the block when (i) they die (ii) another player is put onto block
- fixed crash on add/remove/etc player mid vote

* hide rounded corners on maximized modals

(barely visible anyway)

* ST always sees vote history

i.e. toggle affects only players

* empty block at night

* avoid clashing with seat icon

* nlc: toggle within session.js

* lint

* minor

* Use proper "Exile" terminology for exile

* Add info about "Banishment"->"Exile" to CHANGELOG

* requested changes

* remove direct ST control of block

* player menu order

* move block/night logic from socket to menu

* minor fix to previous

* on block -> marked

* requested changes

* requested change

Co-authored-by: Steffen <steffen@baumgart.biz>

* fix players being moved or removed during a nomination (closes #164)
add vue linter

* let's try adding a lint error

* linter adjusted

* it's working!

* requested change

record marked player id in session

* feedback implemented
npm audit

* prepare develop branch

* adjust linter config

* revert version bump

* fixes & visuals

* Update CHANGELOG.md

* restore old lint command (fixes #170)

* minor fix default

* show jinxed interactions on character reference modal

* 2.13.0

* changelog

Co-authored-by: nicfreeman1209 <nicfreeman1209@gmail.com>
Co-authored-by: nicfreeman1209 <14160941+nicfreeman1209@users.noreply.github.com>
Co-authored-by: Adrian Irving-Beer <wisq@wisq.net>
Co-authored-by: Andrew Conant <emptierset@gmail.com>
2021-05-15 20:07:54 +02:00
Steffen
5171996b39
bugfixes and improved session joining 2021-03-30 21:34:09 +02:00
Steffen
da3a13518b
fix shifting player bug on delete (fixes #135) 2021-03-19 20:09:13 +01:00
Dave
8b4f09a2c4 correcting fromSockets property to be isFromSockets 2021-03-16 19:46:52 +00:00
Dave
6ad1df5a35 updated the send and update sockets methods for player pronouns to pass through a flag when the pronoun is updated from the sockets to stop the update being broadcast again and causing infinite loops of sockets messages being sent. This also simplifys from the previous loop prevention functionality. 2021-03-16 15:14:51 +00:00
Steffen
a90ca50f7a
a big bunch of other bugfixes 2021-03-14 20:42:39 +01:00
Dave
992841a45b cleaning up methods added for sending and receiveing changed pronouns in sockets.js 2021-03-02 19:16:46 +00:00
Dave
6ad516588c updated sockets send and recieve logic for pronouns to allow ST to update players pronouns and block infinite loops between a seated player and ST updates 2021-02-28 16:08:31 +00:00
Dave
ecb205e027 cleaning up vueX code to reuse existing player update methods, and add form flow logic to block infinite loops 2021-02-28 13:17:40 +00:00
Dave
769c891a67 correcting pronoun to pronouns in all occurances 2021-02-28 11:23:16 +00:00
Dave
0ffde84188 adding code doc comments to the sendPlayerPronoun method 2021-02-28 11:00:41 +00:00
Dave
2e930e6606 Merge branch 'main' of https://github.com/davotronic5000/townsquare into #43_gender_pronouns 2021-02-28 10:30:44 +00:00
Steffen
fac108d12c fix missing role alert 2021-02-18 17:22:46 +01:00
Steffen
d409186ff1 re-enabled custom role support 2021-02-03 22:12:38 +01:00
Steffen
4d33e7dda9 optimized ping and gamestate messages 2021-01-29 21:54:27 +01:00
Steffen
ea0e6d2d72 ping changed to direct message 2021-01-27 22:05:32 +01:00
Dave
60fab2efe0 adding code to transmit changes to player pronoun 2021-01-27 20:33:38 +00:00
Dave
d74a9f2d76 Merge branch 'main' of https://github.com/davotronic5000/townsquare into #43_gender_pronouns 2021-01-25 22:22:23 +00:00
Steffen
83726b1435 fix setting player roles to one that is not on the current script (fixes #95) 2021-01-22 22:05:16 +01:00
Dave
48eab1fa8c getting player pronouns to be synced over sockets layer 2021-01-18 14:02:03 +00:00
Steffen
6d8409d0f0 another fix for host session spam 2020-12-25 14:09:05 +01:00
Steffen
284f9054ba 2 session related fixes 2020-12-24 20:09:56 +01:00
Steffen
0090b33e94 server / sesison fixes 2020-12-24 15:38:28 +01:00
Steffen
984c02980c close session when missing custom roles 2020-12-23 21:07:35 +01:00
Steffen
e2d7fa64f2 added more metrics 2020-12-23 20:49:52 +01:00
Steffen
125d5a9510 clearing vote history as ST clears it for everyone
fixed role distribution bug
2020-12-22 11:32:00 +01:00
Steffen
297181ebe8 added changelog and updated socket endpoint 2020-12-21 21:26:36 +01:00
Steffen
bbb95a6373 finished custom script meta info 2020-12-20 22:01:56 +01:00
Steffen
398fe89bb7 refactored edition handling to support custom script metadata 2020-12-19 22:15:42 +01:00
Steffen
f7eef3f8ea add player role distribution through live session for ST 2020-12-15 22:31:50 +01:00
Steffen
53d608288d only empty seats can be claimed by players and ST can clear seats now 2020-12-15 15:59:43 +01:00
Steffen
7c0f31584c simplify session URLs 2020-12-14 21:49:40 +01:00
Steffen
c31d264c7f finished gamestate export & import (closes #58) 2020-12-13 21:50:44 +01:00
Steffen
200c7f9b7d custom roles are no longer synced in live games due to traffic and security concerns (closes #60) 2020-12-10 22:30:34 +01:00
Steffen
faf378dca3 only sync player data when changing player related things 2020-12-07 21:41:56 +01:00
Steffen
15ced66b42 add vote history 2020-12-06 22:27:52 +01:00
Steffen
dcff59a183 added vote countdown & alert 2020-12-05 22:24:55 +01:00
Steffen
a37add61d9 added night phase switch 2020-12-02 20:39:12 +01:00
Steffen
f915a1a7f8 added fabled to session gamestate object 2020-12-01 22:42:21 +01:00
Steffen
02d7002e34 moved fabled to player store
cleaned up some things around fabled night reminders
added fabled to night sheet
2020-11-29 22:17:02 +01:00
Steffen
b047fafda1 fix small issue with latency calculation 2020-09-22 09:10:35 +02:00
Steffen
0b5d9c5865 moved latency calculation server-side
made host per channel exclusive
added auto-reconnection
2020-09-21 11:24:36 +02:00
Steffen
1409bea1f3 fixed voting race condition
added session ping
cleaned up vote text
2020-09-16 11:39:36 +02:00
Steffen
a8a87a1e38
adjusted custom scripts with fabled support
added session handling for fabled
2020-08-09 22:02:02 +02:00