This commit is contained in:
libccy 2016-04-07 23:54:17 +08:00
parent b78f31f8b3
commit ae93ed0d85
6 changed files with 32 additions and 13 deletions

View File

@ -1901,8 +1901,9 @@ character.shenhua={
wansha2:{ wansha2:{
mod:{ mod:{
cardSavable:function(card,player){ cardSavable:function(card,player){
if(_status.currentPhase.skills.contains('wansha')&&_status.currentPhase!=player){ if(!_status.currentPhase) return;
if(card.name=='tao'&&_status.dying!=player) return false; if(_status.currentPhase.get('s').contains('wansha')&&_status.currentPhase!=player){
if(card.name=='tao'&&_status.event.dying!=player) return false;
} }
} }
} }

View File

@ -11395,9 +11395,9 @@
player.classList.add('glow_phase'); player.classList.add('glow_phase');
},player); },player);
} }
_status.currentPhase=player;
game.syncState(); game.syncState();
game.addVideo('phaseChange',player); game.addVideo('phaseChange',player);
_status.currentPhase=player;
game.log(); game.log();
game.log(player,'的回合开始'); game.log(player,'的回合开始');
game.phaseNumber++; game.phaseNumber++;
@ -11974,7 +11974,13 @@
if(game.updateState){ if(game.updateState){
game.updateState(state2); game.updateState(state2);
} }
game.createEvent('game',false).content=lib.init.startOnline; var next=game.createEvent('game',false);
next.content=lib.init.startOnline;
if(observe){
next.custom.replace.target=function(player){
if(player.isAlive()) game.swapPlayer(player);
}
}
game.loop(); game.loop();
game.send('reinited'); game.send('reinited');
if(!observe&&game.me&&game.me.isDead()){ if(!observe&&game.me&&game.me.isDead()){
@ -12090,9 +12096,10 @@
}, },
syncState:function(){ syncState:function(){
if(game.getState&&game.updateState){ if(game.getState&&game.updateState){
game.broadcast(function(state){ game.broadcast(function(state,current){
game.updateState(state); game.updateState(state);
},game.getState()); _status.currentPhase=current;
},game.getState(),_status.currentPhase);
} }
}, },
updateWaiting:function(){ updateWaiting:function(){

View File

@ -1,9 +1,10 @@
window.noname_update={ window.noname_update={
version:'1.8.3.5', version:'1.8.3.6',
changeLog:[ changeLog:[
'联机可显示弃牌堆数量', '修复完杀和双将bug',
'最近连接ip列表', '旁观可切换视角',
'扩展机制修改', '聊天手势',
'联机自动禁用扩展', '房间信息',
'准备阶段可更改设置',
] ]
} }

View File

@ -535,7 +535,8 @@ margin-bottom: 5px;
.caption>.text{font-size:16px;text-align:left} .caption>.text{font-size:16px;text-align:left}
.caption>.text.center{text-align:center} .caption>.text.center{text-align:center}
.caption>.text.chat{word-break: break-all;margin-bottom: 3px;margin-left: 10px;width: calc(100% - 20px)} .caption>.text.chat{word-break: break-all;margin-bottom: 3px;margin-left: 10px;width: calc(100% - 20px)}
.caption>.text.textlink{margin-left: 10px} .caption>.text.textlink{margin-left: 10px;}
.caption>.text.textlink:not(*:first-child){margin-top: 6px;}
.caption>.text.textlink:hover{text-decoration: underline;} .caption>.text.textlink:hover{text-decoration: underline;}
.caption>div>div{font-size: 16px;position: relative;width: calc(100% - 70px);vertical-align: top;margin: 0;padding: 0;} .caption>div>div{font-size: 16px;position: relative;width: calc(100% - 70px);vertical-align: top;margin: 0;padding: 0;}
.skill{left: 0 !important;width: 70px !important;} .skill{left: 0 !important;width: 70px !important;}

View File

@ -67,6 +67,7 @@ mode.connect={
return str; return str;
}; };
lib.setPopped(ui.recentIP,function(){ lib.setPopped(ui.recentIP,function(){
if(!lib.config.recentIP.length) return;
var uiintro=ui.create.dialog('hidden'); var uiintro=ui.create.dialog('hidden');
uiintro.listen(function(e){ uiintro.listen(function(e){
e.stopPropagation(); e.stopPropagation();
@ -76,6 +77,14 @@ mode.connect={
ui.create.div('.text.textlink',list,clickLink).innerHTML=trimIP(lib.config.recentIP[i]); ui.create.div('.text.textlink',list,clickLink).innerHTML=trimIP(lib.config.recentIP[i]);
} }
uiintro.add(list); uiintro.add(list);
var clear=uiintro.add('<div class="text center">清除</div>');
clear.style.paddingTop=0;
clear.style.paddingBottom='3px';
clear.listen(function(){
lib.config.recentIP.length=0;
game.saveConfig('recentIP',[]);
uiintro.delete();
});
return uiintro; return uiintro;
},220); },220);
} }

View File

@ -1045,7 +1045,7 @@ mode.identity={
} }
} }
game.me.chooseButtonOL(list,function(player,result){ game.me.chooseButtonOL(list,function(player,result){
if(game.online||player==game.me) player.init(result.links[0],null,result.links[1]); if(game.online||player==game.me) player.init(result.links[0],result.links[1]);
}); });
"step 2" "step 2"
for(var i in result){ for(var i in result){