Merge pull request #248 from bra1n/develop

2.15.3
This commit is contained in:
Steffen 2022-02-20 20:10:08 +01:00 committed by GitHub
commit 81a30176a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 190 additions and 11799 deletions

View File

@ -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

11975
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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": {

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) {