Played happy video and audio when purchasing a city or settlement

This commit is contained in:
Brian Fertig 2026-05-23 17:28:14 -06:00
parent dff196e7ed
commit 67500636cb
1 changed files with 3 additions and 0 deletions

View File

@ -1436,6 +1436,9 @@ export default class CatanGame extends Phaser.Scene {
enqueueSpeech(`catan-purchase-${pieceType}`); enqueueSpeech(`catan-purchase-${pieceType}`);
await this.animateCostPayment(seat, pieceType); await this.animateCostPayment(seat, pieceType);
await this.animatePiecePlacement(seat, pieceType, dest.x, dest.y); 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); this.gs = this.applyAction(seat, a);
if (this.gs.phase === 'moveRobber') { if (this.gs.phase === 'moveRobber') {