Add the tempGetCol.. to jank colour in loadBoard

develop
Nathan Steel 1 year ago
parent b663232ebf
commit 89391f5bbb

@ -969,7 +969,8 @@ function loadBoard(data) {
// after && to check if there is a colourReq record in cardColours // after && to check if there is a colourReq record in cardColours
if(cardData[i] !== undefined && i in cardColours){ // i may not have carddata, as realDeck if(cardData[i] !== undefined && i in cardColours){ // i may not have carddata, as realDeck
//console.log(i); //console.log(i);
cardData[i].colour = cardColours[i][0][0]; // Colour Id of first req cardData[i].colour = board.tempGetPrimaryManaOfCard(i);
//cardData[i].colour = cardColours[i][0][0]; // Colour Id of first req
// Set the artwork (this would be done front-end I think) // Set the artwork (this would be done front-end I think)
cardSprite[i] = [0,0]; cardSprite[i] = [0,0];
// Temp sprite set based on colour TODO: Change to set correct sprite from DB // Temp sprite set based on colour TODO: Change to set correct sprite from DB

Loading…
Cancel
Save