update sp.js

This commit is contained in:
Spmario233 2023-09-18 13:00:04 +08:00
parent b33f84f0e5
commit 28eb5a10d2
2 changed files with 20 additions and 21 deletions

View File

@ -1055,7 +1055,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1'
var evt=event.getParent(2);
if(result.bool&&result.links&&result.links.length){
var name=result.links[0].name,aozhan=(player.hasSkill('aozhan')&&name=='tao');
var card=result.links[0];
var name=card.name,aozhan=(player.hasSkill('aozhan')&&name=='tao');
if(aozhan){
name=evt.filterCard({
name:'sha',isCard:true,cards:[card],
@ -1063,9 +1064,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
game.broadcastAll(function(result,name){
lib.skill.olqifan_backup.viewAs={name:name,cards:[result],isCard:true};
lib.skill.olqifan_backup.prompt=('请选择'+get.translation(result)+'的目标');
},result.links[0],name);
},card,name);
evt.set('_backupevent','olqifan_backup');
evt.set('openskilldialog',('请选择'+get.translation(card)+'的目标'))
evt.backup('olqifan_backup');
}
evt.goto(0);
@ -21698,7 +21699,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1'
var evt=event.getParent(2);
if(result.bool&&result.links&&result.links.length){
var name=result.links[0].name,aozhan=(player.hasSkill('aozhan')&&name=='tao');
var card=result.links[0];
var name=card.name,aozhan=(player.hasSkill('aozhan')&&name=='tao');
if(aozhan){
name=evt.filterCard({
name:'sha',isCard:true,cards:[card],
@ -21707,9 +21709,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(evt.name=='chooseToUse'){
game.broadcastAll(function(result,name){
lib.skill.aocai_backup.viewAs={name:name,cards:[result],isCard:true};
lib.skill.aocai_backup.prompt='选择'+get.translation(result)+'的目标';
},result.links[0],name);
},card,name);
evt.set('_backupevent','aocai_backup');
evt.set('openskilldialog',('请选择'+get.translation(card)+'的目标'))
evt.backup('aocai_backup');
}
else{

View File

@ -4265,10 +4265,6 @@
else{
map.redownload_game.hide();
}
},
menu_loadondemand:{
name:'菜单懒加载',
init:false,
}
// trim_game:{
// name:'隐藏非官方扩展包',
@ -9937,6 +9933,7 @@
}
};
setTimeout(loop,500);
game.saveConfig('menu_loadondemand',true,lib.config.mode);
}
},
connection:function(ws){
@ -41196,7 +41193,7 @@
updateConnectDisplayMap();
}
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
return node;
};
var modeorder=lib.config.modeorder||[];
@ -41724,7 +41721,7 @@
}
}
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
return node;
};
@ -42280,7 +42277,7 @@
createDash('字','字体文件',dash3);
createDash('全','全部文件',dash4);
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
}());
createModeConfig('others',start.firstChild);
@ -42655,7 +42652,7 @@
}
}
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
return node;
};
if(lib.config.show_favourite_menu&&!connectMenu&&Array.isArray(lib.config.favouriteCharacter)){
@ -43124,7 +43121,7 @@
ui.create.div('.menuplaceholder',page);
}
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
return node;
};
if(!connectMenu&&lib.config.show_ban_menu){
@ -43442,7 +43439,7 @@
page.appendChild(cfgnode);
}
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
return node;
};
for(var i in lib.extensionMenu){
@ -45603,7 +45600,7 @@
createDash('技','编辑技能',dash3);
createDash('码','编辑代码',dash4);
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
}());
(function(){
var page=ui.create.div('');
@ -45914,7 +45911,7 @@
};
if(_thisUpdate) node.update();
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
}());
var active=start.firstChild.querySelector('.active');
if(!active){
@ -47124,7 +47121,7 @@
pre.innerHTML='';
});
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
}());
(function(){
var page=ui.create.div('');
@ -47160,7 +47157,7 @@
}
}
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
}());
(function(){
if(!window.indexedDB||window.nodb) return;
@ -47349,7 +47346,7 @@
}
};
};
if(!lib.config.menu_loadondemand) node._initLink();
if(!get.config('menu_loadondemand')) node._initLink();
}());