gamestate bug fixed and nightwatchman deploy

This commit is contained in:
Steffen 2022-02-20 20:05:01 +01:00
parent 4cbab79bae
commit b9ae60c652
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# Release Notes # Release Notes
### Version 2.15.4
- fixed game state JSON not handling custom Fabled correctly
- fixed Nightwatchman
### Version 2.15.3 ### Version 2.15.3
- add Huntsman/Damsel, Noble, Al-Hadikhia, Golem, Fearmonger, Puzzlemaster, Alchemist, Engineer, Riot, Psychopath, Atheist, Nightwatchman to list of available characters - add Huntsman/Damsel, Noble, Al-Hadikhia, Golem, Fearmonger, Puzzlemaster, Alchemist, Engineer, Riot, Psychopath, Atheist, Nightwatchman to list of available characters

View File

@ -40,7 +40,9 @@ export default {
roles: this.edition.isOfficial roles: this.edition.isOfficial
? "" ? ""
: this.$store.getters.customRolesStripped, : this.$store.getters.customRolesStripped,
fabled: this.players.fabled.map(({ id }) => id), fabled: this.players.fabled.map(fabled =>
fabled.isCustom ? fabled : { id: fabled.id }
),
players: this.players.players.map(player => ({ players: this.players.players.map(player => ({
...player, ...player,
role: player.role.id || {} role: player.role.id || {}
@ -79,7 +81,12 @@ export default {
} }
if (fabled) { if (fabled) {
this.$store.commit("players/setFabled", { this.$store.commit("players/setFabled", {
fabled: fabled.map(id => this.$store.state.fabled.get(id)) fabled: fabled.map(
f =>
this.$store.state.fabled.get(f) ||
this.$store.state.fabled.get(f.id) ||
f
)
}); });
} }
if (players) { if (players) {