mirror of https://github.com/bra1n/townsquare.git
commit
81a30176a6
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
### 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
|
||||||
|
- fixed game state JSON not handling custom Fabled correctly
|
||||||
|
|
||||||
### Version 2.15.2
|
### Version 2.15.2
|
||||||
- added mobile web application support
|
- added mobile web application support
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "townsquare",
|
"name": "townsquare",
|
||||||
"version": "2.15.2",
|
"version": "2.15.3",
|
||||||
"description": "Blood on the Clocktower Town Square",
|
"description": "Blood on the Clocktower Town Square",
|
||||||
"author": "Steffen Baumgart",
|
"author": "Steffen Baumgart",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -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