1
0
Fork 0

dobule sided resona UI

This commit is contained in:
WEBXOSS 2016-10-25 19:41:19 +08:00
parent 690dbd07c6
commit 9afca98483
3 changed files with 15 additions and 7 deletions

View file

@ -787,7 +787,8 @@ Card.prototype.moveTo = function (zone,arg) {
zone: zone, zone: zone,
up: arg.up, up: arg.up,
faceup: zone.inhand? true : arg.faceup, faceup: zone.inhand? true : arg.faceup,
bottom: arg.bottom bottom: arg.bottom,
isSide: arg.isSide
} }
}); });
card.player.opponent.output({ card.player.opponent.output({
@ -798,7 +799,8 @@ Card.prototype.moveTo = function (zone,arg) {
zone: zone, zone: zone,
up: arg.up, up: arg.up,
faceup: arg.faceup, faceup: arg.faceup,
bottom: arg.bottom bottom: arg.bottom,
isSide: arg.isSide
} }
}); });

14
Game.js
View file

@ -213,8 +213,11 @@ Game.prototype.outputInitMsg = function (player) {
excludedZone: player.excludedZone, excludedZone: player.excludedZone,
mainDeckCards: player.mainDeck.cards, mainDeckCards: player.mainDeck.cards,
lrigDeckCards: player.lrigDeck.cards, lrigDeckCards: player.lrigDeck.cards,
lrigDeckCardIds: player.lrigDeck.cards.map(function (card) { lrigDeckCardInfos: player.lrigDeck.cards.map(function (card) {
return card.pid; return {
pid: card.pid,
isSide: card.sideA
}
},this) },this)
}, },
opponentZones: { opponentZones: {
@ -231,8 +234,11 @@ Game.prototype.outputInitMsg = function (player) {
excludedZone: opponent.excludedZone, excludedZone: opponent.excludedZone,
mainDeckCards: opponent.mainDeck.cards, mainDeckCards: opponent.mainDeck.cards,
lrigDeckCards: opponent.lrigDeck.cards, lrigDeckCards: opponent.lrigDeck.cards,
lrigDeckCardIds: player.lrigDeck.cards.map(function (card) { lrigDeckCardInfos: player.lrigDeck.cards.map(function (card) {
return 0; return {
pid: 0,
isSide: card.sideA
}
},this) },this)
} }
} }

@ -1 +1 @@
Subproject commit a309b946d29d9a29f2ba1f69b07f3c0162665c8b Subproject commit f881366379ac99f3473397a7065183425a5cd7a8