This commit is contained in:
libccy 2017-12-01 20:18:57 +08:00
parent 660659121d
commit 59eacf0083
3 changed files with 10 additions and 5 deletions

View File

@ -24,6 +24,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
old_yuanshu:['male','qun',4,['yongsi','weidi']],
old_lingju:['female','qun',3,['jieyuan','fenxin_old']],
},
characterFilter:{
old_lingju:function(mode){
return mode=='identity';
}
},
skill:{
zhenshan:{
trigger:{player:'chooseToRespondBegin'},

View File

@ -49,8 +49,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
sunce:['zhouyu','taishici','daqiao']
},
characterFilter:{
zuoci:function(){
return get.mode()!='guozhan';
zuoci:function(mode){
return mode!='guozhan';
}
},
characterIntro:{

View File

@ -20952,7 +20952,7 @@
if(lib.character[i][4]&&lib.character[i][4].contains('forbidai')) return true;
if(lib.character[i][4]&&lib.character[i][4].contains('unseen')) return true;
if(lib.config.forbidai.contains(i)) return true;
if(lib.characterFilter[i]&&!lib.characterFilter[i]()) return true;
if(lib.characterFilter[i]&&!lib.characterFilter[i](get.mode())) return true;
if(_status.connectMode){
if(lib.configOL.banned.contains(i)) return true;
if(lib.config.replacecharacter[i]&&libCharacter&&libCharacter[lib.config.replacecharacter[i]]) return true;
@ -21014,7 +21014,7 @@
if(info[4].contains('minskin')) return true;
if(info[4].contains('unseen')) return true;
if(info[4].contains('forbidai')&&!_status.event.isMine()) return true;
if(lib.characterFilter[i]&&!lib.characterFilter[i]()) return true;
if(lib.characterFilter[i]&&!lib.characterFilter[i](get.mode())) return true;
}
return false;
},
@ -36924,7 +36924,7 @@
if(lib.character[i][4].contains('stonehidden')) continue;
if(lib.character[i][4].contains('unseen')) continue;
if(lib.config.banned.contains(i)) continue;
if(lib.characterFilter[i]&&!lib.characterFilter[i]()) continue;
if(lib.characterFilter[i]&&!lib.characterFilter[i](get.mode())) continue;
if(filter&&filter(i)) continue;
list.push(i);
if(namecapt.indexOf(getCapt(i))==-1){