diff --git a/character/rank.js b/character/rank.js index eff866f9b..bcc2157df 100644 --- a/character/rank.js +++ b/character/rank.js @@ -229,6 +229,7 @@ window.characterRank={ 'hs_kazhakusi', 'swd_yeyaxi', 'dianwei', + 're_lidian', ], bp:[ 'sp_zhangjiao', @@ -410,7 +411,6 @@ window.characterRank={ 'ganfuren', 'hs_huzhixiannv', 'sp_sunshangxiang', - 're_lidian', 'jiangqing', 'hs_lrexxar', 'diy_huangzhong', diff --git a/game/game.js b/game/game.js index 6b3822880..39e38c176 100644 --- a/game/game.js +++ b/game/game.js @@ -2802,6 +2802,12 @@ map.four_assign.hide(); map.expand_dialog.hide(); } + if(config.versus_mode=='three'){ + map.enable_all_three.show(); + } + else{ + map.enable_all_three.hide(); + } if(config.versus_mode=='jiange'||config.versus_mode=='two'){ map.free_choose.show(); } @@ -2855,6 +2861,12 @@ frequent:true, restart:true, }, + enable_all_three:{ + name:'启用全部武将', + init:false, + frequent:true, + restart:true, + }, four_assign:{ name:'代替队友选将', init:false, diff --git a/layout/default/layout.css b/layout/default/layout.css index c578ea3aa..ff4ecb014 100644 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -1678,6 +1678,9 @@ div:hover>.intro{opacity: 1;} #window[data-radius_size='increase'] .shadowed{ border-radius:16px; } +#window[data-radius_size='default'] .shadowed.reduce_radius{ + border-radius:4px; +} .underline,.underlinenode{ padding:3px; width:auto; diff --git a/mode/versus.js b/mode/versus.js index bda129bb6..2e3800b91 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -46,6 +46,9 @@ mode.versus={ else if(_status.mode=='two'){ game.prepareArena(4); } + else if(_status.mode=='three'){ + ui.wuxie.hide(); + } else{ if(lib.storage.choice==undefined) game.save('choice',20); if(lib.storage.zhu==undefined) game.save('zhu',true); @@ -173,6 +176,9 @@ mode.versus={ } game.chooseCharacterJiange(); } + else if(_status.mode=='three'){ + game.chooseCharacterThree(); + } else{ game.chooseCharacter(); } @@ -1034,6 +1040,261 @@ mode.versus={ },500); }); }, + chooseCharacterThree:function(){ + var next=game.createEvent('chooseCharacter',false); + next.setContent(function(){ + 'step 0' + event.nodes=[]; + event.avatars=[]; + event.list=[]; + event.friend=[]; + event.enemy=[]; + event.blank=[]; + for(var i in lib.character){ + if(lib.filter.characterDisabled(i)) continue; + if(get.config('enable_all_three')||lib.choiceThree.contains(i)){ + event.list.push(i); + } + } + for(var i=0;i<32;i++){ + event.nodes.push(ui.create.div('.shadowed.reduce_radius')); + event.nodes[i].style.left='50%'; + event.nodes[i].style.top='50%'; + } + event.moveAvatar=function(node,i){ + event.moveNode(node,i); + if(node.linknode){ + if(!node.moved){ + event.blank.push(node.linknode.index); + } + node.linknode.show(); + } + node.linknode=event.nodes[i]; + node.linknode.hide(); + }; + event.aiMove=function(){ + var list=[]; + for(var i=0;i3){ + event.side=0; + } + event.goto(2); + } + else{ + event.promptbar.delete(); + event.side++; + if(event.side>3){ + event.side=0; + } + if(event.side>=2){ + game.delay(2) + } + } + 'step 4' + if(event.checkredo()) return; + event.replacenode.delete(); + event.reselectnode.delete(); + for(var i=0;i