Merge branch 'dev' into main
This commit is contained in:
		
						commit
						4fe7d09a8e
					
				
							
								
								
									
										2
									
								
								.github/workflows/dev-image.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/dev-image.yml
									
									
									
									
										vendored
									
									
								
							| @ -15,7 +15,7 @@ jobs: | |||||||
|         uses: crazy-max/ghaction-docker-buildx@v3 |         uses: crazy-max/ghaction-docker-buildx@v3 | ||||||
|       - |       - | ||||||
|         name: Cache Docker layers |         name: Cache Docker layers | ||||||
|         uses: actions/cache@v2 |         uses: actions/cache@v3 | ||||||
|         id: cache |         id: cache | ||||||
|         with: |         with: | ||||||
|           path: /tmp/.buildx-cache |           path: /tmp/.buildx-cache | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.github/workflows/docker-image.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/docker-image.yml
									
									
									
									
										vendored
									
									
								
							| @ -15,7 +15,7 @@ jobs: | |||||||
|         uses: crazy-max/ghaction-docker-buildx@v3 |         uses: crazy-max/ghaction-docker-buildx@v3 | ||||||
|       - |       - | ||||||
|         name: Cache Docker layers |         name: Cache Docker layers | ||||||
|         uses: actions/cache@v2 |         uses: actions/cache@v3 | ||||||
|         id: cache |         id: cache | ||||||
|         with: |         with: | ||||||
|           path: /tmp/.buildx-cache |           path: /tmp/.buildx-cache | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.github/workflows/tests.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/tests.yaml
									
									
									
									
										vendored
									
									
								
							| @ -14,7 +14,7 @@ jobs: | |||||||
|         uses: crazy-max/ghaction-docker-buildx@v3 |         uses: crazy-max/ghaction-docker-buildx@v3 | ||||||
|       - |       - | ||||||
|         name: Cache Docker layers |         name: Cache Docker layers | ||||||
|         uses: actions/cache@v2 |         uses: actions/cache@v3 | ||||||
|         id: cache |         id: cache | ||||||
|         with: |         with: | ||||||
|           path: /tmp/.buildx-cache |           path: /tmp/.buildx-cache | ||||||
|  | |||||||
| @ -398,18 +398,18 @@ class Game: | |||||||
|             if did_lose: |             if did_lose: | ||||||
|                 target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] |                 target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] | ||||||
|                 print(f'{self.name}: stop roulette') |                 print(f'{self.name}: stop roulette') | ||||||
|                 target_pl.lives -= 1 |                 target_pl.lives -= 2 | ||||||
|                 if len([c for c in target_pl.equipment if isinstance(c, grc.Talismano)]) > 0: |                 target_pl.heal_if_needed() | ||||||
|  |                 if len([c for c in target_pl.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0: | ||||||
|                     target_pl.gold_nuggets += 1 |                     target_pl.gold_nuggets += 1 | ||||||
|                 if target_pl.character.check(self, grch.SimeonPicos): |                 if target_pl.character.check(self, grch.SimeonPicos): | ||||||
|                     target_pl.gold_nuggets += 1 |                     target_pl.gold_nuggets += 1 | ||||||
|                 if len([c for c in target_pl.equipment if isinstance(c, grc.Stivali)]) > 0: |                 if len([c for c in target_pl.gold_rush_equipment if isinstance(c, grc.Stivali)]) > 0: | ||||||
|                     target_pl.hand.append(self.deck.draw(True)) |                     target_pl.hand.append(self.deck.draw(True)) | ||||||
|                 target_pl.notify_self() |                 target_pl.notify_self() | ||||||
|                 self.is_russian_roulette_on = False |                 self.is_russian_roulette_on = False | ||||||
|                 self.players[self.turn].play_turn() |                 self.players[self.turn].play_turn() | ||||||
|             else: |             else: | ||||||
|                 self.player_bangs += 1 |  | ||||||
|                 target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] |                 target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] | ||||||
|                 print(f'{self.name}: next in line {target_pl.name}') |                 print(f'{self.name}: next in line {target_pl.name}') | ||||||
|                 if target_pl.get_banged(self.deck.event_cards[0]): |                 if target_pl.get_banged(self.deck.event_cards[0]): | ||||||
|  | |||||||
| @ -166,7 +166,6 @@ class Player: | |||||||
|             },{ |             },{ | ||||||
|                 'icon': '⚫', |                 'icon': '⚫', | ||||||
|                 'noDesc': True |                 'noDesc': True | ||||||
| 
 |  | ||||||
|             }] |             }] | ||||||
|             self.is_drawing = True |             self.is_drawing = True | ||||||
|             self.choose_text = 'choose_guess' |             self.choose_text = 'choose_guess' | ||||||
|  | |||||||
| @ -5,6 +5,6 @@ greenlet==1.1.2 | |||||||
| python-engineio==3.14.2 | python-engineio==3.14.2 | ||||||
| python-socketio==4.6.1 | python-socketio==4.6.1 | ||||||
| six==1.16.0 | six==1.16.0 | ||||||
| pytest==7.1.0 | pytest==7.1.1 | ||||||
| requests==2.27.1 | requests==2.27.1 | ||||||
| discord-webhook==0.15.0 | discord-webhook==0.15.0 | ||||||
| @ -316,9 +316,16 @@ export default { | |||||||
| 			this.hasToChoose = true | 			this.hasToChoose = true | ||||||
| 		}, | 		}, | ||||||
| 		chooseCard(card) { | 		chooseCard(card) { | ||||||
| 			this.$socket.emit('choose', this.chooseCards.indexOf(card)) | 			let index = this.chooseCards.indexOf(card) | ||||||
|  | 			if (!this.debug_mode) { | ||||||
|  | 				let pl = this.players.filter(x=>x.name === this.target_p)[0] | ||||||
|  | 				if (index < pl.ncards) { | ||||||
|  | 					index = Math.floor(Math.random() * pl.ncards) | ||||||
|  | 				} | ||||||
|  | 			} | ||||||
|  | 			this.$socket.emit('choose', index) | ||||||
| 			if (Vue.config.devtools) | 			if (Vue.config.devtools) | ||||||
| 				console.log(card + ' ' + this.chooseCards.indexOf(card)) | 				console.log(card + ' ' + index) | ||||||
| 			this.chooseCards = [] | 			this.chooseCards = [] | ||||||
| 			this.hasToChoose = false | 			this.hasToChoose = false | ||||||
| 			this.target_p = '' | 			this.target_p = '' | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Giulio
						Giulio