This commit is contained in:
libccy 2016-04-06 14:51:59 +08:00
parent 3d4c766b46
commit 70d6368191
4 changed files with 32 additions and 8 deletions

View File

@ -1070,7 +1070,8 @@ character.shenhua={
}
mark.setBackground(currentname,'character');
}
player.addSkill(link);
player.skills.remove(link);
player.additionalSkills.huashen=link;
player.logSkill('huashen2');
game.log(player,'获得技能','【'+get.translation(link)+'】');

View File

@ -2723,6 +2723,25 @@
game.saveConfig('connect_avatar',item,'connect');
}
},
connect_start:{
name:'启动服务器',
clear:true,
frequent:true,
onclick:function(){
game.saveConfig('connectMode',true);
game.saveConfig('mode','identity');
localStorage.setItem(lib.configprefix+'directstart',true);
game.reload();
}
},
update:function(config,map){
if(lib.node){
map.connect_start.show();
}
else{
map.connect_start.hide();
}
}
}
}
},
@ -14229,6 +14248,9 @@
ui.tempnowuxie.close();
delete ui.tempnowuxie;
}
for(var i=0;i<game.players.length;i++){
game.players[i].setIdentity();
}
return;
}
if(lib.config.background_audio){

View File

@ -1,7 +1,7 @@
window.noname_update={
version:'1.8.2.9',
version:'1.8.3',
changeLog:[
'联机死亡后可退出',
'bug修复:换肤、濒死出酒、无懈、自定义模式、木马'
'风火林山联机',
'bug修复'
]
}

View File

@ -1043,10 +1043,11 @@ mode.identity={
num=3;
}
else{
switch(game.players[i].identity){
case 'zhong':num=4;break;
case 'nei':num=5;break;
default:num=3;break;
if(game.players[i].identity=='nei'){
num=7;
}
else{
num=5;
}
}
list.push([game.players[i],['选择角色',[event.list.randomRemove(num),'character']],selectButton,true]);