This commit is contained in:
parent
9ecb30c56f
commit
8a749d9c25
|
@ -4184,27 +4184,19 @@ character.swd={
|
||||||
game.addVideo('skill',event.player,'kunlunjing');
|
game.addVideo('skill',event.player,'kunlunjing');
|
||||||
"step 2"
|
"step 2"
|
||||||
var storage=event.player.storage.kunlunjing;
|
var storage=event.player.storage.kunlunjing;
|
||||||
|
for(var i=0;i<storage.length;i++){
|
||||||
|
var player=storage[i].player;
|
||||||
|
if(player.isIn()){
|
||||||
|
player.lose(player.get('hej'))._triggered=null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"step 3"
|
||||||
|
var storage=event.player.storage.kunlunjing;
|
||||||
var player,frag;
|
var player,frag;
|
||||||
var i,j;
|
var i,j;
|
||||||
for(i=0;i<storage.length;i++){
|
for(i=0;i<storage.length;i++){
|
||||||
if(game.players.contains(storage[i].player)){
|
player=storage[i].player;
|
||||||
player=storage[i].player;
|
if(player.isIn()){
|
||||||
while(player.node.handcards1.childNodes.length)
|
|
||||||
ui.discardPile.appendChild(player.node.handcards1.firstChild);
|
|
||||||
|
|
||||||
while(player.node.handcards2.childNodes.length)
|
|
||||||
ui.discardPile.appendChild(player.node.handcards2.firstChild);
|
|
||||||
|
|
||||||
while(player.node.judges.childNodes.length)
|
|
||||||
ui.discardPile.appendChild(player.node.judges.firstChild);
|
|
||||||
|
|
||||||
while(player.node.equips.childNodes.length)
|
|
||||||
ui.discardPile.appendChild(player.node.equips.firstChild);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for(i=0;i<storage.length;i++){
|
|
||||||
if(game.players.contains(storage[i].player)){
|
|
||||||
player=storage[i].player;
|
|
||||||
for(j=0;j<storage[i].handcards1.length;j++){
|
for(j=0;j<storage[i].handcards1.length;j++){
|
||||||
if(storage[i].handcards1[j].parentNode==ui.discardPile||
|
if(storage[i].handcards1[j].parentNode==ui.discardPile||
|
||||||
storage[i].handcards1[j].parentNode==ui.cardPile){
|
storage[i].handcards1[j].parentNode==ui.cardPile){
|
||||||
|
@ -4261,7 +4253,7 @@ character.swd={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
game.addVideo('skill',event.player,['kunlunjing',data]);
|
game.addVideo('skill',event.player,['kunlunjing',data]);
|
||||||
"step 3"
|
"step 4"
|
||||||
ui.window.show();
|
ui.window.show();
|
||||||
ui.window.classList.remove('zoomin3');
|
ui.window.classList.remove('zoomin3');
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
@ -4269,7 +4261,7 @@ character.swd={
|
||||||
game.resume();
|
game.resume();
|
||||||
},500);
|
},500);
|
||||||
game.pause();
|
game.pause();
|
||||||
'step 4'
|
'step 5'
|
||||||
ui.updatehl();
|
ui.updatehl();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
20
game/game.js
20
game/game.js
|
@ -24589,11 +24589,19 @@
|
||||||
var page=ui.create.div('.hidden.menu-buttons');
|
var page=ui.create.div('.hidden.menu-buttons');
|
||||||
page.reset=function(){
|
page.reset=function(){
|
||||||
page.innerHTML='';
|
page.innerHTML='';
|
||||||
ui.create.div('.config.more.margin-bottom','<div style="transform:none;margin-right:3px">←</div>返回',page,function(){
|
var backbutton=ui.create.div('.menubutton.round','返',page,function(){
|
||||||
ui.create.templayer();
|
ui.create.templayer();
|
||||||
page.hide();
|
page.hide();
|
||||||
pageboard.show();
|
pageboard.show();
|
||||||
});
|
});
|
||||||
|
backbutton.style.zIndex=1;
|
||||||
|
backbutton.style.right='10px';
|
||||||
|
backbutton.style.bottom='15px';
|
||||||
|
var placeholder=ui.create.div('.placeholder',page);
|
||||||
|
placeholder.style.position='relative';
|
||||||
|
placeholder.style.display='block';
|
||||||
|
placeholder.style.width='100%';
|
||||||
|
placeholder.style.height='14px';
|
||||||
createDash2('将','武将图片','image/character',page);
|
createDash2('将','武将图片','image/character',page);
|
||||||
createDash2('肤','皮肤图片','image/skin',page);
|
createDash2('肤','皮肤图片','image/skin',page);
|
||||||
createDash2('卡','卡牌图片','image/card',page);
|
createDash2('卡','卡牌图片','image/card',page);
|
||||||
|
@ -24608,11 +24616,19 @@
|
||||||
var page=ui.create.div('.hidden.menu-buttons');
|
var page=ui.create.div('.hidden.menu-buttons');
|
||||||
page.reset=function(){
|
page.reset=function(){
|
||||||
page.innerHTML='';
|
page.innerHTML='';
|
||||||
ui.create.div('.config.more.margin-bottom','<div style="transform:none;margin-right:3px">←</div>返回',page,function(){
|
var backbutton=ui.create.div('.menubutton.round','返',page,function(){
|
||||||
ui.create.templayer();
|
ui.create.templayer();
|
||||||
page.hide();
|
page.hide();
|
||||||
pageboard.show();
|
pageboard.show();
|
||||||
});
|
});
|
||||||
|
backbutton.style.zIndex=1;
|
||||||
|
backbutton.style.right='10px';
|
||||||
|
backbutton.style.bottom='15px';
|
||||||
|
var placeholder=ui.create.div('.placeholder',page);
|
||||||
|
placeholder.style.position='relative';
|
||||||
|
placeholder.style.display='block';
|
||||||
|
placeholder.style.width='100%';
|
||||||
|
placeholder.style.height='14px';
|
||||||
createDash2('技','技能配音','audio/skill',page);
|
createDash2('技','技能配音','audio/skill',page);
|
||||||
createDash2('卡','男性卡牌','audio/card/male',page);
|
createDash2('卡','男性卡牌','audio/card/male',page);
|
||||||
createDash2('牌','女性卡牌','audio/card/female',page);
|
createDash2('牌','女性卡牌','audio/card/female',page);
|
||||||
|
|
Loading…
Reference in New Issue