mirror of https://github.com/bra1n/townsquare.git
gamestate bug fixed and nightwatchman deploy
This commit is contained in:
parent
4cbab79bae
commit
b9ae60c652
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue