You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to have an alternative night order for the editions TB, SnV and BMR, to follow the official order.
For example, in the official TB's order, the Spy wakes before the Imp, instead of being the last one to wake (this allows them to see the Grimoire a last time before a starpass).
To do this, in player.js, and more specifically in nightOrder, I need to access to the "state" to check the value of state.edition.isOfficial.
I tried to change nightOrder({ players, fabled }) into nightOrder(state, { players, fabled }), but this didn't work. I suppose I did it wrongly and there is another syntax.
So, how can I access to the state from player.js?
Thanks in advance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I was trying to have an alternative night order for the editions TB, SnV and BMR, to follow the official order.
For example, in the official TB's order, the Spy wakes before the Imp, instead of being the last one to wake (this allows them to see the Grimoire a last time before a starpass).
To do this, in
player.js
, and more specifically innightOrder
, I need to access to the "state" to check the value ofstate.edition.isOfficial
.I tried to change
nightOrder({ players, fabled })
intonightOrder(state, { players, fabled })
, but this didn't work. I suppose I did it wrongly and there is another syntax.So, how can I access to the state from player.js?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions