-
Hi! I was trying to have an alternative night order for the editions TB, SnV and BMR, to follow the official order. To do this, in I tried to change So, how can I access to the state from player.js? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey MRegnard, |
Beta Was this translation helpful? Give feedback.
Hey MRegnard,
in order to access the rootState from within a module getter, you need to pass the correct parameters: https://stackoverflow.com/a/42171854/1552315
The third one would be the rootState, or in your case:
nightOrder({ players, fabled }, getters, { edition })