This commit is contained in:
libccy 2017-03-29 07:28:41 +08:00
parent 14b5790a0b
commit e6ab99e16d
3 changed files with 35 additions and 31 deletions

View File

@ -19,7 +19,7 @@
}; };
var lib={ var lib={
configprefix:'noname_0.9_', configprefix:'noname_0.9_',
versionOL:21, versionOL:22,
updateURL:'https://raw.githubusercontent.com/libccy/noname', updateURL:'https://raw.githubusercontent.com/libccy/noname',
mirrorURL:'https://coding.net/u/libccy/p/noname/git/raw', mirrorURL:'https://coding.net/u/libccy/p/noname/git/raw',
extensionURL:'https://coding.net/u/libccy/p/noname-extension/git/raw/master/', extensionURL:'https://coding.net/u/libccy/p/noname-extension/git/raw/master/',
@ -4194,12 +4194,6 @@
else{ else{
map.connect_replace_handcard.hide(); map.connect_replace_handcard.hide();
} }
if(config.connect_versus_mode=='4v4'){
map.connect_four_cross.show();
}
else{
map.connect_four_cross.hide();
}
}, },
connect_versus_mode:{ connect_versus_mode:{
name:'游戏模式', name:'游戏模式',
@ -4212,12 +4206,6 @@
}, },
frequent:true frequent:true
}, },
connect_four_cross:{
name:'交叉座位',
init:false,
frequent:true,
restart:true,
},
connect_replace_handcard:{ connect_replace_handcard:{
name:'末位可换牌', name:'末位可换牌',
init:true, init:true,

View File

@ -1,6 +1,6 @@
window.noname_update={ window.noname_update={
version:'1.9.18.2', version:'1.9.18.2',
update:'1.9.17', // update:'1.9.17',
changeLog:[ changeLog:[
'bug修复', 'bug修复',
], ],
@ -11,20 +11,17 @@ window.noname_update={
// 'game/source.js', // 'game/source.js',
// 'game/asset.js', // 'game/asset.js',
// 'card/*', // 'card/*',
'card/sp.js', // 'card/sp.js',
// 'character/*', // 'character/*',
'character/shenhua.js', // 'character/shenhua.js',
'character/yijiang.js',
'character/sp.js',
'character/rank.js',
// 'mode/boss.js', // 'mode/boss.js',
'mode/versus.js', 'mode/versus.js',
// 'mode/guozhan.js', // 'mode/guozhan.js',
// 'mode/identity.js', // 'mode/identity.js',
// 'mode/chess.js', // 'mode/chess.js',
// 'mode/tafang.js', // 'mode/tafang.js',
'mode/guozhan.js', // 'mode/guozhan.js',
'mode/stone.js', // 'mode/stone.js',
// 'theme/music/style.css', // 'theme/music/style.css',
// 'theme/woodden/style.css', // 'theme/woodden/style.css',
// 'layout/default/layout.css', // 'layout/default/layout.css',
@ -32,7 +29,7 @@ window.noname_update={
// 'layout/default/menu.css', // 'layout/default/menu.css',
// 'theme/style/cardback/*', // 'theme/style/cardback/*',
// 'layout/long/layout.css', // 'layout/long/layout.css',
'layout/long2/layout.css', // 'layout/long2/layout.css',
// 'layout/mobile/layout.css', // 'layout/mobile/layout.css',
// 'layout/newlayout/global.css', // 'layout/newlayout/global.css',
// 'layout/mode/chess.css', // 'layout/mode/chess.css',

View File

@ -448,9 +448,6 @@ mode.versus={
else if(lib.configOL.versus_mode=='2v2'||lib.configOL.versus_mode=='3v3'){ else if(lib.configOL.versus_mode=='2v2'||lib.configOL.versus_mode=='3v3'){
uiintro.add('<div class="text chat">四号位换牌:'+(lib.configOL.replace_handcard?'开启':'关闭')); uiintro.add('<div class="text chat">四号位换牌:'+(lib.configOL.replace_handcard?'开启':'关闭'));
} }
else if(lib.configOL.versus_mode=='4v4'){
uiintro.add('<div class="text chat">交叉座位:'+(lib.configOL.four_cross?'开启':'关闭'));
}
uiintro.add('<div class="text chat">出牌时限:'+lib.configOL.choose_timeout+'秒'); uiintro.add('<div class="text chat">出牌时限:'+lib.configOL.choose_timeout+'秒');
uiintro.add('<div class="text chat">屏蔽弱将:'+(lib.configOL.ban_weak?'开启':'关闭')); uiintro.add('<div class="text chat">屏蔽弱将:'+(lib.configOL.ban_weak?'开启':'关闭'));
var last=uiintro.add('<div class="text chat">屏蔽强将:'+(lib.configOL.ban_strong?'开启':'关闭')); var last=uiintro.add('<div class="text chat">屏蔽强将:'+(lib.configOL.ban_strong?'开启':'关闭'));
@ -1744,13 +1741,36 @@ mode.versus={
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter',false);
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
var list=['zhong','ezhong','zhong','ezhong','zhong','ezhong','zhong','ezhong']; var list=[
list[2*Math.floor(Math.random()*4)]='zhu'; ['zhong','ezhong','ezhong','zhong','zhong','ezhong','ezhong','zhong'],
list[2*Math.floor(Math.random()*4)+1]='ezhu'; ['zhong','ezhong','zhong','ezhong','ezhong','zhong','ezhong','zhong'],
if(!lib.configOL.four_cross) list.randomSort(); ['zhong','ezhong','ezhong','zhong','ezhong','zhong','zhong','ezhong'],
['zhong','ezhong','zhong','ezhong','zhong','ezhong','zhong','ezhong'],
['zhong','ezhong','ezhong','zhong','ezhong','zhong','ezhong','zhong'],
].randomGet();
var rand1=Math.floor(Math.random()*4);
var rand2=Math.floor(Math.random()*4);
for(var i=0;i<list.length;i++){
if(list[i]=='zhong'){
if(rand1==0){
list[i]='zhu';
}
rand1--;
}
else{
if(rand2==0){
list[i]='ezhu';
}
rand2--;
}
}
var side=Math.random()<0.5; var side=Math.random()<0.5;
var map={}; var map={};
var num=Math.floor(Math.random()*8);
list=list.splice(8-num).concat(list);
event.current=game.players[num];
_status.firstAct=event.current;
for(var i=0;i<8;i++){ for(var i=0;i<8;i++){
if(list[i][0]=='e'){ if(list[i][0]=='e'){
game.players[i].side=side; game.players[i].side=side;
@ -1762,6 +1782,7 @@ mode.versus={
} }
map[game.players[i].playerid]=[game.players[i].side,game.players[i].identity]; map[game.players[i].playerid]=[game.players[i].side,game.players[i].identity];
} }
var filterChoice=function(name){ var filterChoice=function(name){
if(name=='zuoci') return true; if(name=='zuoci') return true;
if(!lib.choiceFour.contains(name)){ if(!lib.choiceFour.contains(name)){
@ -1790,8 +1811,6 @@ mode.versus={
} }
return true; return true;
} }
event.current=game.players.randomGet();
_status.firstAct=event.current;
event.flipassign=true; event.flipassign=true;
event.videoId=lib.status.videoId++; event.videoId=lib.status.videoId++;
var func=function(filter,id,selected,map,choiceFour){ var func=function(filter,id,selected,map,choiceFour){