This commit is contained in:
libccy 2017-08-28 00:59:27 +08:00
parent c548ec5d03
commit 7e595ebc2e
3 changed files with 12 additions and 9 deletions

View File

@ -14,9 +14,9 @@ window.noname_character_rank={
'gjqt_bailitusu', 'gjqt_bailitusu',
'swd_huanglei', 'swd_huanglei',
'hs_medivh', 'hs_medivh',
'pal_yuejinzhao',
], ],
ap:[ ap:[
'pal_yuejinzhao',
'ow_zhaliya', 'ow_zhaliya',
'pal_liumengli', 'pal_liumengli',
'pal_yuntianhe', 'pal_yuntianhe',

View File

@ -2761,15 +2761,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var num=0; var num=0;
var players=game.filterPlayer(); var players=game.filterPlayer();
for(var i=0;i<players.length;i++){ for(var i=0;i<players.length;i++){
var att=get.attitude(player,players[i]);
var del=players[i].maxHp-players[i].hp; var del=players[i].maxHp-players[i].hp;
if(get.is.altered('shouyin')) del=Math.min(2,del); if(get.is.altered('shouyin')) del=Math.min(2,del);
if(att>0){ del/=Math.pow(1+players[i].hp,0.2);
num+=del; num+=get.sgnAttitude(player,players[i])*del;
}
else if(att<0){
num-=del;
}
} }
return num; return num;
} }

View File

@ -42434,7 +42434,12 @@
gainableSkills:function(func){ gainableSkills:function(func){
var list=[]; var list=[];
for(var i in lib.character){ for(var i in lib.character){
if(lib.character[i][4]&&lib.character[i][4].contains('boss')) continue; if(lib.character[i][4]){
if(lib.character[i][4].contains('boss')) continue;
if(lib.character[i][4].contains('hiddenboss')) continue;
if(lib.character[i][4].contains('minskin')) return true;
if(lib.character[i][4].contains('unseen')) return true;
}
for(var j=0;j<lib.character[i][3].length;j++){ for(var j=0;j<lib.character[i][3].length;j++){
var skill=lib.character[i][3][j]; var skill=lib.character[i][3][j];
var info=lib.skill[skill]; var info=lib.skill[skill];
@ -43705,6 +43710,9 @@
} }
return att; return att;
}, },
sgnAttitude:function(){
return get.sgn(get.attitude.apply(this,arguments));
},
useful:function(card){ useful:function(card){
if(get.position(card)=='j') return -1; if(get.position(card)=='j') return -1;
if(get.position(card)=='e') return get.equipValue(card); if(get.position(card)=='e') return get.equipValue(card);