Commit graph

55 commits

Author SHA1 Message Date
MRegnard
f80ab9e68f
Unique night order bubbles for multiple role (#202) 2024-12-04 20:19:21 +00:00
MRegnard
4cdd2d340f
Adding special votes (#198)
Creates a window to choose the type of special vote
- Adding the argument "playerForSpecialVote"
- Updating the history to take account of the special votes
- Allowing all players to vote during special vote
- Adding an option "Special vote" in players' menu
NB: This skull will not be visible while the vote is still open. You need to close the vote first.
If the vote is detected as special, the majority isn't printed

This change affects the Story Teller's mark (for the case of an Atheist-script, where the Story Teller is marked as being on the block).

This mark is now hidden for players if the option "Organ Grinder Vote" is turned on.
2024-12-04 19:55:43 +00:00
Pingumask
13f0506fb5 fix lint 2024-02-05 00:03:38 +00:00
Pingumask
83c9c1f1e3
Merge branch 'develop' into bubbles 2024-02-05 00:01:36 +00:00
MRegnard
a8a7404d4a
Keeping Fabled while clearing roles 2023-11-19 14:42:42 +01:00
Pingumask
080296e0aa 3.17.0 2023-11-10 22:57:42 +00:00
MRegnard
cd32442088
Adding a forgotten change for the new version 2023-09-26 10:05:32 +02:00
MRegnard
3e7ec64c24
Update players.js 2023-07-31 12:09:17 +02:00
Pingumask
3941b87da1 Script selection UI rework 2023-07-30 13:17:36 +00:00
MRegnard
c1f588651b
Changing default vote duration (#71) 2023-06-21 19:57:37 +00:00
MRegnard
12fb45ccaa
Translating "Exile" and "Execution" in french (#82) 2023-06-21 19:36:13 +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
fdb208c03a Localization + French translation 2022-10-27 22:36:19 +02: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
Dave
dedf0be0b9 adding documentation comment to explain new isFromSockets property 2021-03-16 19:47:42 +00:00
Dave
8ea11c8f9e Changing the clearRoles mutator to preserve the player pronouns when clearing all roles as a storyteller. 2021-03-13 09:59:44 +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
2e930e6606 Merge branch 'main' of https://github.com/davotronic5000/townsquare into #43_gender_pronouns 2021-02-28 10:30:44 +00:00
Steffen
ec64584da5 added custom image opt in 2021-02-01 22:33:59 +01:00
Dave
e60def4226 creating an action to store player pronoun in state and persist the data in local storage 2021-01-27 19:41:28 +00:00
Dave
cb45da4de4 add pronoun property to player in state 2021-01-16 23:56:10 +00:00
JulGvoz
3942303f05
Merge branch 'main' into JulGvoz/main 2021-01-09 16:22:18 +02:00
Steffen
be89d51ae6 added vote time 2021-01-07 20:25:12 +01:00
Steffen
1f4a37ab5c clear Fabled when clearing players or roles 2021-01-06 21:58:08 +01:00
Steffen
3545b3a69d fix sessionId handling for URLs 2020-12-25 20:30:31 +01:00
Steffen
1f58f344eb fix nomination history type 2020-12-22 13:25:09 +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
f7eef3f8ea add player role distribution through live session for ST 2020-12-15 22:31:50 +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
40087a3478 added vote pausing
added half-second voting speeds
2020-12-03 21:09:06 +01:00
Steffen
f10ff968a6 finished adding night reminders to fabled 2020-11-30 22:04: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
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
fd75b1771f
fixed jumpy clock hands when someone joins in the middle of a vote (fixes #49) 2020-07-23 10:40:26 +02:00
Steffen
1ce9c08dc3
keep night order for dead players (closes #47) 2020-07-19 21:16:45 +02:00
Steffen
e19aa7a6fe
fix swapping and moving players in live sessions (fixes #46) 2020-07-19 21:11:23 +02:00
Steffen
b986715ee5
sync votes along with gamestate (fixes #35) 2020-06-30 10:16:56 +02:00
Steffen
8b55ae1416
added night order to reference sheet (closes #30) 2020-06-18 12:46:41 +02:00
Steffen
2218b10331
made voting clock speed customizable (closes #27) 2020-06-18 10:00:32 +02:00
Steffen
24d6c4c1f2
allow the ST to set a vote 2020-06-16 10:58:36 +02:00
Steffen
6a37d17aec
vote timer 2020-06-03 23:04:50 +02:00
Steffen
31b4cd5183
added vote buttons 2020-06-03 22:25:23 +02:00
Steffen
c2d142f169
added vote component 2020-05-31 23:42:08 +02:00
Steffen
f42d7dd2be
added seat claiming 2020-05-31 00:18:31 +02:00
Steffen
0f1397c53d
modularized session 2020-05-30 22:47:42 +02:00
Steffen
8cca5ece8d
added player move feature 2020-05-19 15:19:19 +02:00