This commit is contained in:
2024-02-24 11:09:19 +01:00
parent ca53930b51
commit c3aca4a2b8
2 changed files with 20 additions and 17 deletions

View File

@@ -81,12 +81,15 @@
break;
case "move":
console.log("MOVE + "+data.party.playerdice);
let position=parseInt(data.party.playertile.position)+parseInt(data.party.playerdice);
console.log("MOVE TO "+data.party.playertile.position+" + "+data.party.playerdice+" = "+position);
// Là il faut faire la régle de passage à par la casse week enk
// Voir si le mouve et super gros gérer le multipassage par weekend
if(position>27) position=position-27
if(position>27) {
position=position-28
}
// Mise à jour de la position du joueur
data.party.playertile.position=position;
@@ -97,7 +100,7 @@
Edge.Client.rpc("upsertPlayerParty",data.party.playerparty);
// temporaire on passe au suivant
playernext();
//playernext();
break;
}