From e6ab99e16d7c7461a90cc4701836f07c2c9ed480 Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 29 Mar 2017 07:28:41 +0800 Subject: [PATCH] v --- game/game.js | 14 +------------- game/update.js | 15 ++++++--------- mode/versus.js | 37 ++++++++++++++++++++++++++++--------- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/game/game.js b/game/game.js index 2349c20e7..fd1e0aac9 100644 --- a/game/game.js +++ b/game/game.js @@ -19,7 +19,7 @@ }; var lib={ configprefix:'noname_0.9_', - versionOL:21, + versionOL:22, updateURL:'https://raw.githubusercontent.com/libccy/noname', mirrorURL:'https://coding.net/u/libccy/p/noname/git/raw', extensionURL:'https://coding.net/u/libccy/p/noname-extension/git/raw/master/', @@ -4194,12 +4194,6 @@ else{ 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:{ name:'游戏模式', @@ -4212,12 +4206,6 @@ }, frequent:true }, - connect_four_cross:{ - name:'交叉座位', - init:false, - frequent:true, - restart:true, - }, connect_replace_handcard:{ name:'末位可换牌', init:true, diff --git a/game/update.js b/game/update.js index eb99006cf..ff4ab4539 100644 --- a/game/update.js +++ b/game/update.js @@ -1,6 +1,6 @@ window.noname_update={ version:'1.9.18.2', - update:'1.9.17', + // update:'1.9.17', changeLog:[ 'bug修复', ], @@ -11,20 +11,17 @@ window.noname_update={ // 'game/source.js', // 'game/asset.js', // 'card/*', - 'card/sp.js', + // 'card/sp.js', // 'character/*', - 'character/shenhua.js', - 'character/yijiang.js', - 'character/sp.js', - 'character/rank.js', + // 'character/shenhua.js', // 'mode/boss.js', 'mode/versus.js', // 'mode/guozhan.js', // 'mode/identity.js', // 'mode/chess.js', // 'mode/tafang.js', - 'mode/guozhan.js', - 'mode/stone.js', + // 'mode/guozhan.js', + // 'mode/stone.js', // 'theme/music/style.css', // 'theme/woodden/style.css', // 'layout/default/layout.css', @@ -32,7 +29,7 @@ window.noname_update={ // 'layout/default/menu.css', // 'theme/style/cardback/*', // 'layout/long/layout.css', - 'layout/long2/layout.css', + // 'layout/long2/layout.css', // 'layout/mobile/layout.css', // 'layout/newlayout/global.css', // 'layout/mode/chess.css', diff --git a/mode/versus.js b/mode/versus.js index 97ce7c2f2..9028b2f8b 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -448,9 +448,6 @@ mode.versus={ else if(lib.configOL.versus_mode=='2v2'||lib.configOL.versus_mode=='3v3'){ uiintro.add('
四号位换牌:'+(lib.configOL.replace_handcard?'开启':'关闭')); } - else if(lib.configOL.versus_mode=='4v4'){ - uiintro.add('
交叉座位:'+(lib.configOL.four_cross?'开启':'关闭')); - } uiintro.add('
出牌时限:'+lib.configOL.choose_timeout+'秒'); uiintro.add('
屏蔽弱将:'+(lib.configOL.ban_weak?'开启':'关闭')); var last=uiintro.add('
屏蔽强将:'+(lib.configOL.ban_strong?'开启':'关闭')); @@ -1744,13 +1741,36 @@ mode.versus={ var next=game.createEvent('chooseCharacter',false); next.setContent(function(){ "step 0" - var list=['zhong','ezhong','zhong','ezhong','zhong','ezhong','zhong','ezhong']; - list[2*Math.floor(Math.random()*4)]='zhu'; - list[2*Math.floor(Math.random()*4)+1]='ezhu'; - if(!lib.configOL.four_cross) list.randomSort(); + var list=[ + ['zhong','ezhong','ezhong','zhong','zhong','ezhong','ezhong','zhong'], + ['zhong','ezhong','zhong','ezhong','ezhong','zhong','ezhong','zhong'], + ['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