chore(api): fixes
This commit is contained in:
@@ -293,6 +293,7 @@ function receiveTurnEvent(eventData) {
|
||||
nextPlayerText.hide();
|
||||
nextPlayersContainer.html('');
|
||||
} else {
|
||||
console.log("Length"+nextPlayers.length);
|
||||
nextPlayerText.show();
|
||||
let nextPlayersHtml = '';
|
||||
nextPlayers.forEach((player) => {
|
||||
@@ -300,7 +301,7 @@ function receiveTurnEvent(eventData) {
|
||||
if (player.dog) {
|
||||
playerName += " 🐶";
|
||||
}
|
||||
nextPlayersHtml += `<p className="fs-5 text-primary">${playerName}</p>`;
|
||||
nextPlayersHtml += `<p class="fs-5 text-primary">${playerName}</p>`;
|
||||
});
|
||||
nextPlayersContainer.html(nextPlayersHtml);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ function handlePlayCard(cardIndex, dog) {
|
||||
cardindex: cardIndex,
|
||||
isDog: dog
|
||||
}
|
||||
sendEventAndWait("play Card", payload).then(
|
||||
sendEventAndWait("PlayCard", payload).then(
|
||||
() => {
|
||||
console.debug("play card successful")
|
||||
const datacardid = $(`#${cardIndex}`)
|
||||
@@ -40,7 +40,7 @@ function handleSkipDogLife(button) {
|
||||
// TODO needs implementation
|
||||
}
|
||||
function startGame() {
|
||||
sendEvent("Start Game")
|
||||
sendEvent("StartGame")
|
||||
}
|
||||
|
||||
function handleTrumpSelection(object) {
|
||||
@@ -49,8 +49,7 @@ function handleTrumpSelection(object) {
|
||||
const payload = {
|
||||
suitIndex: trumpIndex
|
||||
}
|
||||
console.log("SENDING TRUMP SUIT SELECTION:", payload);
|
||||
sendEvent("Picked Trumpsuit", payload)
|
||||
sendEvent("PickTrumpsuit", payload)
|
||||
|
||||
}
|
||||
function handleKickPlayer(playerId) {
|
||||
|
||||
Reference in New Issue
Block a user