Played happy video and audio when purchasing a city or settlement
This commit is contained in:
parent
dff196e7ed
commit
67500636cb
|
|
@ -1436,6 +1436,9 @@ export default class CatanGame extends Phaser.Scene {
|
|||
enqueueSpeech(`catan-purchase-${pieceType}`);
|
||||
await this.animateCostPayment(seat, pieceType);
|
||||
await this.animatePiecePlacement(seat, pieceType, dest.x, dest.y);
|
||||
if (a.type === 'buildCity' || a.type === 'buildSettlement') {
|
||||
this.opponentPortraits[seat]?.playEmotion?.('happy');
|
||||
}
|
||||
}
|
||||
this.gs = this.applyAction(seat, a);
|
||||
if (this.gs.phase === 'moveRobber') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue