...
|
...
|
@@ -145,12 +145,16 @@ $(document).ready(function() {
|
145
|
145
|
|
146
|
146
|
|
147
|
147
|
// AFFICHAGE DU NBR DE TUILES RESTANTES
|
148
|
|
- if( !lastData || lastData['nbpioche'] != data['nbpioche'] ) {
|
|
148
|
+ if( !lastData || lastData['nbpioche'] != data['nbpioche'] || lastData['statut'] != data['statut'] ) {
|
149
|
149
|
var listeTuilesRestantes = ['1', '1d', '1o', '2', '2d', '2o', '3', '4', '4d', '5', '6', '7', '8d', '9', '9d', '10', '10d', '11', '11d'];
|
150
|
150
|
for(var t = 0 ; t < listeTuilesRestantes.length ; t++)
|
151
|
151
|
$( '#TuileRestante_' + listeTuilesRestantes[t] ).html( ( data['tuilesrestantes'][ listeTuilesRestantes[t] ] ? data['tuilesrestantes'][ listeTuilesRestantes[t] ] : '0' ) + 'x' );
|
152
|
152
|
}
|
153
|
153
|
|
|
154
|
+ // SUPPRESION DES FANTOMES
|
|
155
|
+ if( !lastData || lastData['nbpioche'] != data['nbpioche'] ) {
|
|
156
|
+ $('.meepleFantome').remove();
|
|
157
|
+ }
|
154
|
158
|
}
|
155
|
159
|
// FIN DE PARTIE : statut > 10
|
156
|
160
|
else if(data['statut'] >= 10) {
|
...
|
...
|
@@ -315,7 +319,7 @@ $(document).ready(function() {
|
315
|
319
|
requestWriteInProgress = true;
|
316
|
320
|
|
317
|
321
|
$('#zoneInfosTuile_tuile').html('<img src="src/ok.png" />');
|
318
|
|
- $('#PlateauCase_User' + scJoueurId + '_Case' + InfoID).append('<img src="src/meeple' + tempMeepleSelected + '_vide.png" />');
|
|
322
|
+ $('#PlateauCase_User' + scJoueurId + '_Case' + InfoID).append('<img src="src/meeple' + tempMeepleSelected + '_vide.png" class="meepleFantome" />');
|
319
|
323
|
dejaJoue = true;
|
320
|
324
|
|
321
|
325
|
$.get('jeu.php?j=' + scJoueurId + '&dc=m' + tempMeepleSelected + 'c' + InfoID)
|
...
|
...
|
@@ -343,7 +347,7 @@ $(document).ready(function() {
|
343
|
347
|
requestWriteInProgress = true;
|
344
|
348
|
|
345
|
349
|
$('#zoneInfosTuile_tuile').html('<img src="src/ok.png" />');
|
346
|
|
- $('#PlateauCase_User' + scJoueurId + '_Temple' + InfoID).append('<img src="src/meeple' + tempMeepleSelected + '_vide.png" />');
|
|
350
|
+ $('#PlateauCase_User' + scJoueurId + '_Temple' + InfoID).append('<img src="src/meeple' + tempMeepleSelected + '_vide.png" class="meepleFantome" />');
|
347
|
351
|
dejaJoue = true;
|
348
|
352
|
|
349
|
353
|
$.get('jeu.php?j=' + scJoueurId + '&dc=m' + tempMeepleSelected + 't' + InfoID)
|