コネクト

This commit is contained in:
Spmario233 2021-09-20 18:56:11 +08:00
parent a4f774aac2
commit c90084b10a
7 changed files with 190 additions and 176 deletions

View File

@ -1886,7 +1886,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{player:'damageBegin2'}, trigger:{player:'damageBegin2'},
forced:true, forced:true,
filter:function(event,player){ filter:function(event,player){
if(!event.card||get.color(event.card)=='nocolor') return false; if(!event.card||get.color(event.card)=='none') return false;
var all=player.getAllHistory('damage'); var all=player.getAllHistory('damage');
if(!all.length) return false; if(!all.length) return false;
return all[all.length-1].card&&get.color(all[all.length-1].card)==get.color(event.card); return all[all.length-1].card&&get.color(all[all.length-1].card)==get.color(event.card);
@ -1899,7 +1899,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
target:function(card,player,target){ target:function(card,player,target){
if(get.tag(card,'damage')){ if(get.tag(card,'damage')){
var color=get.color(card); var color=get.color(card);
if(color=='nocolor') return; if(color=='none') return;
var all=target.getAllHistory('damage'); var all=target.getAllHistory('damage');
if(!all.length||!all[all.length-1].card) return; if(!all.length||!all[all.length-1].card) return;
if(get.color(all[all.length-1].card)==color) return 'zerotarget'; if(get.color(all[all.length-1].card)==color) return 'zerotarget';
@ -5180,7 +5180,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2, audio:2,
trigger:{player:'useCardToPlayered'}, trigger:{player:'useCardToPlayered'},
forced:true, forced:true,
logTarget:'player', logTarget:'target',
filter:function(event,player){ filter:function(event,player){
return event.card.name=='sha'&&!player.inRangeOf(event.target); return event.card.name=='sha'&&!player.inRangeOf(event.target);
}, },

View File

@ -748,7 +748,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
check:function(card){ check:function(card){
var player=_status.event.player; var player=_status.event.player;
if(game.countPlayer(function(current){ if(game.countPlayer(function(current){
return current!=player&&player.canUse('nanman',current)&&get.effect(target,{name:'nanman'},player,player)>0; return current!=player&&player.canUse('nanman',current)&&get.effect(current,{name:'nanman'},player,player)>0;
})<=ui.selected.cards.length) return 0; })<=ui.selected.cards.length) return 0;
return 6-get.value(card); return 6-get.value(card);
}, },

View File

@ -5686,23 +5686,6 @@
} }
} }
}, },
room_button:{
name:'创建服务器按钮',
init:false,
frequent:true,
intro:'开启后可创建一个空房间但不加入游戏',
onclick:function(bool){
game.saveConfig('room_button',bool,'connect');
if(ui.connectRoom){
if(bool){
ui.connectRoom.style.display='';
}
else{
ui.connectRoom.style.display='none';
}
}
}
}
} }
}, },
boss:{ boss:{
@ -7387,28 +7370,28 @@
window.onerror=function(msg, src, line, column, err){ window.onerror=function(msg, src, line, column, err){
var str=msg; var str=msg;
if(window._status&&_status.event){ if(window._status&&_status.event){
var evt=_status.event; var evt=_status.event;
str+=('\n'+evt.name+': '+evt.step); str+=('\n'+evt.name+': '+evt.step);
if(evt.parent) str+='\n'+evt.parent.name+': '+evt.parent.step; if(evt.parent) str+='\n'+evt.parent.name+': '+evt.parent.step;
if(evt.parent&&evt.parent.parent) str+='\n'+evt.parent.parent.name+': '+evt.parent.parent.step; if(evt.parent&&evt.parent.parent) str+='\n'+evt.parent.parent.name+': '+evt.parent.parent.step;
if(evt.player||evt.target||evt.source||evt.skill||evt.card){ if(evt.player||evt.target||evt.source||evt.skill||evt.card){
str+='\n-------------' str+='\n-------------'
} }
if(evt.player){ if(evt.player){
str+='\nplayer: ' + evt.player.name; str+='\nplayer: ' + evt.player.name;
} }
if(evt.target){ if(evt.target){
str+='\ntarget: ' + evt.target.name; str+='\ntarget: ' + evt.target.name;
} }
if(evt.source){ if(evt.source){
str+='\nsource: ' + evt.source.name; str+='\nsource: ' + evt.source.name;
} }
if(evt.skill){ if(evt.skill){
str+='\nskill: ' + evt.skill.name; str+='\nskill: ' + evt.skill.name;
} }
if(evt.card){ if(evt.card){
str+='\ncard: ' + evt.card.name; str+='\ncard: ' + evt.card.name;
} }
} }
str+='\n-------------'; str+='\n-------------';
str+='\n'+line; str+='\n'+line;
@ -17112,67 +17095,50 @@
delete this.sex; delete this.sex;
}, },
initRoom:function(info,info2){ initRoom:function(info,info2){
if(!this.node.gaming){ var str='';
this.node.gaming=ui.create.div('.gaming','游戏中',this);
this.node.gaming.dataset.nature='fire';
}
if(!this.node.serving){
this.node.serving=ui.create.div('.gaming','服务器',this);
this.node.serving.dataset.nature='wood';
}
if(!this.node.waiting){
this.node.waiting=ui.create.div('.gaming','等待中',this);
this.node.waiting.dataset.nature='water';
}
this.serving=false; this.serving=false;
if(!info||info=='server'){ if(!info||info=='server'){
this.roomempty=true; this.roomempty=true;
this.initOL('空房间',info2||'room'); str='空房间';
this.node.hp.innerHTML='';
this.roomfull=false; this.roomfull=false;
this.roomgaming=false; this.roomgaming=false;
this.version=null; this.version=null;
if(info=='server'){ if(info=='server'){
this.serving=true; this.serving=true;
this.node.serving.show();
} }
else{
this.node.serving.hide();
}
this.node.gaming.hide();
this.node.waiting.hide();
this.dataset.cursor_style='menu';
} }
else{ else{
this.roomempty=false;
var config=info[2]; var config=info[2];
this.initOL(get.modetrans(config),info[1]); this.key=info[4];
this.roomempty=false;
str+=get.modetrans(config);
str+=' 模式 ';
for(var i=str.length;i<11;i++) str+=' ';
this.version=config.version; this.version=config.version;
if(config.gameStarted){ if(config.gameStarted){
this.node.gaming.show(); str+='<span class="firetext">游戏中</span> ';
this.node.waiting.hide();
if(config.observe&&config.observeReady&&this.version==lib.versionOL){ if(config.observe&&config.observeReady&&this.version==lib.versionOL){
this.dataset.cursor_style='zoom'; this.classList.remove('exclude');
} }
else{ else{
this.dataset.cursor_style='forbidden'; this.classList.add('exclude');
} }
} }
else{ else{
this.node.gaming.hide(); str+='<span class="greentext">等待中</span> ';
this.node.waiting.show();
if(this.version!=lib.versionOL){ if(this.version!=lib.versionOL){
this.dataset.cursor_style='forbidden'; this.classList.add('exclude');
} }
else{ else{
this.dataset.cursor_style='pointer'; this.classList.remove('exclude');
} }
} }
this.node.serving.hide();
this.setNickname(info[0]);
this.maxHp=parseInt(config.number); this.maxHp=parseInt(config.number);
this.hp=info[3]; this.hp=info[3];
this.update(); if(this.hp<this.maxHp||config.gameStarted) str+=('人数:'+this.hp+'/'+this.maxHp);
else str+=('人数:<span class="firetext">'+this.hp+'/'+this.maxHp+'</span>');
str+=(' ('+info[0]+' 的房间)');
this.config=config; this.config=config;
if(this.hp==this.maxHp&&!config.gameStarted){ if(this.hp==this.maxHp&&!config.gameStarted){
this.roomfull=true; this.roomfull=true;
@ -17187,6 +17153,7 @@
this.roomgaming=false; this.roomgaming=false;
} }
} }
this.firstChild.innerHTML=str;
return this; return this;
}, },
reinit:function(from,to,maxHp,online){ reinit:function(from,to,maxHp,online){
@ -27177,32 +27144,19 @@
game.send('server','changeAvatar',lib.config.connect_nickname,lib.config.connect_avatar); game.send('server','changeAvatar',lib.config.connect_nickname,lib.config.connect_avatar);
var proceed=function(){ var proceed=function(){
ui.rooms=[];
game.ip=get.trimip(_status.ip); game.ip=get.trimip(_status.ip);
for(var i=0;i<list.length;i++){ ui.create.connectRooms(list);
var player=ui.create.player(ui.window).animate('start');
if(list.length>6) player.dataset.position='cx'+i;
else player.dataset.position='c'+i;
player.classList.add('connect');
player.roomindex=i;
player.node.hp.classList.add('room');
ui.rooms.push(player);
}
if(events){ if(events){
ui.connectRoom=ui.create.div('.forceopaque.menubutton.large.connectevents.server.pointerdiv','创建服务器',ui.window,function(){
if(confirm('通过此选项可创建一个新房间但不加入游戏。是否继续?')){
localStorage.setItem(lib.configprefix+'asserver','hall');
game.reload();
}
});
if(!get.config('room_button')){
ui.connectRoom.style.display='none';
}
ui.connectEvents=ui.create.div('.forceopaque.menubutton.large.connectevents.pointerdiv','约战',ui.window,ui.click.connectEvents); ui.connectEvents=ui.create.div('.forceopaque.menubutton.large.connectevents.pointerdiv','约战',ui.window,ui.click.connectEvents);
ui.connectEventsCount=ui.create.div('.forceopaque.menubutton.icon.connectevents.highlight.hidden','',ui.window); ui.connectEventsCount=ui.create.div('.forceopaque.menubutton.icon.connectevents.highlight.hidden','',ui.window);
ui.connectClients=ui.create.div('.forceopaque.menubutton.large.connectevents.pointerdiv.left','在线',ui.window,ui.click.connectClients); ui.connectClients=ui.create.div('.forceopaque.menubutton.large.connectevents.pointerdiv.left','在线',ui.window,ui.click.connectClients);
ui.connectClientsCount=ui.create.div('.forceopaque.menubutton.icon.connectevents.highlight.left','1',ui.window); ui.connectClientsCount=ui.create.div('.forceopaque.menubutton.icon.connectevents.highlight.left','1',ui.window);
ui.createRoomButton=ui.create.div('.forceopaque.menubutton.large.connectevents.pointerdiv.left2','创建房间',ui.window,function(){
if(!_status.creatingroom){
_status.creatingroom=true;
ui.click.connectMenu();
}
});
if(events.length){ if(events.length){
ui.connectEventsCount.innerHTML=events.filter(function(evt){ ui.connectEventsCount.innerHTML=events.filter(function(evt){
return evt.creator==game.onlineKey||!get.is.banWords(evt.content) return evt.creator==game.onlineKey||!get.is.banWords(evt.content)
@ -27228,16 +27182,22 @@
game.reload(); game.reload();
},true); },true);
if(typeof lib.config.tmp_owner_roomId=='number'){ var findRoom=function(id){
if(typeof game.roomId!='number'&&ui.rooms[lib.config.tmp_owner_roomId].roomempty){ for(var room of ui.rooms){
if(room.key==id) return room;
}
return false;
};
if(typeof lib.config.tmp_owner_roomId=='string'){
if(typeof game.roomId!='string'&&!findRoom(lib.config.tmp_owner_roomId)){
lib.configOL.mode=lib.config.connect_mode; lib.configOL.mode=lib.config.connect_mode;
game.roomId=lib.config.tmp_owner_roomId; game.roomId=lib.config.tmp_owner_roomId;
} }
game.saveConfig('tmp_owner_roomId'); game.saveConfig('tmp_owner_roomId');
} }
if(typeof lib.config.tmp_user_roomId=='number'){ if(typeof lib.config.tmp_user_roomId=='string'){
if(typeof game.roomId!='number'){ if(typeof game.roomId!='string'){
if(!ui.rooms[lib.config.tmp_user_roomId].roomempty){ if(findRoom(lib.config.tmp_user_roomId)){
game.roomId=lib.config.tmp_user_roomId; game.roomId=lib.config.tmp_user_roomId;
} }
else{ else{
@ -27248,9 +27208,9 @@
var interval=setInterval(function(){ var interval=setInterval(function(){
if(n>0){ if(n>0){
n--; n--;
if(!ui.rooms[id].roomempty){ if(findRoom(id)){
clearInterval(interval); clearInterval(interval);
game.send('server','enter',game.roomId,lib.config.connect_nickname,lib.config.connect_avatar); game.send('server','enter',id,lib.config.connect_nickname,lib.config.connect_avatar);
} }
} }
else{ else{
@ -27282,9 +27242,9 @@
game.send('server','server'); game.send('server','server');
} }
} }
else if(typeof game.roomId=='number'){ else if(typeof game.roomId=='string'){
var room=ui.rooms[game.roomId]; var room=findRoom(game.roomId);
if(game.roomIdServer&&(room.serving||!room.version)){ if(game.roomIdServer&&room&&(room.serving||!room.version)){
console.log(); console.log();
if(lib.config.reconnect_info){ if(lib.config.reconnect_info){
lib.config.reconnect_info[2]=null; lib.config.reconnect_info[2]=null;
@ -27293,7 +27253,7 @@
} }
else{ else{
ui.create.connecting(); ui.create.connecting();
game.send('server','enter',game.roomId,lib.config.connect_nickname,lib.config.connect_avatar); game.send('server',(game.roomId==game.onlineKey)?'create':'enter',game.roomId,lib.config.connect_nickname,lib.config.connect_avatar);
} }
} }
lib.init.onfree(); lib.init.onfree();
@ -27307,10 +27267,31 @@
}, },
updaterooms:function(list,clients){ updaterooms:function(list,clients){
if(ui.rooms){ if(ui.rooms){
var map={},map2={};
for(var i of ui.rooms) map2[i.key]=true;
for(var i of list){
if(!i) continue;
map[i[4]]=i;
}
ui.window.classList.add('more_room'); ui.window.classList.add('more_room');
var list2=['re_caocao','re_liubei','re_sunquan','re_zhangjiao','jin_simashi','re_caopi','ol_liushan','re_sunce','ol_yuanshao','jin_simazhao'];
for(var i=0;i<ui.rooms.length;i++){ for(var i=0;i<ui.rooms.length;i++){
ui.rooms[i].initRoom(list[i],list2[i]); if(!map[ui.rooms[i].key]){
ui.rooms[i].remove();
ui.rooms.splice(i--,1);
}
else ui.rooms[i].initRoom(list[i]);
}
for(var i of list){
if(!i) continue;
map[i[4]]=i;
if(!map2[i[4]]){
var player=ui.roombase.add('<div class="popup text pointerdiv" style="width:calc(100% - 10px);display:inline-block">空房间</div>');
player.roomindex=i;
player.initRoom=lib.element.player.initRoom;
player.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.connectroom);
player.initRoom(i);
ui.rooms.push(player);
}
} }
} }
lib.message.client.updateclients(clients,true); lib.message.client.updateclients(clients,true);
@ -32260,7 +32241,7 @@
} }
} }
if(!ui.restart){ if(!ui.restart){
if(game.onlineroom&&typeof game.roomId=='number'){ if(game.onlineroom&&typeof game.roomId=='string'){
ui.restart=ui.create.control('restart',function(){ ui.restart=ui.create.control('restart',function(){
game.broadcastAll(function(){ game.broadcastAll(function(){
if(ui.exit){ if(ui.exit){
@ -34327,17 +34308,21 @@
} }
delete ui.rooms; delete ui.rooms;
} }
if(ui.roombase){
ui.roombase.remove();
delete ui.roombase;
}
if(ui.connectEvents){ if(ui.connectEvents){
ui.connectRoom.remove();
ui.connectEvents.remove(); ui.connectEvents.remove();
ui.connectEventsCount.remove(); ui.connectEventsCount.remove();
ui.connectClients.remove(); ui.connectClients.remove();
ui.connectClientsCount.remove(); ui.connectClientsCount.remove();
delete ui.connectRoom; ui.createRoomButton.remove();
delete ui.connectEvents; delete ui.connectEvents;
delete ui.connectEventsCount; delete ui.connectEventsCount;
delete ui.connectClients; delete ui.connectClients;
delete ui.connectClientsCount; delete ui.connectClientsCount;
delete ui.createRoomButton;
} }
}, },
log:function(){ log:function(){
@ -35339,6 +35324,24 @@
void window.getComputedStyle(node, null).getPropertyValue("opacity"); void window.getComputedStyle(node, null).getPropertyValue("opacity");
}, },
create:{ create:{
connectRooms:function(list){
ui.rooms=[];
ui.roombase=ui.create.dialog();
ui.roombase.classList.add('fullwidth');
ui.roombase.classList.add('fullheight');
ui.roombase.classList.add('fixed');
ui.roombase.classList.add('scroll1');
ui.roombase.classList.add('scroll2');
ui.roombase.classList.add('noupdate');
for(var i=0;i<list.length;i++){
var player=ui.roombase.add('<div class="popup text pointerdiv" style="width:calc(100% - 10px);display:inline-block">空房间</div>');
player.roomindex=i;
player.initRoom=lib.element.player.initRoom;
player.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.connectroom);
player.initRoom(list[i]);
ui.rooms.push(player);
}
},
rarity:function(button){ rarity:function(button){
var rarity=game.getRarity(button.link); var rarity=game.getRarity(button.link);
if(rarity!='common'&&lib.config.show_rarity){ if(rarity!='common'&&lib.config.show_rarity){
@ -35754,6 +35757,9 @@
if(_status.enteringroom){ if(_status.enteringroom){
_status.enteringroom=false; _status.enteringroom=false;
} }
if(_status.creatingroom){
_status.creatingroom=false;
}
ui.window.classList.remove('shortcutpaused'); ui.window.classList.remove('shortcutpaused');
} }
else{ else{
@ -36114,7 +36120,7 @@
game.connectPlayers[0].chat('房间设置已更改'); game.connectPlayers[0].chat('房间设置已更改');
} }
} }
else if(_status.enteringroom){ else if(_status.enteringroom||_status.creatingroom){
lib.configOL.mode=active.mode; lib.configOL.mode=active.mode;
if(_status.enteringroomserver){ if(_status.enteringroomserver){
game.saveConfig('connect_mode',lib.configOL.mode); game.saveConfig('connect_mode',lib.configOL.mode);
@ -36136,10 +36142,10 @@
} }
config.banned=lib.config['connect_'+active.mode+'_banned']; config.banned=lib.config['connect_'+active.mode+'_banned'];
config.bannedcards=lib.config['connect_'+active.mode+'_bannedcards']; config.bannedcards=lib.config['connect_'+active.mode+'_bannedcards'];
game.send('server','enter',_status.roomindex,lib.config.connect_nickname,lib.config.connect_avatar,config,active.mode); game.send('server','create',game.onlineKey,lib.config.connect_nickname,lib.config.connect_avatar,config,active.mode);
} }
else{ else{
game.send('server','enter',_status.roomindex,lib.config.connect_nickname,lib.config.connect_avatar); game.send('server','create',game.onlineKey,lib.config.connect_nickname,lib.config.connect_avatar);
} }
} }
else{ else{
@ -45520,7 +45526,7 @@
return; return;
} }
else{ else{
if(typeof game.roomId!='number'){ if(typeof game.roomId!='string'){
game.saveConfig('reconnect_info'); game.saveConfig('reconnect_info');
} }
} }
@ -47576,6 +47582,37 @@
game.pause2(); game.pause2();
ui.click.charactercard(player.name2,null,null,true,this); ui.click.charactercard(player.name2,null,null,true,this);
}, },
connectroom:function(e){
if(_status.dragged) return;
if(_status.clicked) return;
if(ui.intro) return;
if(this.roomfull){
alert('房间已满');
}
else if(this.roomgaming&&!game.onlineID){
if(this.config&&this.config.observe){
alert('房间暂时不可旁观');
}
else{
alert('房间不允许旁观');
}
}
else if(!this.roomempty&&this.version!=lib.versionOL){
if(this.version>lib.versionOL){
alert('加入失败:你的游戏版本过低');
}
else{
alert('加入失败:房主的游戏版本过低');
}
}
else{
if(!_status.enteringroom){
_status.enteringroom=true;
_status.enteringroomserver=this.serving;
game.send('server','enter',this.key,lib.config.connect_nickname,lib.config.connect_avatar);
}
}
},
player:function(){ player:function(){
return ui.click.target.apply(this,arguments); return ui.click.target.apply(this,arguments);
}, },
@ -47601,40 +47638,6 @@
game.connectPlayers.indexOf(this),this.classList.contains('unselectable2')); game.connectPlayers.indexOf(this),this.classList.contains('unselectable2'));
} }
} }
else if(this.hasOwnProperty('roomindex')){
if(this.roomfull){
alert('房间已满');
}
else if(this.roomgaming&&!game.onlineID){
if(this.config&&this.config.observe){
alert('房间暂时不可旁观');
}
else{
alert('房间不允许旁观');
}
}
else if(!this.roomempty&&this.version!=lib.versionOL){
if(this.version>lib.versionOL){
alert('加入失败:你的游戏版本过低');
}
else{
alert('加入失败:房主的游戏版本过低');
}
}
else{
if(!_status.enteringroom){
_status.enteringroom=true;
_status.enteringroomserver=this.serving;
if(this.roomempty){
_status.roomindex=this.roomindex;
ui.click.connectMenu();
}
else{
game.send('server','enter',this.roomindex,lib.config.connect_nickname,lib.config.connect_avatar);
}
}
}
}
return; return;
} }
if(this.playerid){ if(this.playerid){

View File

@ -4,18 +4,35 @@
var bannedKeys=[]; var bannedKeys=[];
var bannedIps=[]; var bannedIps=[];
var rooms=[{},{},{},{},{},{},{},{},{},{}]; var rooms=[];
var events=[]; var events=[];
var clients={}; var clients={};
var bannedKeyWords=[]; var bannedKeyWords=[];
var messages={ var messages={
enter:function(index,nickname,avatar,config,mode){ create:function(key,nickname,avatar,config,mode){
this.nickname=nickname; this.nickname=nickname;
this.avatar=avatar; this.avatar=avatar;
var room=rooms[index]; var room={};
rooms.push(room);
this.room=room;
delete this.status;
room.owner=this;
room.key=game.onlineKey;
this.sendl('createroom',key);
},
enter:function(key,nickname,avatar){
this.nickname=nickname;
this.avatar=avatar;
var room=false;
for(var i of rooms){
if(i.key==key){
room=i;
break;
}
}
if(!room){ if(!room){
index=0; this.sendl('enterroomfailed');
room=rooms[0]; return;
} }
this.room=room; this.room=room;
delete this.status; delete this.status;
@ -35,10 +52,6 @@
} }
util.updaterooms(); util.updaterooms();
} }
else{
room.owner=this;
this.sendl('createroom',index);
}
}, },
changeAvatar:function(nickname,avatar){ changeAvatar:function(nickname,avatar){
this.nickname=nickname; this.nickname=nickname;
@ -231,11 +244,8 @@
if(rooms[i]._num==0){ if(rooms[i]._num==0){
rooms[i].owner.sendl('reloadroom'); rooms[i].owner.sendl('reloadroom');
} }
roomlist[i]=[rooms[i].owner.nickname,rooms[i].owner.avatar, roomlist.push([rooms[i].owner.nickname,rooms[i].owner.avatar,
rooms[i].config,rooms[i]._num]; rooms[i].config,rooms[i]._num,rooms[i].key]);
}
else{
roomlist[i]=null;
} }
delete rooms[i]._num; delete rooms[i]._num;
} }
@ -349,9 +359,6 @@
ws.on('close',function(){ ws.on('close',function(){
for(var i=0;i<rooms.length;i++){ for(var i=0;i<rooms.length;i++){
if(rooms[i].owner==this){ if(rooms[i].owner==this){
rooms[i].owner=null;
rooms[i].config=null;
rooms[i].servermode=false;
for(var j in clients){ for(var j in clients){
if(clients[j].room==rooms[i]&&clients[j]!=this){ if(clients[j].room==rooms[i]&&clients[j]!=this){
clients[j].sendl('selfclose'); clients[j].sendl('selfclose');
@ -359,6 +366,7 @@
// delete clients[j]; // delete clients[j];
} }
} }
rooms.splice(i--,1);
} }
} }
if(clients[this.wsid]){ if(clients[this.wsid]){

View File

@ -1,9 +1,8 @@
window.noname_update={ window.noname_update={
version:'1.9.110.8.6.1', version:'1.9.110.9',
update:'1.9.110.8.6', update:'1.9.110.8.6.1',
changeLog:[ changeLog:[
'手杀蔡夫人、顾雍、刘璋、桥公、羊祜、张机、张温', '联机服务器改版',
'糜夫人、王凌、孔融技能调整',
'bug修复', 'bug修复',
], ],
files:[ files:[
@ -34,7 +33,7 @@ window.noname_update={
//'character/rank.js', //'character/rank.js',
//'character/refresh.js', //'character/refresh.js',
//'character/shenhua.js', //'character/shenhua.js',
//'character/sp.js', 'character/sp.js',
//'character/sp2.js', //'character/sp2.js',
//'character/tw.js', //'character/tw.js',
//'character/standard.js', //'character/standard.js',
@ -45,13 +44,14 @@ window.noname_update={
//'character/yijiang.js', //'character/yijiang.js',
//'character/yxs.js', //'character/yxs.js',
//'extension/boss/extension.js', //'extension/boss/extension.js',
//'layout/default/layout.css', 'layout/default/layout.css',
//'layout/newlayout/global.css', //'layout/newlayout/global.css',
//'layout/default/menu.css', //'layout/default/menu.css',
//'layout/nova/layout.css', //'layout/nova/layout.css',
//'mode/boss.js', //'mode/boss.js',
//'mode/brawl.js', //'mode/brawl.js',
//'mode/chess.js', //'mode/chess.js',
'mode/connect.js',
//'mode/doudizhu.js', //'mode/doudizhu.js',
//'mode/guozhan.js', //'mode/guozhan.js',
//'mode/identity.js', //'mode/identity.js',
@ -59,7 +59,7 @@ window.noname_update={
//'mode/stone.js', //'mode/stone.js',
//'mode/tafang.js', //'mode/tafang.js',
//'mode/versus.js', //'mode/versus.js',
//'game/game.js', 'game/game.js',
//'game/keyWords.js', //'game/keyWords.js',
//'game/NoSleep.js', //'game/NoSleep.js',
//'game/config.js', //'game/config.js',

View File

@ -3297,6 +3297,9 @@ div:not(.handcards)>.card>.info>span,
.connectevents.left{ .connectevents.left{
transform: translateX(-85px); transform: translateX(-85px);
} }
.connectevents.left2{
transform: translateX(-170px);
}
.connectevents.icon{ .connectevents.icon{
width: 20px; width: 20px;
height: 20px; height: 20px;

View File

@ -121,7 +121,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
var info=lib.config.reconnect_info; var info=lib.config.reconnect_info;
game.onlineID=info[1]; game.onlineID=info[1];
game.roomId=info[2]; game.roomId=info[2];
if(typeof game.roomId=='number'){ if(typeof game.roomId=='string'){
game.roomIdServer=true; game.roomIdServer=true;
} }
var n=5; var n=5;