mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	gamestate bug fixed and nightwatchman deploy
This commit is contained in:
		
							parent
							
								
									4cbab79bae
								
							
						
					
					
						commit
						b9ae60c652
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		
		Reference in a new issue