diff --git a/card/extra.js b/card/extra.js
index 1dee2c334..e4de2d2c4 100644
--- a/card/extra.js
+++ b/card/extra.js
@@ -234,7 +234,14 @@ game.import('card',function(lib,game,ui,get,ai,_status){
},
result:{
target:function(player,target){
- if(target.isLinked()) return 1;
+ if(target.isLinked()){
+ if(target.hasSkillTag('link')) return 0;
+ var f=target.hasSkillTag('nofire');
+ var t=target.hasSkillTag('nothunder');
+ if(f&&t) return 0;
+ if(f||t) return 0.5;
+ return 2;
+ }
if(get.attitude(player,target)>=0) return -0.9;
if(ui.selected.targets.length) return -0.9;
if(game.hasPlayer(function(current){
diff --git a/character/diy.js b/character/diy.js
index 3a180ae5a..f883388b7 100644
--- a/character/diy.js
+++ b/character/diy.js
@@ -4131,6 +4131,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(player.isLinked()==false) player.link();
},
ai:{
+ link:true,
order:2,
result:{
player:function(player){
diff --git a/character/gwent.js b/character/gwent.js
index b55926052..5c941a7d7 100644
--- a/character/gwent.js
+++ b/character/gwent.js
@@ -1363,7 +1363,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.draw(2);
'step 1'
player.chooseToDiscard('he',2,true).ai=function(card){
- var val=get.value(card);
+ var val=-get.value(card);
if(ui.selected.cards.length){
if(get.suit(card)==get.suit(ui.selected.cards[0])) val++;
if(get.number(card)==get.number(ui.selected.cards[0])) val+=3;
diff --git a/game/game.js b/game/game.js
index 0fe3ded3c..07ba7c6c4 100644
--- a/game/game.js
+++ b/game/game.js
@@ -4771,7 +4771,7 @@
map.enable_all_three.hide();
map.enable_all_cards.hide();
}
- if(config.versus_mode=='jiange'||config.versus_mode=='two'||
+ if(config.versus_mode=='jiange'||config.versus_mode=='two'||config.versus_mode=='endless'||
config.versus_mode=='three'||config.versus_mode=='one'||config.versus_mode=='siguo'){
map.free_choose.show();
}
@@ -4822,6 +4822,7 @@
three:'统率',
jiange:'剑阁',
siguo:'四国',
+ // endless:'无尽',
// one:'1v1',
two:'2v2',
four:'4v4'
diff --git a/game/update.js b/game/update.js
index aaf12ea39..f2528680c 100644
--- a/game/update.js
+++ b/game/update.js
@@ -1,10 +1,10 @@
window.noname_update={
- version:'1.9.46',
- // update:'1.9.45.3',
+ version:'1.9.46.1',
+ update:'1.9.46',
changeLog:[
'bug修复',
- '部分DIY比赛武将',
- 'players://["old_lingju","yj_jushou","swd_guyue","ns_duangui","ns_shenpei","ns_masu","ns_zhangxiu","ns_zhangbao","yxs_luobinhan"]',
+ // '部分DIY比赛武将',
+ // 'players://["old_lingju","yj_jushou","swd_guyue","ns_duangui","ns_shenpei","ns_masu","ns_zhangxiu","ns_zhangbao","yxs_luobinhan"]',
],
files:[
'game/game.js',
@@ -14,19 +14,19 @@ window.noname_update={
// 'game/pressure.js',
// 'game/asset.js',
// 'card/*',
- // 'card/gujian.js',
+ 'card/extra.js',
// 'card/yunchou.js',
// 'card/hearth.js',
// 'card/gwent.js',
// 'card/standard.js',
// 'character/*',
// 'character/hearth.js',
- // 'character/gwent.js',
- // 'character/diy.js',
+ 'character/gwent.js',
+ 'character/diy.js',
// 'character/standard.js',
- 'character/shenhua.js',
+ // 'character/shenhua.js',
// 'character/refresh.js',
- 'character/yijiang.js',
+ // 'character/yijiang.js',
// 'character/sp.js',
// 'character/rank.js',
// 'mode/identity.js',
@@ -34,7 +34,7 @@ window.noname_update={
// 'mode/guozhan.js',
'mode/versus.js',
// 'mode/connect.js',
- 'mode/chess.js',
+ // 'mode/chess.js',
// 'mode/tafang.js',
// 'mode/guozhan.js',
// 'mode/stone.js',
@@ -48,7 +48,7 @@ window.noname_update={
// 'layout/long/layout.css',
// 'layout/long2/layout.css',
// 'layout/mobile/layout.css',
- // 'layout/newlayout/global.css',
+ 'layout/newlayout/global.css',
// 'layout/mode/chess.css',
// 'extension/boss/extension.js',
]
diff --git a/image/mode/chess/card/chess_chuzhang.png b/image/mode/chess/card/chess_chuzhang.png
index 21c0cab3f..5e92d56e1 100644
Binary files a/image/mode/chess/card/chess_chuzhang.png and b/image/mode/chess/card/chess_chuzhang.png differ
diff --git a/image/mode/chess/card/chess_shezhang.png b/image/mode/chess/card/chess_shezhang.png
index a386c1d90..54c794a9b 100644
Binary files a/image/mode/chess/card/chess_shezhang.png and b/image/mode/chess/card/chess_shezhang.png differ
diff --git a/layout/newlayout/global.css b/layout/newlayout/global.css
index 22e060d03..f2a3e946c 100644
--- a/layout/newlayout/global.css
+++ b/layout/newlayout/global.css
@@ -251,6 +251,8 @@
#arena.mobile.uslim_player .player:not([data-position='0'])>.count,
#arena.mobile.lslim_player .player:not([data-position='0'])>.count,
+#arena.mobile.uslim_player.chess .player>.count,
+#arena.mobile.lslim_player.chess .player>.count,
#arena:not(.mobile).uslim_player .player>.count,
#arena:not(.mobile).lslim_player .player>.count{
z-index: 3 !important;
diff --git a/mode/brawl.js b/mode/brawl.js
index 4bc843088..49171c2a3 100644
--- a/mode/brawl.js
+++ b/mode/brawl.js
@@ -2068,6 +2068,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
var line1=ui.create.div(style2,this);
var line2=ui.create.div(style2,this);
line2.style.lineHeight='50px';
+ line2.style.overflow='scroll';
+ lib.setScroll(line2);
+ var container=this.parentNode.parentNode;
+ setTimeout(function(){
+ var rect1=container.getBoundingClientRect();
+ var rect2=line2.getBoundingClientRect();
+ line2.style.height=(rect1.height-(rect2.top-rect1.top))+'px';
+ },1000);
if(_status.extensionmade.contains(name)){
ui.create.node('button','管理扩展',line1,function(){
ui.click.configMenu();
@@ -2142,8 +2150,8 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
if(init){
this.style.transition='all 0s';
this.style.height=(this.offsetHeight-10)+'px';
- this.style.overflow='scroll';
- lib.setScroll(this);
+ // this.style.overflow='scroll';
+ // lib.setScroll(this);
var style2={position:'relative',display:'block',left:0,top:0,marginBottom:'6px',padding:0,width:'100%'};
var style3={marginLeft:'4px',marginRight:'4px',position:'relative'}
@@ -2158,6 +2166,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
var line2=ui.create.div(style2,this);
line1.style.marginBottom='10px';
line2.style.lineHeight='50px';
+ line2.style.overflow='scroll';
+ lib.setScroll(line2);
+ var container=this.parentNode.parentNode;
+ setTimeout(function(){
+ var rect1=container.getBoundingClientRect();
+ var rect2=line2.getBoundingClientRect();
+ line2.style.height=(rect1.height-(rect2.top-rect1.top))+'px';
+ },1000);
var scenes=[];
for(var i in lib.storage.scene){
scenes.push([i,i]);
diff --git a/mode/versus.js b/mode/versus.js
index 21851e9ca..065eec536 100644
--- a/mode/versus.js
+++ b/mode/versus.js
@@ -92,6 +92,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
else if(_status.mode=='two'){
game.prepareArena(4);
}
+ else if(_status.mode=='endless'){
+ game.prepareArena(2);
+ }
else if(_status.mode=='three'){
if(!get.config('enable_all_cards')){
lib.translate.wuzhong_info+='若对方存活角色多于己方,则额外摸一张牌';
@@ -198,6 +201,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}
game.chooseCharacterTwo();
}
+ else if(_status.mode=='endless'){
+ game.chooseCharacterEndless();
+ }
else if(_status.mode=='siguo'){
var list=['wei','wei','shu','shu','wu','wu','qun','qun'].randomSort();
for(var i=0;i